From 6b1c8db76c0d00b7db95531fcc221fc35a04f206 Mon Sep 17 00:00:00 2001 From: hupeng Date: Thu, 18 Oct 2018 11:39:27 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8D=A1=E5=88=B8][=E4=BF=AE=E5=A4=8D]:?= =?UTF-8?q?=E5=AE=9A=E5=90=91=E5=8F=91=E9=80=81=E5=8D=A1=E5=88=B8=E8=AF=AF?= =?UTF-8?q?=E4=B8=8B=E6=9E=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/WxCouponSendMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxCouponSendMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponSendMapper.xml index 3b8cedc53..35868f611 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponSendMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponSendMapper.xml @@ -104,8 +104,8 @@ update wx_coupon_send cs, wx_coupon c set cs.status=1, cs.update_date = now() - where (cs.status = 0 and c.status = 1 and c.id = cs.coupon_id) - or (cs.status = 0 and c.valid_type = 1 and c.valid_end_date < now()) + where c.id = cs.coupon_id and cs.status = 0 and + ((c.status = 1) or (c.valid_type = 1 and c.valid_end_date < now()))