增加邮箱查询条件

IRC_NewDev
hang 2024-05-29 15:45:21 +08:00
parent fb43e38c7d
commit 862390ae78
2 changed files with 7 additions and 0 deletions

View File

@ -213,6 +213,12 @@ namespace IRaCIS.Application.Contracts
public bool ? IsZhiZhun { get; set; }
public UserStateEnum? UserState { get; set; }
public DateTime? BeginCreateTime { get; set; }
public DateTime? EndCreateTime { get; set; }
public string? EMail { get; set; }
}
public class UserRoleInfoDTO

View File

@ -488,6 +488,7 @@ namespace IRaCIS.Application.Services
.WhereIf(!string.IsNullOrWhiteSpace(param.RealName), t => t.FullName.Contains(param.RealName))
.WhereIf(!string.IsNullOrWhiteSpace(param.Phone), t => t.Phone.Contains(param.Phone))
.WhereIf(!string.IsNullOrWhiteSpace(param.OrganizationName), t => t.OrganizationName.Contains(param.OrganizationName))
.WhereIf(!string.IsNullOrWhiteSpace(param.EMail), t => t.EMail.Contains(param.EMail))
.WhereIf(param.UserType != null, t => t.UserTypeId == param.UserType)
.WhereIf(param.UserState != null, t => t.Status == param.UserState)
.WhereIf(param.IsTestUser != null, t => t.IsTestUser == param.IsTestUser)