Commit aa02462921088f5273ef28e32777967e23dacb94
1 parent
4dcad0de81
Exists in
master
and in
6 other branches
优惠劵统计优化
Showing 1 changed file with 1 additions and 4 deletions
platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml
View file @
aa02462
... | ... | @@ -872,10 +872,7 @@ |
872 | 872 | select a.ymd, a.user_id from ( |
873 | 873 | select DATE_FORMAT(a.create_date, '%Y-%m-%d') as ymd, a.user_id |
874 | 874 | from coupon_info a, coupon_template b, coupon_type c |
875 | - where a.user_id in | |
876 | - <foreach collection="userIds" open="(" close=")" separator="," item="uid"> | |
877 | - #{uid} | |
878 | - </foreach> | |
875 | + where 1=1 | |
879 | 876 | <if test="startDate != null"> |
880 | 877 | and a.create_date >= #{startDate} |
881 | 878 | </if> |