修改管理用户类型过滤

This commit is contained in:
2025-02-24 17:21:09 +08:00
parent 1856ef9483
commit 4a1e0a87ba
4 changed files with 21 additions and 1 deletions
@@ -141,7 +141,7 @@ namespace IRaCIS.Core.Application.Contracts
var query = _userTypeRepository.Where(x => x.UserTypeEnum != UserTypeEnum.SuperAdmin)
var query = _userTypeRepository.Where(x => x.UserTypeEnum != UserTypeEnum.SuperAdmin && x.IsEnable==true)
.WhereIf(userTypeSelectEnum != UserTypeSelectEnum.None, t => userTypeEnums.Contains(t.UserTypeEnum))
.OrderBy(t => t.UserTypeShortName).ProjectTo<TrialUserType>(_mapper.ConfigurationProvider);