|
@@ -47,6 +47,7 @@
|
|
|
<result column="receive_time" jdbcType="TIMESTAMP" property="receiveTime" />
|
|
|
<result column="comment_time" jdbcType="TIMESTAMP" property="commentTime" />
|
|
|
<result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
|
|
|
+ <result column="platform_type" jdbcType="TIMESTAMP" property="platformType" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -113,7 +114,7 @@
|
|
|
integration, growth, promotion_info, bill_type, bill_header, bill_content, bill_receiver_phone,
|
|
|
bill_receiver_email, receiver_name, receiver_phone, receiver_post_code, receiver_province,
|
|
|
receiver_city, receiver_region, receiver_detail_address, note, confirm_status, delete_status,
|
|
|
- use_integration, payment_time, delivery_time, receive_time, comment_time, modify_time,cart_ids
|
|
|
+ use_integration, payment_time, delivery_time, receive_time, comment_time, modify_time,cart_ids,platform_type
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -163,7 +164,7 @@
|
|
|
receiver_detail_address, note, confirm_status,
|
|
|
delete_status, use_integration, payment_time,
|
|
|
delivery_time, receive_time, comment_time,
|
|
|
- modify_time,cart_ids)
|
|
|
+ modify_time,cart_ids,platform_type)
|
|
|
values (#{memberId,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, #{orderSn,jdbcType=VARCHAR},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{memberUsername,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL},
|
|
|
#{payAmount,jdbcType=DECIMAL}, #{freightAmount,jdbcType=DECIMAL}, #{promotionAmount,jdbcType=DECIMAL},
|
|
@@ -178,7 +179,7 @@
|
|
|
#{receiverDetailAddress,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{confirmStatus,jdbcType=INTEGER},
|
|
|
#{deleteStatus,jdbcType=INTEGER}, #{useIntegration,jdbcType=INTEGER}, #{paymentTime,jdbcType=TIMESTAMP},
|
|
|
#{deliveryTime,jdbcType=TIMESTAMP}, #{receiveTime,jdbcType=TIMESTAMP}, #{commentTime,jdbcType=TIMESTAMP},
|
|
|
- #{modifyTime,jdbcType=TIMESTAMP},#{cartIds})
|
|
|
+ #{modifyTime,jdbcType=TIMESTAMP},#{cartIds},#{platformType})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yonge.cooleshow.mbg.model.OmsOrder">
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
@@ -318,6 +319,9 @@
|
|
|
<if test="cartIds != null">
|
|
|
cart_ids,
|
|
|
</if>
|
|
|
+ <if test="platformType != null">
|
|
|
+ platform_type,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="memberId != null">
|
|
@@ -452,6 +456,9 @@
|
|
|
<if test="cartIds != null">
|
|
|
#{cartIds},
|
|
|
</if>
|
|
|
+ <if test="platformType != null">
|
|
|
+ #{platformType},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderExample" resultType="java.lang.Long">
|
|
@@ -598,6 +605,9 @@
|
|
|
<if test="record.cartIds != null">
|
|
|
cart_ids = #{record.cartIds},
|
|
|
</if>
|
|
|
+ <if test="record.platformType != null">
|
|
|
+ platform_type = #{record.platformType},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -649,6 +659,7 @@
|
|
|
receive_time = #{record.receiveTime,jdbcType=TIMESTAMP},
|
|
|
comment_time = #{record.commentTime,jdbcType=TIMESTAMP},
|
|
|
cart_ids = #{record.cartIds},
|
|
|
+ platform_type = #{record.platformType},
|
|
|
modify_time = #{record.modifyTime,jdbcType=TIMESTAMP}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -787,7 +798,10 @@
|
|
|
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="cartIds != null">
|
|
|
- cart_ids = #{cartIds,jdbcType=TIMESTAMP},
|
|
|
+ cart_ids = #{cartIds},
|
|
|
+ </if>
|
|
|
+ <if test="platformType != null">
|
|
|
+ platform_type = #{platformType},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
@@ -837,6 +851,7 @@
|
|
|
receive_time = #{receiveTime,jdbcType=TIMESTAMP},
|
|
|
comment_time = #{commentTime,jdbcType=TIMESTAMP},
|
|
|
cart_ids = #{cartIds},
|
|
|
+ platform_type = #{platformType},
|
|
|
modify_time = #{modifyTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|