From 50f87f31eab5c278f94b4c8ee717f8c5201683b5 Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Fri, 16 Nov 2018 13:43:01 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=97=A5=E6=9C=9F=E6=94=B9=E4=B8=BA=E8=87=AA?= =?UTF-8?q?=E7=84=B6=E6=97=A5][=E4=BF=AE=E6=94=B9]:=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E5=88=A4=E6=96=AD24=E5=B0=8F=E6=97=B6=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E8=87=AA=E7=84=B6=E6=97=A5=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/WxCouponActionLogMapper.xml | 4 ++-- .../src/main/resources/mapper/WxCouponOrderMapper.xml | 2 +- .../src/main/resources/mapper/WxDateAmountRecordMapper.xml | 2 +- mallinkService/src/main/resources/mapper/WxOrderMapper.xml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml index df851733e..036ce3938 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml @@ -164,7 +164,7 @@ WHERE a.coupon_order_id = o.id AND a.tenant_id = #{tenantId} AND o.c_user_id = #{cUserId} - AND a.create_time between date_sub(now(),interval 1 day) and now() + AND date(a.create_time) = curdate() diff --git a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml index 0147a1c29..da6904975 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml @@ -98,7 +98,7 @@ and `c_user_id` = #{cUserId} - and `create_date` between date_sub(now(),interval 1 day) and now() + and date(`create_date`) = curdate() diff --git a/mallinkService/src/main/resources/mapper/WxDateAmountRecordMapper.xml b/mallinkService/src/main/resources/mapper/WxDateAmountRecordMapper.xml index c0b2749f9..e752c691d 100644 --- a/mallinkService/src/main/resources/mapper/WxDateAmountRecordMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxDateAmountRecordMapper.xml @@ -99,7 +99,7 @@ diff --git a/mallinkService/src/main/resources/mapper/WxOrderMapper.xml b/mallinkService/src/main/resources/mapper/WxOrderMapper.xml index f2ffa605c..e524d4902 100644 --- a/mallinkService/src/main/resources/mapper/WxOrderMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxOrderMapper.xml @@ -121,7 +121,7 @@ and `order_status` = #{orderStatus} - and `create_date` between date_sub(now(),interval 1 day) and now() + and date(`create_date`) = curdate()