aa
This commit is contained in:
@@ -715,7 +715,7 @@ func UserMemberReport(ctx *jxcontext.Context, vendorID int, keyword string, offs
|
||||
FROM user_member a
|
||||
LEFT JOIN user b ON a.mobile = b.mobile
|
||||
LEFT JOIN (
|
||||
SELECT a.mobile, MAX(b.consignee_name) consignee_name, COUNT(b.vendor_store_id) buy_count, SUM(ISNULL(b.actual_pay_price)) buy_price, COUNT(c.score > 3) good_comment_count, COUNT(c.score < 3) bad_comment_count
|
||||
SELECT a.mobile, MAX(b.consignee_name) consignee_name, COUNT(b.vendor_store_id) buy_count, SUM(b.actual_pay_price) buy_price, COUNT(c.score > 3) good_comment_count, COUNT(c.score < 3) bad_comment_count
|
||||
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 b.store_id <> ?
|
||||
LEFT JOIN jx_bad_comments c ON c.order_id = b.vendor_order_id
|
||||
|
||||
Reference in New Issue
Block a user