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()