This commit is contained in:
suyl
2021-05-27 14:09:16 +08:00
parent f1c26fceec
commit 4dd8e861fe

View File

@@ -722,7 +722,7 @@ func UserMemberReport(ctx *jxcontext.Context, vendorID int, keyword string, offs
GROUP BY 1
) t1 ON t1.mobile = a.mobile
LEFT JOIN (
SELECT a.mobile, COUNT(b.vendor_store_id) finished_count, SUM(ISNULL(b.actual_pay_price)) finished_price
SELECT a.mobile, COUNT(b.vendor_store_id) finished_count, SUM(b.actual_pay_price) finished_price
FROM user_member a
LEFT JOIN goods_order b ON a.mobile = b.consignee_mobile2 AND a.vendor_id = b.vendor_id AND b.order_type = ? AND status = ? AND b.store_id <> ?
GROUP BY 1