修改枚举

master
he 2024-10-16 15:06:25 +08:00
parent efc89a503f
commit 6cc7da1100
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ namespace IRaCIS.Application.Services
[HttpPost]
public async Task<PageOutput<UserListDTO>> GetUserList(UserListQueryDTO param)
{
var userQueryable = _userRepository.Where(x => x.UserTypeEnum != UserTypeEnum.NormalAdmin && x.UserTypeEnum!=UserTypeEnum.SuperAdmin)
var userQueryable = _userRepository.Where(x => x.UserTypeEnum != UserTypeEnum.NormalAdmin && x.UserTypeEnum!=UserTypeEnum.Administrator)
.WhereIf(!string.IsNullOrWhiteSpace(param.UserName), t => t.UserName.Contains(param.UserName) )
.WhereIf(!string.IsNullOrWhiteSpace(param.RealName), t => t.FullName.Contains(param.RealName))
.WhereIf(!string.IsNullOrWhiteSpace(param.Phone), t => t.Phone.Contains(param.Phone))