This commit is contained in:
桀尼龟 2025-02-22 19:20:50 +08:00
parent a9e1c2d13b
commit af363868e8

View File

@ -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))