|
|
@@ -10,6 +10,7 @@
|
|
|
<result column="user_id" jdbcType="INTEGER" property="userId" />
|
|
|
<result column="order_sn" jdbcType="VARCHAR" property="orderSn" />
|
|
|
<result column="order_status" jdbcType="SMALLINT" property="orderStatus" />
|
|
|
+ <result column="aftersale_status" jdbcType="SMALLINT" property="aftersaleStatus" />
|
|
|
<result column="consignee" jdbcType="VARCHAR" property="consignee" />
|
|
|
<result column="mobile" jdbcType="VARCHAR" property="mobile" />
|
|
|
<result column="address" jdbcType="VARCHAR" property="address" />
|
|
|
@@ -108,10 +109,11 @@
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
- id, user_id, order_sn, order_status, consignee, mobile, address, message, goods_price,
|
|
|
- freight_price, coupon_price, integral_price, groupon_price, order_price, actual_price,
|
|
|
- pay_id, pay_time, ship_sn, ship_channel, ship_time, refund_amount, refund_type, refund_content,
|
|
|
- refund_time, confirm_time, comments, end_time, add_time, update_time, deleted
|
|
|
+ id, user_id, order_sn, order_status, aftersale_status, consignee, mobile, address,
|
|
|
+ message, goods_price, freight_price, coupon_price, integral_price, groupon_price,
|
|
|
+ order_price, actual_price, pay_id, pay_time, ship_sn, ship_channel, ship_time, refund_amount,
|
|
|
+ refund_type, refund_content, refund_time, confirm_time, comments, end_time, add_time,
|
|
|
+ update_time, deleted
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="org.linlinjava.litemall.db.domain.LitemallOrderExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
@@ -233,25 +235,27 @@
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
</selectKey>
|
|
|
insert into litemall_order (user_id, order_sn, order_status,
|
|
|
- consignee, mobile, address,
|
|
|
- message, goods_price, freight_price,
|
|
|
- coupon_price, integral_price, groupon_price,
|
|
|
- order_price, actual_price, pay_id,
|
|
|
- pay_time, ship_sn, ship_channel,
|
|
|
- ship_time, refund_amount, refund_type,
|
|
|
- refund_content, refund_time, confirm_time,
|
|
|
- comments, end_time, add_time,
|
|
|
- update_time, deleted)
|
|
|
+ aftersale_status, consignee, mobile,
|
|
|
+ address, message, goods_price,
|
|
|
+ freight_price, coupon_price, integral_price,
|
|
|
+ groupon_price, order_price, actual_price,
|
|
|
+ pay_id, pay_time, ship_sn,
|
|
|
+ ship_channel, ship_time, refund_amount,
|
|
|
+ refund_type, refund_content, refund_time,
|
|
|
+ confirm_time, comments, end_time,
|
|
|
+ add_time, update_time, deleted
|
|
|
+ )
|
|
|
values (#{userId,jdbcType=INTEGER}, #{orderSn,jdbcType=VARCHAR}, #{orderStatus,jdbcType=SMALLINT},
|
|
|
- #{consignee,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
|
|
|
- #{message,jdbcType=VARCHAR}, #{goodsPrice,jdbcType=DECIMAL}, #{freightPrice,jdbcType=DECIMAL},
|
|
|
- #{couponPrice,jdbcType=DECIMAL}, #{integralPrice,jdbcType=DECIMAL}, #{grouponPrice,jdbcType=DECIMAL},
|
|
|
- #{orderPrice,jdbcType=DECIMAL}, #{actualPrice,jdbcType=DECIMAL}, #{payId,jdbcType=VARCHAR},
|
|
|
- #{payTime,jdbcType=TIMESTAMP}, #{shipSn,jdbcType=VARCHAR}, #{shipChannel,jdbcType=VARCHAR},
|
|
|
- #{shipTime,jdbcType=TIMESTAMP}, #{refundAmount,jdbcType=DECIMAL}, #{refundType,jdbcType=VARCHAR},
|
|
|
- #{refundContent,jdbcType=VARCHAR}, #{refundTime,jdbcType=TIMESTAMP}, #{confirmTime,jdbcType=TIMESTAMP},
|
|
|
- #{comments,jdbcType=SMALLINT}, #{endTime,jdbcType=TIMESTAMP}, #{addTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT})
|
|
|
+ #{aftersaleStatus,jdbcType=SMALLINT}, #{consignee,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR},
|
|
|
+ #{address,jdbcType=VARCHAR}, #{message,jdbcType=VARCHAR}, #{goodsPrice,jdbcType=DECIMAL},
|
|
|
+ #{freightPrice,jdbcType=DECIMAL}, #{couponPrice,jdbcType=DECIMAL}, #{integralPrice,jdbcType=DECIMAL},
|
|
|
+ #{grouponPrice,jdbcType=DECIMAL}, #{orderPrice,jdbcType=DECIMAL}, #{actualPrice,jdbcType=DECIMAL},
|
|
|
+ #{payId,jdbcType=VARCHAR}, #{payTime,jdbcType=TIMESTAMP}, #{shipSn,jdbcType=VARCHAR},
|
|
|
+ #{shipChannel,jdbcType=VARCHAR}, #{shipTime,jdbcType=TIMESTAMP}, #{refundAmount,jdbcType=DECIMAL},
|
|
|
+ #{refundType,jdbcType=VARCHAR}, #{refundContent,jdbcType=VARCHAR}, #{refundTime,jdbcType=TIMESTAMP},
|
|
|
+ #{confirmTime,jdbcType=TIMESTAMP}, #{comments,jdbcType=SMALLINT}, #{endTime,jdbcType=TIMESTAMP},
|
|
|
+ #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="org.linlinjava.litemall.db.domain.LitemallOrder">
|
|
|
<!--
|
|
|
@@ -272,6 +276,9 @@
|
|
|
<if test="orderStatus != null">
|
|
|
order_status,
|
|
|
</if>
|
|
|
+ <if test="aftersaleStatus != null">
|
|
|
+ aftersale_status,
|
|
|
+ </if>
|
|
|
<if test="consignee != null">
|
|
|
consignee,
|
|
|
</if>
|
|
|
@@ -361,6 +368,9 @@
|
|
|
<if test="orderStatus != null">
|
|
|
#{orderStatus,jdbcType=SMALLINT},
|
|
|
</if>
|
|
|
+ <if test="aftersaleStatus != null">
|
|
|
+ #{aftersaleStatus,jdbcType=SMALLINT},
|
|
|
+ </if>
|
|
|
<if test="consignee != null">
|
|
|
#{consignee,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -470,6 +480,9 @@
|
|
|
<if test="record.orderStatus != null">
|
|
|
order_status = #{record.orderStatus,jdbcType=SMALLINT},
|
|
|
</if>
|
|
|
+ <if test="record.aftersaleStatus != null">
|
|
|
+ aftersale_status = #{record.aftersaleStatus,jdbcType=SMALLINT},
|
|
|
+ </if>
|
|
|
<if test="record.consignee != null">
|
|
|
consignee = #{record.consignee,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -563,6 +576,7 @@
|
|
|
user_id = #{record.userId,jdbcType=INTEGER},
|
|
|
order_sn = #{record.orderSn,jdbcType=VARCHAR},
|
|
|
order_status = #{record.orderStatus,jdbcType=SMALLINT},
|
|
|
+ aftersale_status = #{record.aftersaleStatus,jdbcType=SMALLINT},
|
|
|
consignee = #{record.consignee,jdbcType=VARCHAR},
|
|
|
mobile = #{record.mobile,jdbcType=VARCHAR},
|
|
|
address = #{record.address,jdbcType=VARCHAR},
|
|
|
@@ -609,6 +623,9 @@
|
|
|
<if test="orderStatus != null">
|
|
|
order_status = #{orderStatus,jdbcType=SMALLINT},
|
|
|
</if>
|
|
|
+ <if test="aftersaleStatus != null">
|
|
|
+ aftersale_status = #{aftersaleStatus,jdbcType=SMALLINT},
|
|
|
+ </if>
|
|
|
<if test="consignee != null">
|
|
|
consignee = #{consignee,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -699,6 +716,7 @@
|
|
|
set user_id = #{userId,jdbcType=INTEGER},
|
|
|
order_sn = #{orderSn,jdbcType=VARCHAR},
|
|
|
order_status = #{orderStatus,jdbcType=SMALLINT},
|
|
|
+ aftersale_status = #{aftersaleStatus,jdbcType=SMALLINT},
|
|
|
consignee = #{consignee,jdbcType=VARCHAR},
|
|
|
mobile = #{mobile,jdbcType=VARCHAR},
|
|
|
address = #{address,jdbcType=VARCHAR},
|