From 6202d0cef57d099f55e5ff512be1f1f61034bc5c Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Sat, 9 Sep 2023 16:07:15 +0800 Subject: [PATCH] update --- app/admin/svc/enterprise_manage/svc_enterprise_manage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/svc/enterprise_manage/svc_enterprise_manage.go b/app/admin/svc/enterprise_manage/svc_enterprise_manage.go index f28cb4c..3a89544 100644 --- a/app/admin/svc/enterprise_manage/svc_enterprise_manage.go +++ b/app/admin/svc/enterprise_manage/svc_enterprise_manage.go @@ -125,7 +125,7 @@ func EnterpriseUserListByCentralKitchenForSchoolV2(req md.EnterpriseUserListReq) var m []*db.UserWithUserIdentity count, err := sess. Join("LEFT", "user_identity", "user.id = user_identity.uid"). - Limit(req.Limit, (req.Page-1)*req.Limit).FindAndCount(&m) + Limit(req.Limit, (req.Page-1)*req.Limit).GroupBy("user.id").FindAndCount(&m) var userIdentitiesMap = map[string][]db.UserIdentityWithClass{} userIdentityDb := db.UserIdentityDb{}