会员列表sql修改

This commit is contained in:
张松
2025-04-02 16:03:00 +08:00
parent 8bb654080a
commit 989945d85e

View File

@@ -68,7 +68,7 @@
SELECT shop_user_id, COUNT(*) AS couponNum
FROM tb_shop_activate_coupon_record
WHERE status = 0
AND use_start_time < NOW()
AND use_start_time &lt; NOW()
AND use_end_time > NOW()
GROUP BY shop_user_id
) c ON c.shop_user_id = a.id