|
@@ -320,13 +320,13 @@
|
|
#{coupon_name},
|
|
#{coupon_name},
|
|
#{comment_count},
|
|
#{comment_count},
|
|
<if test="merchSn != null" >
|
|
<if test="merchSn != null" >
|
|
- #{merchSn,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{merchSn},
|
|
</if>
|
|
</if>
|
|
<if test="merchOrderSn != null" >
|
|
<if test="merchOrderSn != null" >
|
|
- #{merchOrderSn,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{merchOrderSn},
|
|
</if>
|
|
</if>
|
|
<if test="isScan != null" >
|
|
<if test="isScan != null" >
|
|
- #{isScan,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{isScan},
|
|
</if>
|
|
</if>
|
|
<if test="isMergePay != null" >
|
|
<if test="isMergePay != null" >
|
|
#{isMergePay},
|
|
#{isMergePay},
|
|
@@ -335,31 +335,31 @@
|
|
#{orderBizType,jdbcType=CHAR},
|
|
#{orderBizType,jdbcType=CHAR},
|
|
</if>
|
|
</if>
|
|
<if test="payTransactionId != null" >
|
|
<if test="payTransactionId != null" >
|
|
- #{payTransactionId,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{payTransactionId},
|
|
</if>
|
|
</if>
|
|
<if test="payMobile != null" >
|
|
<if test="payMobile != null" >
|
|
- #{payMobile,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{payMobile},
|
|
</if>
|
|
</if>
|
|
<if test="buyerPayCheck != null" >
|
|
<if test="buyerPayCheck != null" >
|
|
- #{buyerPayCheck,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{buyerPayCheck},
|
|
</if>
|
|
</if>
|
|
<if test="isOnfflineOrder != null" >
|
|
<if test="isOnfflineOrder != null" >
|
|
- #{isOnfflineOrder,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{isOnfflineOrder},
|
|
</if>
|
|
</if>
|
|
<if test="payFlag != null" >
|
|
<if test="payFlag != null" >
|
|
- #{payFlag,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{payFlag},
|
|
</if>
|
|
</if>
|
|
<if test="createrSn != null" >
|
|
<if test="createrSn != null" >
|
|
- #{createrSn,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{createrSn},
|
|
</if>
|
|
</if>
|
|
<if test="createTime != null" >
|
|
<if test="createTime != null" >
|
|
- #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ #{createTime},
|
|
</if>
|
|
</if>
|
|
<if test="moderSn != null" >
|
|
<if test="moderSn != null" >
|
|
- #{moderSn,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{moderSn},
|
|
</if>
|
|
</if>
|
|
<if test="modTime != null" >
|
|
<if test="modTime != null" >
|
|
- #{modTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ #{modTime}
|
|
</if>
|
|
</if>
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
@@ -476,19 +476,20 @@
|
|
#{orderInfo.predict_time},
|
|
#{orderInfo.predict_time},
|
|
#{orderInfo.coupon_name},
|
|
#{orderInfo.coupon_name},
|
|
#{orderInfo.comment_count},
|
|
#{orderInfo.comment_count},
|
|
- #{orderInfo.merchSn,jdbcType=VARCHAR},
|
|
|
|
- #{orderInfo.merchOrderSn,jdbcType=VARCHAR},
|
|
|
|
- #{orderInfo.isScan,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{orderInfo.merchSn},
|
|
|
|
+ #{orderInfo.merchOrderSn},
|
|
|
|
+ #{orderInfo.isScan},
|
|
#{orderInfo.isMergePay},
|
|
#{orderInfo.isMergePay},
|
|
#{orderInfo.orderBizType,jdbcType=CHAR},
|
|
#{orderInfo.orderBizType,jdbcType=CHAR},
|
|
#{orderInfo.isOnfflineOrder},
|
|
#{orderInfo.isOnfflineOrder},
|
|
- #{orderInfo.payTransactionId,jdbcType=VARCHAR},
|
|
|
|
- #{orderInfo.payMobile,jdbcType=VARCHAR},
|
|
|
|
- #{orderInfo.createTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{orderInfo.modTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
+ #{orderInfo.payTransactionId},
|
|
|
|
+ #{orderInfo.payMobile},
|
|
|
|
+ #{orderInfo.createTime},
|
|
|
|
+ #{orderInfo.modTime}
|
|
)
|
|
)
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
|
|
+
|
|
<update id="update" parameterType="com.kmall.api.entity.OrderVo">
|
|
<update id="update" parameterType="com.kmall.api.entity.OrderVo">
|
|
update mall_order
|
|
update mall_order
|
|
<set>
|
|
<set>
|
|
@@ -538,50 +539,86 @@
|
|
<if test="predict_time != null">`predict_time` = #{predict_time},</if>
|
|
<if test="predict_time != null">`predict_time` = #{predict_time},</if>
|
|
<if test="coupon_name != null">`coupon_name` = #{coupon_name},</if>
|
|
<if test="coupon_name != null">`coupon_name` = #{coupon_name},</if>
|
|
<if test="comment_count != null">`comment_count` = #{comment_count},</if>
|
|
<if test="comment_count != null">`comment_count` = #{comment_count},</if>
|
|
-
|
|
|
|
- <if test="merchSn != null" >
|
|
|
|
- merch_sn = #{merchSn,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="merchOrderSn != null" >
|
|
|
|
- merch_order_sn = #{merchOrderSn,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="isScan != null" >
|
|
|
|
- is_scan = #{isScan,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="isMergePay != null" >
|
|
|
|
- is_merge_pay = #{isMergePay},
|
|
|
|
- </if>
|
|
|
|
- <if test="orderBizType != null" >
|
|
|
|
- order_biz_type = #{orderBizType,jdbcType=CHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="payTransactionId != null" >
|
|
|
|
- pay_transaction_id = #{payTransactionId,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="payMobile != null" >
|
|
|
|
- pay_mobile = #{payMobile,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="buyerPayCheck != null" >
|
|
|
|
- buyer_pay_check = #{buyerPayCheck,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="payFlag != null" >
|
|
|
|
- pay_flag = #{payFlag,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="createrSn != null" >
|
|
|
|
- creater_sn = #{createrSn,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="createTime != null" >
|
|
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
- </if>
|
|
|
|
- <if test="moderSn != null" >
|
|
|
|
- moder_sn = #{moderSn,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
- <if test="modTime != null" >
|
|
|
|
- mod_time = #{modTime,jdbcType=TIMESTAMP},
|
|
|
|
- </if>
|
|
|
|
|
|
+ <if test="merchSn != null" >merch_sn = #{merchSn},</if>
|
|
|
|
+ <if test="merchOrderSn != null" >merch_order_sn = #{merchOrderSn},</if>
|
|
|
|
+ <if test="isScan != null" >is_scan = #{isScan},</if>
|
|
|
|
+ <if test="isMergePay != null" >is_merge_pay = #{isMergePay},</if>
|
|
|
|
+ <if test="orderBizType != null" >order_biz_type = #{orderBizType,jdbcType=CHAR},</if>
|
|
|
|
+ <if test="payTransactionId != null" >pay_transaction_id = #{payTransactionId},</if>
|
|
|
|
+ <if test="payMobile != null" >pay_mobile = #{payMobile},</if>
|
|
|
|
+ <if test="buyerPayCheck != null" >buyer_pay_check = #{buyerPayCheck},</if>
|
|
|
|
+ <if test="payFlag != null" >pay_flag = #{payFlag},</if>
|
|
|
|
+ <if test="createrSn != null" >creater_sn = #{createrSn},</if>
|
|
|
|
+ <if test="createTime != null" >create_time = #{createTime},</if>
|
|
|
|
+ <if test="moderSn != null" >moder_sn = #{moderSn},</if>
|
|
|
|
+ <if test="modTime != null" >mod_time = #{modTime},</if>
|
|
</set>
|
|
</set>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
+ <update id="updateBatch" parameterType="java.util.List">
|
|
|
|
+ <foreach collection="list" item="oderInfo" index="index" open="" close="" separator=";">
|
|
|
|
+ update mall_order
|
|
|
|
+ <set>
|
|
|
|
+ <if test="oderInfo.order_sn != null">`order_sn` = #{oderInfo.order_sn},</if>
|
|
|
|
+ <if test="oderInfo.user_id != null">`user_id` = #{oderInfo.user_id},</if>
|
|
|
|
+ <if test="oderInfo.order_status != null">`order_status` = #{oderInfo.order_status},</if>
|
|
|
|
+ <if test="oderInfo.shipping_status != null">`shipping_status` = #{oderInfo.shipping_status},</if>
|
|
|
|
+ <if test="oderInfo.shipping_code != null">`shipping_code` = #{oderInfo.shipping_code},</if>
|
|
|
|
+ <if test="oderInfo.pay_status != null">`pay_status` = #{oderInfo.pay_status},</if>
|
|
|
|
+ <if test="oderInfo.consignee != null">`consignee` = #{oderInfo.consignee},</if>
|
|
|
|
+ <if test="oderInfo.country != null">`country` = #{oderInfo.country},</if>
|
|
|
|
+ <if test="oderInfo.province != null">`province` = #{oderInfo.province},</if>
|
|
|
|
+ <if test="oderInfo.city != null">`city` = #{oderInfo.city},</if>
|
|
|
|
+ <if test="oderInfo.district != null">`district` = #{oderInfo.district},</if>
|
|
|
|
+ <if test="oderInfo.address != null">`address` = #{oderInfo.address},</if>
|
|
|
|
+ <if test="oderInfo.address_id != null">`address_id` = #{oderInfo.address_id},</if>
|
|
|
|
+ <if test="oderInfo.mobile != null">`mobile` = #{oderInfo.mobile},</if>
|
|
|
|
+ <if test="oderInfo.postscript != null">`postscript` = #{oderInfo.postscript},</if>
|
|
|
|
+ <if test="oderInfo.shipping_id != null">`shipping_id` = #{oderInfo.shipping_id},</if>
|
|
|
|
+ <if test="oderInfo.shipping_name != null">`shipping_name` = #{oderInfo.shipping_name},</if>
|
|
|
|
+ <if test="oderInfo.shipping_fee != null">`shipping_fee` = #{oderInfo.shipping_fee},</if>
|
|
|
|
+ <if test="oderInfo.shipping_no != null">`shipping_no` = #{oderInfo.shipping_no},</if>
|
|
|
|
+ <if test="oderInfo.pay_id != null">`pay_id` = #{oderInfo.pay_id},</if>
|
|
|
|
+ <if test="oderInfo.pay_name != null">`pay_name` = #{oderInfo.pay_name},</if>
|
|
|
|
+ <if test="oderInfo.pay_time != null">`pay_time` = #{oderInfo.pay_time},</if>
|
|
|
|
+ <if test="oderInfo.actual_price != null">`actual_price` = #{oderInfo.actual_price},</if>
|
|
|
|
+ <if test="oderInfo.integral != null">`integral` = #{oderInfo.integral},</if>
|
|
|
|
+ <if test="oderInfo.integral_money != null">`integral_money` = #{oderInfo.integral_money},</if>
|
|
|
|
+ <if test="oderInfo.order_price != null">`order_price` = #{oderInfo.order_price},</if>
|
|
|
|
+ <if test="oderInfo.goods_price != null">`goods_price` = #{oderInfo.goods_price},</if>
|
|
|
|
+ <if test="oderInfo.confirm_time != null">`confirm_time` = #{oderInfo.confirm_time},</if>
|
|
|
|
+ <if test="oderInfo.freight_price != null">`freight_price` = #{oderInfo.freight_price},</if>
|
|
|
|
+ <if test="oderInfo.coupon_id != null">`coupon_id` = #{oderInfo.coupon_id},</if>
|
|
|
|
+ <if test="oderInfo.coupon_price != null">`coupon_price` = #{oderInfo.coupon_price},</if>
|
|
|
|
+ <if test="oderInfo.full_cut_price != null">`full_cut_price` = #{oderInfo.full_cut_price},</if>
|
|
|
|
+ <if test="oderInfo.order_type != null">`order_type` = #{oderInfo.order_type},</if>
|
|
|
|
+ <if test="oderInfo.activity_id != null">`activity_id` = #{oderInfo.activity_id},</if>
|
|
|
|
+ <if test="oderInfo.store_id != null">`store_id` = #{oderInfo.store_id},</if>
|
|
|
|
+ <if test="oderInfo.shipping_mobile != null">`shipping_mobile` = #{oderInfo.shipping_mobile},</if>
|
|
|
|
+ <if test="oderInfo.delivery_date != null">`delivery_date` = #{oderInfo.delivery_date},</if>
|
|
|
|
+ <if test="oderInfo.delivery_remark != null">`delivery_remark` = #{oderInfo.delivery_remark},</if>
|
|
|
|
+ <if test="oderInfo.predict_time != null">`predict_time` = #{oderInfo.predict_time},</if>
|
|
|
|
+ <if test="oderInfo.coupon_name != null">`coupon_name` = #{oderInfo.coupon_name},</if>
|
|
|
|
+ <if test="oderInfo.comment_count != null">`comment_count` = #{oderInfo.comment_count},</if>
|
|
|
|
+ <if test="oderInfo.merchSn != null" >merch_sn = #{oderInfo.merchSn},</if>
|
|
|
|
+ <if test="oderInfo.merchOrderSn != null" >merch_order_sn = #{oderInfo.merchOrderSn},</if>
|
|
|
|
+ <if test="oderInfo.isScan != null" >is_scan = #{oderInfo.isScan},</if>
|
|
|
|
+ <if test="oderInfo.isMergePay != null" >is_merge_pay = #{oderInfo.isMergePay},</if>
|
|
|
|
+ <if test="oderInfo.orderBizType != null" >order_biz_type = #{oderInfo.orderBizType},</if>
|
|
|
|
+ <if test="oderInfo.payTransactionId != null" >pay_transaction_id = #{oderInfo.payTransactionId},</if>
|
|
|
|
+ <if test="oderInfo.payMobile != null" >pay_mobile = #{oderInfo.payMobile},</if>
|
|
|
|
+ <if test="oderInfo.buyerPayCheck != null" >buyer_pay_check = #{oderInfo.buyerPayCheck},</if>
|
|
|
|
+ <if test="oderInfo.payFlag != null" >pay_flag = #{oderInfo.payFlag},</if>
|
|
|
|
+ <if test="oderInfo.createrSn != null" >creater_sn = #{oderInfo.createrSn},</if>
|
|
|
|
+ <if test="oderInfo.createTime != null" >create_time = #{oderInfo.createTime},</if>
|
|
|
|
+ <if test="oderInfo.moderSn != null" >moder_sn = #{oderInfo.moderSn},</if>
|
|
|
|
+ <if test="oderInfo.modTime != null" >mod_time = #{oderInfo.modTime},</if>
|
|
|
|
+ </set>
|
|
|
|
+ where id = #{oderInfo.id}
|
|
|
|
+ </foreach>
|
|
|
|
+ </update>
|
|
|
|
+
|
|
<update id="riderOrderUpdate" parameterType="com.kmall.api.entity.OrderVo">
|
|
<update id="riderOrderUpdate" parameterType="com.kmall.api.entity.OrderVo">
|
|
update mall_order
|
|
update mall_order
|
|
<set>
|
|
<set>
|
|
@@ -600,7 +637,59 @@
|
|
<update id="updateOrderByMerchOrderSn" parameterType="com.kmall.api.entity.OrderVo">
|
|
<update id="updateOrderByMerchOrderSn" parameterType="com.kmall.api.entity.OrderVo">
|
|
update mall_order
|
|
update mall_order
|
|
<set>
|
|
<set>
|
|
- `is_merge_pay` = #{isMergePay}
|
|
|
|
|
|
+ <if test="order_sn != null">`order_sn` = #{order_sn},</if>
|
|
|
|
+ <if test="user_id != null">`user_id` = #{user_id},</if>
|
|
|
|
+ <if test="order_status != null">`order_status` = #{order_status},</if>
|
|
|
|
+ <if test="shipping_status != null">`shipping_status` = #{shipping_status},</if>
|
|
|
|
+ <if test="shipping_code != null">`shipping_code` = #{shipping_code},</if>
|
|
|
|
+ <if test="pay_status != null">`pay_status` = #{pay_status},</if>
|
|
|
|
+ <if test="consignee != null">`consignee` = #{consignee},</if>
|
|
|
|
+ <if test="country != null">`country` = #{country},</if>
|
|
|
|
+ <if test="province != null">`province` = #{province},</if>
|
|
|
|
+ <if test="city != null">`city` = #{city},</if>
|
|
|
|
+ <if test="district != null">`district` = #{district},</if>
|
|
|
|
+ <if test="address != null">`address` = #{address},</if>
|
|
|
|
+ <if test="address_id != null">`address_id` = #{address_id},</if>
|
|
|
|
+ <if test="mobile != null">`mobile` = #{mobile},</if>
|
|
|
|
+ <if test="postscript != null">`postscript` = #{postscript},</if>
|
|
|
|
+ <if test="shipping_id != null">`shipping_id` = #{shipping_id},</if>
|
|
|
|
+ <if test="shipping_name != null">`shipping_name` = #{shipping_name},</if>
|
|
|
|
+ <if test="shipping_fee != null">`shipping_fee` = #{shipping_fee},</if>
|
|
|
|
+ <if test="shipping_no != null">`shipping_no` = #{shipping_no},</if>
|
|
|
|
+ <if test="pay_id != null">`pay_id` = #{pay_id},</if>
|
|
|
|
+ <if test="pay_name != null">`pay_name` = #{pay_name},</if>
|
|
|
|
+ <if test="pay_time != null">`pay_time` = #{pay_time},</if>
|
|
|
|
+ <if test="actual_price != null">`actual_price` = #{actual_price},</if>
|
|
|
|
+ <if test="integral != null">`integral` = #{integral},</if>
|
|
|
|
+ <if test="integral_money != null">`integral_money` = #{integral_money},</if>
|
|
|
|
+ <if test="order_price != null">`order_price` = #{order_price},</if>
|
|
|
|
+ <if test="goods_price != null">`goods_price` = #{goods_price},</if>
|
|
|
|
+ <if test="confirm_time != null">`confirm_time` = #{confirm_time},</if>
|
|
|
|
+ <if test="freight_price != null">`freight_price` = #{freight_price},</if>
|
|
|
|
+ <if test="coupon_id != null">`coupon_id` = #{coupon_id},</if>
|
|
|
|
+ <if test="coupon_price != null">`coupon_price` = #{coupon_price},</if>
|
|
|
|
+ <if test="full_cut_price != null">`full_cut_price` = #{full_cut_price},</if>
|
|
|
|
+ <if test="order_type != null">`order_type` = #{order_type},</if>
|
|
|
|
+ <if test="activity_id != null">`activity_id` = #{activity_id},</if>
|
|
|
|
+ <if test="store_id != null">`store_id` = #{store_id},</if>
|
|
|
|
+ <if test="shipping_mobile != null">`shipping_mobile` = #{shipping_mobile},</if>
|
|
|
|
+ <if test="delivery_date != null">`delivery_date` = #{delivery_date},</if>
|
|
|
|
+ <if test="delivery_remark != null">`delivery_remark` = #{delivery_remark},</if>
|
|
|
|
+ <if test="predict_time != null">`predict_time` = #{predict_time},</if>
|
|
|
|
+ <if test="coupon_name != null">`coupon_name` = #{coupon_name},</if>
|
|
|
|
+ <if test="comment_count != null">`comment_count` = #{comment_count},</if>
|
|
|
|
+ <if test="merchSn != null" >merch_sn = #{merchSn},</if>
|
|
|
|
+ <if test="isScan != null" >is_scan = #{isScan},</if>
|
|
|
|
+ <if test="isMergePay != null" >is_merge_pay = #{isMergePay},</if>
|
|
|
|
+ <if test="orderBizType != null" >order_biz_type = #{orderBizType,jdbcType=CHAR},</if>
|
|
|
|
+ <if test="payTransactionId != null" >pay_transaction_id = #{payTransactionId},</if>
|
|
|
|
+ <if test="payMobile != null" >pay_mobile = #{payMobile},</if>
|
|
|
|
+ <if test="buyerPayCheck != null" >buyer_pay_check = #{buyerPayCheck},</if>
|
|
|
|
+ <if test="payFlag != null" >pay_flag = #{payFlag},</if>
|
|
|
|
+ <if test="createrSn != null" >creater_sn = #{createrSn},</if>
|
|
|
|
+ <if test="createTime != null" >create_time = #{createTime},</if>
|
|
|
|
+ <if test="moderSn != null" >moder_sn = #{moderSn},</if>
|
|
|
|
+ <if test="modTime != null" >mod_time = #{modTime},</if>
|
|
</set>
|
|
</set>
|
|
where merch_order_sn = #{merchOrderSn}
|
|
where merch_order_sn = #{merchOrderSn}
|
|
</update>
|
|
</update>
|