|
@@ -4,7 +4,7 @@
|
|
|
<resultMap id="BaseResultMap" type="com.yonge.cooleshow.mbg.model.OmsOrder">
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
<result column="member_id" jdbcType="BIGINT" property="memberId" />
|
|
|
- <result column="coupon_id" jdbcType="BIGINT" property="couponId" />
|
|
|
+ <result column="coupon_id" property="couponId" />
|
|
|
<result column="order_sn" jdbcType="VARCHAR" property="orderSn" />
|
|
|
<result column="cart_ids" jdbcType="VARCHAR" property="cartIds" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
@@ -166,7 +166,7 @@
|
|
|
delete_status, use_integration, payment_time,
|
|
|
delivery_time, receive_time, comment_time,
|
|
|
modify_time,cart_ids,platform_type,after_sale)
|
|
|
- values (#{memberId,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, #{orderSn,jdbcType=VARCHAR},
|
|
|
+ values (#{memberId,jdbcType=BIGINT}, #{couponId}, #{orderSn,jdbcType=VARCHAR},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{memberUsername,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL},
|
|
|
#{payAmount,jdbcType=DECIMAL}, #{freightAmount,jdbcType=DECIMAL}, #{promotionAmount,jdbcType=DECIMAL},
|
|
|
#{integrationAmount,jdbcType=DECIMAL}, #{couponAmount,jdbcType=DECIMAL}, #{discountAmount,jdbcType=DECIMAL},
|
|
@@ -332,7 +332,7 @@
|
|
|
#{memberId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="couponId != null">
|
|
|
- #{couponId,jdbcType=BIGINT},
|
|
|
+ #{couponId},
|
|
|
</if>
|
|
|
<if test="orderSn != null">
|
|
|
#{orderSn,jdbcType=VARCHAR},
|
|
@@ -484,7 +484,7 @@
|
|
|
member_id = #{record.memberId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="record.couponId != null">
|
|
|
- coupon_id = #{record.couponId,jdbcType=BIGINT},
|
|
|
+ coupon_id = #{record.couponId},
|
|
|
</if>
|
|
|
<if test="record.orderSn != null">
|
|
|
order_sn = #{record.orderSn,jdbcType=VARCHAR},
|
|
@@ -627,7 +627,7 @@
|
|
|
update oms_order
|
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
|
member_id = #{record.memberId,jdbcType=BIGINT},
|
|
|
- coupon_id = #{record.couponId,jdbcType=BIGINT},
|
|
|
+ coupon_id = #{record.couponId},
|
|
|
order_sn = #{record.orderSn,jdbcType=VARCHAR},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
member_username = #{record.memberUsername,jdbcType=VARCHAR},
|
|
@@ -683,7 +683,7 @@
|
|
|
member_id = #{memberId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="couponId != null">
|
|
|
- coupon_id = #{couponId,jdbcType=BIGINT},
|
|
|
+ coupon_id = #{couponId},
|
|
|
</if>
|
|
|
<if test="orderSn != null">
|
|
|
order_sn = #{orderSn,jdbcType=VARCHAR},
|
|
@@ -823,7 +823,7 @@
|
|
|
<update id="updateByPrimaryKey" parameterType="com.yonge.cooleshow.mbg.model.OmsOrder">
|
|
|
update oms_order
|
|
|
set member_id = #{memberId,jdbcType=BIGINT},
|
|
|
- coupon_id = #{couponId,jdbcType=BIGINT},
|
|
|
+ coupon_id = #{couponId},
|
|
|
order_sn = #{orderSn,jdbcType=VARCHAR},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
member_username = #{memberUsername,jdbcType=VARCHAR},
|