修改查询条件
This commit is contained in:
@@ -78,7 +78,11 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
public string FormWriterKeyInfo { get; set; } = string.Empty;
|
||||
|
||||
public string UserKeyInfo { get; set; } = string.Empty;
|
||||
//public string UserKeyInfo { get; set; } = string.Empty;
|
||||
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
|
||||
public string OrganizationName { get; set; } = string.Empty;
|
||||
|
||||
|
||||
}
|
||||
@@ -247,6 +251,8 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
public string UserKeyInfo { get; set; } = string.Empty;
|
||||
|
||||
|
||||
|
||||
public TrialSiteSurveyEnum? State { get; set; }
|
||||
|
||||
public bool? IsAbandon { get; set; }
|
||||
|
||||
@@ -401,7 +401,8 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
.WhereIf(queryParam.TrialRoleNameId != null, t => t.TrialRoleNameId == queryParam.TrialRoleNameId)
|
||||
.WhereIf(queryParam.State != null && queryParam.State != TrialSiteUserStateEnum.OverTime, t => t.InviteState == queryParam.State)
|
||||
.WhereIf(queryParam.State != null && queryParam.State == TrialSiteUserStateEnum.OverTime, t => t.InviteState == TrialSiteUserStateEnum.HasSend && t.ExpireTime < DateTime.Now)
|
||||
.WhereIf(!string.IsNullOrEmpty(queryParam.UserKeyInfo), t => (t.LastName + " / " + t.FirstName).Contains(queryParam.UserKeyInfo) || t.Email.Contains(queryParam.UserKeyInfo) || t.Phone.Contains(queryParam.UserKeyInfo))
|
||||
.WhereIf(!string.IsNullOrEmpty(queryParam.UserName), t => (t.LastName + " / " + t.FirstName).Contains(queryParam.UserName) )
|
||||
.WhereIf(!string.IsNullOrEmpty(queryParam.OrganizationName), t => t.OrganizationName.Contains(queryParam.OrganizationName))
|
||||
|
||||
.ProjectTo<TrialSiteUserSurveyAllDTO>(_mapper.ConfigurationProvider);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user