diff --git a/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml b/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml index 51bf8ca..a57b1e4 100644 --- a/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml +++ b/platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml @@ -286,10 +286,10 @@ ) b where a.used_hospital_id = b.hospital_id and a.coupon_template_id = b.id and a.status = 2 - and a.create_date >= #{startDate} + and a.use_date >= #{startDate} - and a.create_date #{endDate} + and a.use_date #{endDate} group by b.coupon_order, b.type, a.used_hospital_id