totalcount

This commit is contained in:
苏尹岚
2020-10-12 17:36:23 +08:00
parent f589df1c7f
commit a293c48428

View File

@@ -29,7 +29,7 @@ func GetJxShopUsers(ctx *jxcontext.Context, keyword, fromTime, toTime string, ve
sqlParams = []interface{}{}
)
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 (
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,