修改
This commit is contained in:
parent
a9e1c2d13b
commit
af363868e8
@ -648,6 +648,9 @@ func (a *AccountProvider) UserList(ctx context.Context, in *account.UserListRequ
|
||||
if in.AuditStatus != 0 {
|
||||
modelObj.Where("status = ? ", in.AuditStatus)
|
||||
}
|
||||
if in.Sex != 0 {
|
||||
modelObj.Where("real_name.sex = ? ", in.Sex)
|
||||
}
|
||||
modelObj.Count(&count)
|
||||
if in.Page > 0 && in.PageSize > 0 {
|
||||
modelObj.Limit(int(in.PageSize)).Offset(page.GetOffset(in.Page, in.PageSize))
|
||||
|
Loading…
Reference in New Issue
Block a user