aa
This commit is contained in:
@@ -709,7 +709,7 @@ func UserMemberReport(ctx *jxcontext.Context, vendorID int, keyword string, offs
|
|||||||
)
|
)
|
||||||
var list []*dao.UserMemberReportResult
|
var list []*dao.UserMemberReportResult
|
||||||
sql := `
|
sql := `
|
||||||
SELECT a.mobile, IF(a.vendor_id = ?, b.name, t1.consignee_name) name, IF(a.deleted_at = ?, ?, ?) status, a.vendor_id, t1.buy_count, t1.buy_price,
|
SELECT SQL_CALC_FOUND_ROWS a.mobile, IF(a.vendor_id = ?, b.name, t1.consignee_name) name, IF(a.deleted_at = ?, ?, ?) status, a.vendor_id, t1.buy_count, t1.buy_price,
|
||||||
t1.good_comment_count, t1.bad_comment_count, t2.finished_count, t2.finished_price
|
t1.good_comment_count, t1.bad_comment_count, t2.finished_count, t2.finished_price
|
||||||
FROM user_member a
|
FROM user_member a
|
||||||
LEFT JOIN user b ON a.mobile = b.mobile
|
LEFT JOIN user b ON a.mobile = b.mobile
|
||||||
@@ -726,6 +726,7 @@ func UserMemberReport(ctx *jxcontext.Context, vendorID int, keyword string, offs
|
|||||||
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 <> ?
|
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
|
GROUP BY 1
|
||||||
)t2 ON t2.mobile = a.mobile
|
)t2 ON t2.mobile = a.mobile
|
||||||
|
WHERE 1 = 1
|
||||||
`
|
`
|
||||||
sqlParams := []interface{}{
|
sqlParams := []interface{}{
|
||||||
model.VendorIDJX, utils.DefaultTimeValue, model.YES, model.NO,
|
model.VendorIDJX, utils.DefaultTimeValue, model.YES, model.NO,
|
||||||
|
|||||||
Reference in New Issue
Block a user