Commit 10daf9648af3d6616d68ed58e08dda895a9a95f9
1 parent
1566c319d9
Exists in
master
and in
6 other branches
改bug
Showing 1 changed file with 4 additions and 4 deletions
platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml
View file @
10daf96
... | ... | @@ -388,7 +388,7 @@ |
388 | 388 | <if test="endDate != null"> |
389 | 389 | and a.use_date <![CDATA[ < ]]> #{endDate} |
390 | 390 | </if> |
391 | - order by a.user_id desc, a.use_date desc | |
391 | + order by a.use_date desc, a.user_id desc | |
392 | 392 | <if test="needPage == true"> |
393 | 393 | limit #{currentPage},#{pageSize} |
394 | 394 | </if> |
395 | 395 | |
396 | 396 | |
... | ... | @@ -714,12 +714,12 @@ |
714 | 714 | #{type} |
715 | 715 | </foreach> |
716 | 716 | <if test="startDate != null"> |
717 | - and a.create_date >= #{startDate} | |
717 | + and a.use_date_date >= #{startDate} | |
718 | 718 | </if> |
719 | 719 | <if test="endDate != null"> |
720 | - and a.create_date <![CDATA[ < ]]> #{endDate} | |
720 | + and a.use_date <![CDATA[ < ]]> #{endDate} | |
721 | 721 | </if> |
722 | - ) a left join users b on a.create_user_id = b.id | |
722 | + ) a left join users b on a.create_user_id = b.id order by a.create_date desc | |
723 | 723 | |
724 | 724 | <!-- select distinct(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 |
725 | 725 | from coupon_info a, coupon_template b, coupon_type c, organization d, users e |