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