优惠券里外数量一致
This commit is contained in:
@@ -66,10 +66,11 @@
|
||||
LEFT JOIN (
|
||||
SELECT shop_user_id, COUNT(*) AS couponNum
|
||||
FROM mk_shop_coupon_record
|
||||
WHERE status = 0
|
||||
AND use_start_time < NOW()
|
||||
AND use_end_time > NOW()
|
||||
AND is_del = 0
|
||||
WHERE
|
||||
is_del = 0
|
||||
# AND status = 0
|
||||
# AND use_start_time < NOW()
|
||||
# AND use_end_time > NOW()
|
||||
GROUP BY shop_user_id
|
||||
) c ON c.shop_user_id = a.id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user