Uat_Study
he 2022-08-12 17:32:31 +08:00
parent e0ffef7201
commit df755c4fed
2 changed files with 6 additions and 0 deletions

View File

@ -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>

View File

@ -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();
}