totalcount
This commit is contained in:
@@ -29,7 +29,7 @@ func GetJxShopUsers(ctx *jxcontext.Context, keyword, fromTime, toTime string, ve
|
|||||||
sqlParams = []interface{}{}
|
sqlParams = []interface{}{}
|
||||||
)
|
)
|
||||||
sql := `
|
sql := `
|
||||||
SELECT a.*, b.name, b.created_at, b.last_login_at
|
SELECT SQL_CALC_FOUND_ROWS a.*, b.name, b.created_at, b.last_login_at
|
||||||
FROM (
|
FROM (
|
||||||
SELECT c.vendor_user_id, IF(c.consignee_mobile2 <> '',c.consignee_mobile2,c.consignee_mobile) mobile,
|
SELECT c.vendor_user_id, IF(c.consignee_mobile2 <> '',c.consignee_mobile2,c.consignee_mobile) mobile,
|
||||||
c.vendor_id,COUNT(*) buy_count, SUM(c.actual_pay_price) actual_pay_price, COUNT(d.score > 3) good_comment_count,
|
c.vendor_id,COUNT(*) buy_count, SUM(c.actual_pay_price) actual_pay_price, COUNT(d.score > 3) good_comment_count,
|
||||||
|
|||||||
Reference in New Issue
Block a user