|
|
|
@@ -156,9 +156,9 @@ |
|
|
|
((c.status = 1) or (c.valid_type = 1 and c.valid_end_date < now())) |
|
|
|
</update> |
|
|
|
<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 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> |
|
|
|
</mapper> |