增加邮件查询条件
This commit is contained in:
@@ -65,6 +65,12 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
public SysEmailLevel? SystemLevel { get; set; }
|
||||
public int? BusinessModuleEnum { get; set; }
|
||||
|
||||
public int? EmailUrgentEnum { get; set; }
|
||||
|
||||
public UserTypeEnum? ToUserType { get; set; }
|
||||
|
||||
public UserTypeEnum? CopyUserType { get; set; }
|
||||
|
||||
}
|
||||
|
||||
///<summary> EmailNoticeConfigAddOrEdit 列表查询参数模型</summary>
|
||||
@@ -146,7 +152,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
[DictionaryTranslate("YesOrNo")]
|
||||
public bool IsDistinguishCriteria { get; set; }
|
||||
|
||||
|
||||
|
||||
[DictionaryTranslate("CriterionType")]
|
||||
public CriterionType? CriterionTypeEnum { get; set; }
|
||||
@@ -154,7 +160,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
[DictionaryTranslate("BusinessModule")]
|
||||
public int BusinessModuleEnum { get; set; }
|
||||
|
||||
[DictionaryTranslate("BusinessLevel")]
|
||||
[DictionaryTranslate("BusinessLevel")]
|
||||
public int BusinessLevelEnum { get; set; }
|
||||
|
||||
[DictionaryTranslate("EmailUrgent")]
|
||||
|
||||
@@ -29,6 +29,9 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
.WhereIf(inQuery.BusinessScenarioEnum != null, t => t.BusinessScenarioEnum == inQuery.BusinessScenarioEnum)
|
||||
.WhereIf(inQuery.IsReturnRequired != null, t => t.IsReturnRequired == inQuery.IsReturnRequired)
|
||||
.WhereIf(inQuery.IsEnable != null, t => t.IsEnable == inQuery.IsEnable)
|
||||
.WhereIf(inQuery.EmailUrgentEnum != null, t => t.EmailUrgentEnum == inQuery.EmailUrgentEnum)
|
||||
.WhereIf(inQuery.ToUserType != null, t => t.EmailNoticeUserTypeList.Any(t=>t.UserType==inQuery.ToUserType && t.EmailUserType==EmailUserType.To) )
|
||||
.WhereIf(inQuery.CopyUserType != null, t => t.EmailNoticeUserTypeList.Any(t => t.UserType == inQuery.CopyUserType && t.EmailUserType == EmailUserType.Copy))
|
||||
.ProjectTo<EmailNoticeConfigView>(_mapper.ConfigurationProvider);
|
||||
|
||||
return await emailNoticeConfigQueryable.ToPagedListAsync(inQuery);
|
||||
|
||||
Reference in New Issue
Block a user