Commit d745b2b7a6acdca77038e6febbcdb629b135094b
1 parent
106c38e4de
Exists in
master
and in
6 other branches
优惠券统计的时间改为使用时间
Showing 1 changed file with 2 additions and 2 deletions
platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml
View file @
d745b2b
| ... | ... | @@ -286,10 +286,10 @@ |
| 286 | 286 | ) b |
| 287 | 287 | where a.used_hospital_id = b.hospital_id and a.coupon_template_id = b.id and a.status = 2 |
| 288 | 288 | <if test="startDate != null"> |
| 289 | - and a.create_date >= #{startDate} | |
| 289 | + and a.use_date >= #{startDate} | |
| 290 | 290 | </if> |
| 291 | 291 | <if test="endDate != null"> |
| 292 | - and a.create_date <![CDATA[ < ]]> #{endDate} | |
| 292 | + and a.use_date <![CDATA[ < ]]> #{endDate} | |
| 293 | 293 | </if> |
| 294 | 294 | group by b.coupon_order, b.type, a.used_hospital_id |
| 295 | 295 | </select> |