Commit 790e25563ba348b4f218c27b253af54e2e47f276
1 parent
a92db978fa
Exists in
master
and in
6 other branches
bug修复
Showing 1 changed file with 2 additions and 1 deletions
platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml
View file @
790e255
... | ... | @@ -449,7 +449,7 @@ |
449 | 449 | |
450 | 450 | <select id="findUserSendInfoCount" parameterType="map" resultType="integer"> |
451 | 451 | select count(1) from ( |
452 | - select a.create_hospital_id, a.user_id, a.create_date ,d.name as send_hospital, e.name as doctoer_name | |
452 | + select a.create_hospital_id, a.user_id, DATE_FORMAT(a.create_date, '%Y-%m-%d') as create_date, d.name as send_hospital, e.name as doctoer_name | |
453 | 453 | from |
454 | 454 | coupon_info a, coupon_template b, coupon_type c, organization d, users e |
455 | 455 | where a.coupon_template_id = b.id and b.type_id = c.id and a.create_hospital_id = d.id and a.create_user_id = e.id |
... | ... | @@ -467,6 +467,7 @@ |
467 | 467 | <if test="endDate != null"> |
468 | 468 | and a.create_date <![CDATA[ < ]]> #{endDate} |
469 | 469 | </if> |
470 | + group by a.user_id, a.create_date | |
470 | 471 | ) a |
471 | 472 | </select> |
472 | 473 |