From 60ba1f594296fb338c038b32b215167cb629d0d4 Mon Sep 17 00:00:00 2001 From: hupeng Date: Tue, 11 Dec 2018 12:15:07 +0800 Subject: [PATCH] =?UTF-8?q?[A=E7=AB=AF][=E9=9C=80=E6=B1=82]:couponordermap?= =?UTF-8?q?per=E4=B8=AD=E4=B8=80=E4=BA=9B=E6=8E=A5=E5=8F=A3=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/WxCouponOrderMapper.xml | 42 +++++++++---------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml index 6bfffe460..1d49b120f 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml @@ -454,28 +454,6 @@ order by xTime desc - - - - - - - - update wx_coupon_order SET coupon_order_status = 2, update_date = now() - where expired_time < now() and coupon_price = 0 and coupon_order_status = 0 - - - - c.id,c.expired_time,c.coupon_order_status,c.create_date,c.update_date,c.coupon_price, co.cover_img,co.title,co.sub_title,co.sale_price,co.use_price,co.price,co.unit,m.id as merchant_id, @@ -589,4 +567,24 @@ and create_date <= #{endTime} + + + + + + update wx_coupon_order SET coupon_order_status = 2, update_date = now() + where expired_time < now() and coupon_price = 0 and coupon_order_status = 0 + + + + \ No newline at end of file