|
|
|
@@ -141,7 +141,7 @@ |
|
|
|
(select count(*) as coupon_count,coupon_id from wx_coupon_password |
|
|
|
where tenant_id=#{tenantId} and status=0 group by coupon_id) cp |
|
|
|
inner join wx_coupon c on cp.coupon_id = c.id |
|
|
|
where c.tenant_id=#{tenantId} and c.status=0 and put_apply_status in(0,2) |
|
|
|
where c.tenant_id=#{tenantId} and c.status=0 and c.put_apply_status in(0,2) |
|
|
|
<if test=" null != couponId "> |
|
|
|
and cp.`coupon_id` = #{couponId} |
|
|
|
</if> |
|
|
|
|