diff --git a/mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml index 4f36c5a76..d5a77dca8 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml @@ -153,12 +153,12 @@ - update wx_coupon_channel, wx_coupon c SET cc.status = 1, cc.update_date = now() + update wx_coupon_channel cc, wx_coupon c SET cc.status = 1, cc.update_date = now() where cc.status = 0 and cc.coupon_id = c.id and c.valid_type = 1 and valid_end_date < now() - update wx_coupon_channel, wx_coupon c SET cc.status = 1, cc.update_date = now() + update wx_coupon_channel cc, wx_coupon c SET cc.status = 1, cc.update_date = now() where cc.status = 0 and cc.coupon_id = c.id and c.status = 1