Преглед изворни кода

商户注券->更新库存操作

release_toaliyun_real
Burce пре 6 година
родитељ
комит
f598f48cc7
1 измењених фајлова са 2 додато и 2 уклоњено
  1. +2
    -2
      mallinkService/src/main/resources/mapper/WxCouponSendMapper.xml

+ 2
- 2
mallinkService/src/main/resources/mapper/WxCouponSendMapper.xml Прегледај датотеку

@@ -156,9 +156,9 @@
((c.status = 1) or (c.valid_type = 1 and c.valid_end_date < now())) ((c.status = 1) or (c.valid_type = 1 and c.valid_end_date < now()))
</update> </update>
<update id="reduceMerchantSend"> <update id="reduceMerchantSend">
update wx_coupon_send SET conditions = JSON_SET(conditions,'$.merchantSend',#{merchantSend} - #{number}) where id = #{id} and conditions->'$.merchantSend' = #{merchantSend}
update wx_coupon_send SET conditions = JSON_SET(conditions,'$.merchantSend',#{merchantSend} + #{number}) where id = #{id} and conditions->'$.merchantSend' = #{merchantSend}
</update> </update>
<update id="backMerchantSend"> <update id="backMerchantSend">
update wx_coupon_send SET conditions = JSON_SET(conditions,'$.merchantSend',#{merchantSend} + #{number}) where id = #{id} and conditions->'$.merchantSend' = #{merchantSend}
update wx_coupon_send SET conditions = JSON_SET(conditions,'$.merchantSend',#{merchantSend} - #{number}) where id = #{id} and conditions->'$.merchantSend' = #{merchantSend}
</update> </update>
</mapper> </mapper>

Loading…
Откажи
Сачувај