From 6db5c4b51dafe0a7472aed3a50df1d5723b2fe56 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Wed, 23 Oct 2024 15:14:17 +0800 Subject: [PATCH] =?UTF-8?q?510k=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/Management/UserTypeService.cs | 2 +- IRaCIS.Core.Domain.Share/User/UserType.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Management/UserTypeService.cs b/IRaCIS.Core.Application/Service/Management/UserTypeService.cs index 954c788..27ad7a0 100644 --- a/IRaCIS.Core.Application/Service/Management/UserTypeService.cs +++ b/IRaCIS.Core.Application/Service/Management/UserTypeService.cs @@ -26,7 +26,7 @@ namespace IRaCIS.Core.Application.Contracts public async Task> GetUserTypeRoleList(UserTypeQuery userTypeQuery) { - var userTypeRoleQueryable = userTypeServiceRepository.Where(t=>t.UserTypeEnum !=UserTypeEnum.Administrator) + var userTypeRoleQueryable = userTypeServiceRepository.Where(t=>t.UserTypeEnum !=UserTypeEnum.SuperAdmin) .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)) diff --git a/IRaCIS.Core.Domain.Share/User/UserType.cs b/IRaCIS.Core.Domain.Share/User/UserType.cs index 870e04d..fb9a0bc 100644 --- a/IRaCIS.Core.Domain.Share/User/UserType.cs +++ b/IRaCIS.Core.Domain.Share/User/UserType.cs @@ -63,7 +63,7 @@ ShareImage = 125, - Administrator= 99, + SuperAdmin = 99, Undefined=0