|
@@ -4,6 +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="orchestra_id" jdbcType="BIGINT" property="orchestraId" />
|
|
|
<result column="coupon_id" property="couponId" />
|
|
|
<result column="order_sn" jdbcType="VARCHAR" property="orderSn" />
|
|
|
<result column="cart_ids" jdbcType="VARCHAR" property="cartIds" />
|
|
@@ -48,6 +49,7 @@
|
|
|
<result column="comment_time" jdbcType="TIMESTAMP" property="commentTime" />
|
|
|
<result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
|
|
|
<result column="platform_type" jdbcType="TIMESTAMP" property="platformType" />
|
|
|
+ <result column="order_form_type" jdbcType="TIMESTAMP" property="orderFormType" />
|
|
|
<result column="after_sale" property="afterSale" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
@@ -115,7 +117,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,platform_type,after_sale
|
|
|
+ use_integration, payment_time, delivery_time, receive_time, comment_time, modify_time,cart_ids,platform_type,after_sale,orchestra_id,order_form_type
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -165,7 +167,7 @@
|
|
|
receiver_detail_address, note, confirm_status,
|
|
|
delete_status, use_integration, payment_time,
|
|
|
delivery_time, receive_time, comment_time,
|
|
|
- modify_time,cart_ids,platform_type,after_sale)
|
|
|
+ modify_time,cart_ids,platform_type,after_sale,orchestra_id,order_form_type
|
|
|
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},
|
|
@@ -180,7 +182,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},#{platformType},#{afterSale})
|
|
|
+ #{modifyTime,jdbcType=TIMESTAMP},#{cartIds},#{platformType},#{afterSale},#{orchestraId},#{orderFormType})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yonge.cooleshow.mbg.model.OmsOrder">
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
|
@@ -326,6 +328,12 @@
|
|
|
<if test="afterSale != null">
|
|
|
after_sale,
|
|
|
</if>
|
|
|
+ <if test="orchestraId != null">
|
|
|
+ orchestra_id,
|
|
|
+ </if>
|
|
|
+ <if test="orderFormType != null">
|
|
|
+ order_form_type,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="memberId != null">
|
|
@@ -466,6 +474,12 @@
|
|
|
<if test="afterSale != null">
|
|
|
#{afterSale},
|
|
|
</if>
|
|
|
+ <if test="orchestraId != null">
|
|
|
+ #{orchestraId},
|
|
|
+ </if>
|
|
|
+ <if test="orderFormType != null">
|
|
|
+ #{orderFormType},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderExample" resultType="java.lang.Long">
|
|
@@ -618,6 +632,12 @@
|
|
|
<if test="record.afterSale != null">
|
|
|
after_sale = #{record.afterSale},
|
|
|
</if>
|
|
|
+ <if test="record.orchestraId != null">
|
|
|
+ orchestra_id = #{record.orchestraId},
|
|
|
+ </if>
|
|
|
+ <if test="record.orderFormType != null">
|
|
|
+ order_form_type = #{record.orderFormType},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -671,6 +691,8 @@
|
|
|
cart_ids = #{record.cartIds},
|
|
|
platform_type = #{record.platformType},
|
|
|
after_sale = #{record.afterSale},
|
|
|
+ orchestra_id = #{record.orchestraId},
|
|
|
+ order_form_type = #{record.orderFormType},
|
|
|
modify_time = #{record.modifyTime,jdbcType=TIMESTAMP}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -817,6 +839,12 @@
|
|
|
<if test="afterSale != null">
|
|
|
after_sale = #{afterSale},
|
|
|
</if>
|
|
|
+ <if test="orchestraId != null">
|
|
|
+ orchestra_id = #{orchestraId},
|
|
|
+ </if>
|
|
|
+ <if test="orderFormType != null">
|
|
|
+ order_form_type = #{orderFormType},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
@@ -867,6 +895,8 @@
|
|
|
cart_ids = #{cartIds},
|
|
|
platform_type = #{platformType},
|
|
|
after_sale = #{afterSale},
|
|
|
+ orchestra_id = #{orchestraId},
|
|
|
+ order_form_type = #{orderFormType},
|
|
|
modify_time = #{modifyTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|