添加查询条件
parent
f812a1b0fb
commit
21af8b8093
|
@ -83,6 +83,10 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
///<summary> ChildrenTypeId</summary>
|
||||
public string ChildrenTypeId { get; set; } = string.Empty;
|
||||
|
||||
public string ModuleTypeId { get; set; } = string.Empty
|
||||
|
||||
public string ObjectTypeId { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
|
||||
///<summary> FrontAuditConfigAddOrEdit 列表查询参数模型</summary>
|
||||
|
|
|
@ -84,11 +84,13 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
query = query
|
||||
.WhereIf(!iq.Value.IsNullOrEmpty(), x => x.Value == iq.Value)
|
||||
.WhereIf(!iq.Value.IsNullOrEmpty(), x => x.ValueCN == iq.ValueCN)
|
||||
.WhereIf(!iq.Value.IsNullOrEmpty(), x => x.Description == iq.Description)
|
||||
.WhereIf(!iq.Value.IsNullOrEmpty(), x => x.OptTypeId == iq.OptTypeId)
|
||||
.WhereIf(!iq.Value.IsNullOrEmpty(), x => x.Code == iq.Code)
|
||||
.WhereIf(!iq.Value.IsNullOrEmpty(), x => x.ChildrenTypeId == iq.ChildrenTypeId);
|
||||
.WhereIf(!iq.ValueCN.IsNullOrEmpty(), x => x.ValueCN == iq.ValueCN)
|
||||
.WhereIf(!iq.Description.IsNullOrEmpty(), x => x.Description == iq.Description)
|
||||
.WhereIf(!iq.OptTypeId.IsNullOrEmpty(), x => x.OptTypeId == iq.OptTypeId)
|
||||
.WhereIf(!iq.Code.IsNullOrEmpty(), x => x.Code == iq.Code)
|
||||
.WhereIf(!iq.ChildrenTypeId.IsNullOrEmpty(), x => x.ChildrenTypeId == iq.ChildrenTypeId)
|
||||
.WhereIf(!iq.ModuleTypeId.IsNullOrEmpty(), x => x.ModuleTypeId == iq.ModuleTypeId)
|
||||
.WhereIf(!iq.ObjectTypeId.IsNullOrEmpty(), x => x.ObjectTypeId == iq.ObjectTypeId);
|
||||
|
||||
return await query.OrderBy(x=>x.Sort).ToListAsync();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue