|
|
@@ -155,39 +155,49 @@
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <update id="updateHkNoticeMsgPickUpCode" parameterType="java.util.List">
|
|
|
- update mall_order
|
|
|
- <trim prefix="set" suffixOverrides=",">
|
|
|
-
|
|
|
- <trim prefix="pick_up_code_status =case" suffix="end,">
|
|
|
- <foreach collection="list" item="item" index="index">
|
|
|
- <if test="item.clearType!=null and item.clearType=1">
|
|
|
- when #{item.orderSn}=1
|
|
|
- then 2
|
|
|
- </if>
|
|
|
- <if test="item.clearType!=null and item.clearType=2">
|
|
|
- when #{item.orderSn}=2
|
|
|
- then 4
|
|
|
- </if>
|
|
|
- <if test="item.clearType!=null and item.clearType=3">
|
|
|
- when #{item.orderSn}=3
|
|
|
- then 4
|
|
|
- </if>
|
|
|
- <if test="item.clearType!=null and item.clearType=4">
|
|
|
- when #{item.orderSn}=4
|
|
|
- then 4
|
|
|
- </if>
|
|
|
- <if test="item.clearType==null">
|
|
|
- when order_sn=#{item.orderSn}
|
|
|
- then mall_pick_up_code.pick_up_code_status
|
|
|
- </if>
|
|
|
- </foreach>
|
|
|
- </trim>
|
|
|
-
|
|
|
- </trim>
|
|
|
- where order_sn in
|
|
|
- <foreach collection="list" item="item" index="index" separator="," open="(" close=")">
|
|
|
- #{item.orderSn}
|
|
|
+<!-- <update id="updateHkNoticeMsgPickUpCode" parameterType="java.util.List">-->
|
|
|
+<!-- update mall_pick_up_code-->
|
|
|
+<!-- <trim prefix="set" suffixOverrides=",">-->
|
|
|
+
|
|
|
+<!-- <trim prefix="pick_up_code_status =case" suffix="end,">-->
|
|
|
+<!-- <foreach collection="list" item="item" index="index">-->
|
|
|
+<!-- <if test="item.clearType!=null and item.clearType='1'">-->
|
|
|
+<!-- when 1=#{item.clearType}-->
|
|
|
+<!-- then 2-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="item.clearType!=null and item.clearType !='1'">-->
|
|
|
+<!-- when 4=#{item.clearType}-->
|
|
|
+<!-- then 4-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="item.clearType==null">-->
|
|
|
+<!-- when order_sn=#{item.orderSn}-->
|
|
|
+<!-- then mall_pick_up_code.pick_up_code_status-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- </foreach>-->
|
|
|
+<!-- </trim>-->
|
|
|
+
|
|
|
+<!-- </trim>-->
|
|
|
+<!-- where order_sn in-->
|
|
|
+<!-- <foreach collection="list" item="item" index="index" separator="," open="(" close=")">-->
|
|
|
+<!-- #{item.orderSn}-->
|
|
|
+<!-- </foreach>-->
|
|
|
+<!-- </update>-->
|
|
|
+
|
|
|
+ <update id="updateHkNoticeMsgPickUpCode" parameterType="java.util.List">
|
|
|
+ <foreach collection="list" item="item" index="index" open="" close="" separator=";">
|
|
|
+ update mall_pick_up_code
|
|
|
+ <set>
|
|
|
+ <if test='item.clearType!=null and item.clearType =="1"'>
|
|
|
+ pick_up_code_status=2
|
|
|
+ </if>
|
|
|
+ <if test='item.clearType!=null and item.clearType !="1"'>
|
|
|
+ pick_up_code_status=4
|
|
|
+ </if>
|
|
|
+ <if test='item.clearType==null'>
|
|
|
+ pick_up_code_status=mall_pick_up_code.pick_up_code_status
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where order_sn = #{item.orderSn}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
|