Merge branch 'master' into test6.9.24
Showing
1 changed file
with
2 additions
and
3 deletions
@@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
24 | 24 | ||
25 | <select id="selectByCouponIds" resultType="com.yoho.ufo.model.coupon.UserCouponNum"> | 25 | <select id="selectByCouponIds" resultType="com.yoho.ufo.model.coupon.UserCouponNum"> |
26 | select | 26 | select |
27 | - count(uid) cnt, coupon_id | 27 | + count(*) cnt, coupon_id |
28 | from user_coupon | 28 | from user_coupon |
29 | where | 29 | where |
30 | coupon_id IN | 30 | coupon_id IN |
@@ -37,11 +37,10 @@ | @@ -37,11 +37,10 @@ | ||
37 | 37 | ||
38 | <select id="selectByCouponId" resultType="com.yoho.ufo.model.coupon.UserCouponNum"> | 38 | <select id="selectByCouponId" resultType="com.yoho.ufo.model.coupon.UserCouponNum"> |
39 | select | 39 | select |
40 | - count(uid) cnt, coupon_id | 40 | + count(*) cnt, coupon_id |
41 | from user_coupon | 41 | from user_coupon |
42 | where | 42 | where |
43 | coupon_id=#{couponId,jdbcType=INTEGER} | 43 | coupon_id=#{couponId,jdbcType=INTEGER} |
44 | - group by coupon_id | ||
45 | </select> | 44 | </select> |
46 | 45 | ||
47 | 46 |
-
Please register or login to post a comment