|
@@ -125,7 +125,7 @@ func EnterpriseUserListByCentralKitchenForSchoolV2(req md.EnterpriseUserListReq) |
|
|
var m []*db.UserWithUserIdentity |
|
|
var m []*db.UserWithUserIdentity |
|
|
count, err := sess. |
|
|
count, err := sess. |
|
|
Join("LEFT", "user_identity", "user.id = user_identity.uid"). |
|
|
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{} |
|
|
var userIdentitiesMap = map[string][]db.UserIdentityWithClass{} |
|
|
userIdentityDb := db.UserIdentityDb{} |
|
|
userIdentityDb := db.UserIdentityDb{} |
|
|