diff --git a/business/jxstore/report/report.go b/business/jxstore/report/report.go index 3ab166758..9fc878154 100644 --- a/business/jxstore/report/report.go +++ b/business/jxstore/report/report.go @@ -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