shop_user shopId问题

This commit is contained in:
wangw 2025-10-29 14:29:00 +08:00
parent a3ee3031ee
commit 31a3ac76df
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@
SELECT user_id, shop_id, COUNT(*) AS orderNumber
FROM tb_order_info
GROUP BY user_id, shop_id
) d ON d.user_id = a.user_id AND d.shop_id = a.shop_id
) d ON d.user_id = a.user_id AND d.shop_id = a.main_shop_id
-- 预计算充值总金额
LEFT JOIN (
@ -89,7 +89,7 @@
FROM tb_shop_user_flow
WHERE biz_code IN ('cashIn', 'wechatIn', 'alipayIn')
GROUP BY user_id, shop_id
) f ON f.user_id = a.user_id AND f.shop_id = a.shop_id
) f ON f.user_id = a.user_id AND f.shop_id = a.main_shop_id
WHERE a.main_shop_id = #{shopId}