Uat_Study
parent
e0ffef7201
commit
df755c4fed
|
@ -86,6 +86,11 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
///<summary> 类型名称</summary>
|
||||
public string TypeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型枚举
|
||||
/// </summary>
|
||||
public OrganType? OrganType { get; set; }
|
||||
|
||||
}
|
||||
|
||||
///<summary> OrganInfoAddOrEdit 列表查询参数模型</summary>
|
||||
|
|
|
@ -42,6 +42,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
{
|
||||
var organInfoQueryable = _organInfoRepository
|
||||
.WhereIf(!inQuery.TypeName.IsNullOrEmpty(),x=>x.TypeName==inQuery.TypeName)
|
||||
.WhereIf(inQuery.OrganType!=null, x => x.OrganType == inQuery.OrganType)
|
||||
.ProjectTo<OrganInfoView>(_mapper.ConfigurationProvider);
|
||||
return await organInfoQueryable.ToListAsync();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue