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