From a293c484283014fb6a7f1a0042c5f0ba2d8ba783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 12 Oct 2020 17:36:23 +0800 Subject: [PATCH] totalcount --- business/partner/purchase/jx/localjx/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/partner/purchase/jx/localjx/user.go b/business/partner/purchase/jx/localjx/user.go index 3eaa34ad9..feb9d59f5 100644 --- a/business/partner/purchase/jx/localjx/user.go +++ b/business/partner/purchase/jx/localjx/user.go @@ -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,