diff --git a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml index f66016e62..02a14cf9e 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml @@ -1232,11 +1232,12 @@ wx_coupon_order WHERE `tenant_id` = #{tenantId} + AND DATE_FORMAT( create_date, '%Y' ) = '2023' - and `coupon_order_status` = #{couponOrderStatus} + AND `coupon_order_status` = #{couponOrderStatus} - and DATE_FORMAT( create_date, '%Y-%m-%d' ) = DATE_FORMAT( #{specificDate}, '%Y-%m-%d' ) + AND DATE_FORMAT( create_date, '%Y-%m-%d' ) = DATE_FORMAT( #{specificDate}, '%Y-%m-%d' )