|
|
|
@@ -715,7 +715,7 @@ |
|
|
|
|
|
|
|
<select id="findCountData" parameterType="com.iformall.domain.po.WxCoupon" resultMap="BaseResultMap"> |
|
|
|
select c.*, |
|
|
|
(select sum(wco.id) from wx_coupon wc |
|
|
|
(select count(wco.id) from wx_coupon wc |
|
|
|
left join wx_coupon_order wco on wc.id = wco.coupon_id |
|
|
|
where wc.id = c.id) as sale_count, |
|
|
|
|
|
|
|
|