修改枚举

master
he 2024-10-16 15:05:54 +08:00
parent 163c7b3817
commit efc89a503f
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ namespace IRaCIS.Core.Application.Contracts
public async Task<List<UserTypeRoleView>> GetUserTypeRoleList(UserTypeQuery userTypeQuery)
{
var userTypeRoleQueryable = userTypeServiceRepository.Where(t=>t.UserTypeEnum !=UserTypeEnum.SuperAdmin)
var userTypeRoleQueryable = userTypeServiceRepository.Where(t=>t.UserTypeEnum !=UserTypeEnum.Administrator)
.WhereIf(!string.IsNullOrWhiteSpace(userTypeQuery.SearchFilter), t => t.Description.Contains(userTypeQuery.SearchFilter!) || t.UserTypeName.Contains(userTypeQuery.SearchFilter!) || t.UserTypeShortName.Contains(userTypeQuery.SearchFilter!))
.WhereIf(userTypeQuery.GroupId!=null,t=>t.UserTypeGroupList.Any(t=>t.DictionaryId== userTypeQuery.GroupId))

View File

@ -63,7 +63,7 @@
ShareImage = 125,
SuperAdmin=99,
Administrator= 99,
Undefined=0