diff --git a/business/jxstore/report/report.go b/business/jxstore/report/report.go index ce39cecde..f650c3911 100644 --- a/business/jxstore/report/report.go +++ b/business/jxstore/report/report.go @@ -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