Uat_Study
he 2022-08-26 14:21:07 +08:00
parent eb755734a8
commit 7a6358f167
2 changed files with 5 additions and 4 deletions

View File

@ -217,10 +217,10 @@ namespace IRaCIS.Core.Application.ViewModel
public class OrganInfoQuery public class OrganInfoQuery
{ {
///// <summary> /// <summary>
///// 病灶类型 /// 病灶类型
///// </summary> /// </summary>
//public OrganType? OrganType { get; set; } public OrganType? OrganType { get; set; }
/// <summary> /// <summary>
/// 病灶类型 /// 病灶类型

View File

@ -135,6 +135,7 @@ namespace IRaCIS.Core.Application.Service
var organInfoQueryable = _organInfoRepository var organInfoQueryable = _organInfoRepository
.Where(x=>x.SystemCriterionId==inQuery.SystemCriterionId) .Where(x=>x.SystemCriterionId==inQuery.SystemCriterionId)
.WhereIf(inQuery.LesionType != null, x => organs.Contains(x.OrganType)) .WhereIf(inQuery.LesionType != null, x => organs.Contains(x.OrganType))
.WhereIf(inQuery.OrganType != null, x => x.OrganType == inQuery.OrganType)
.ProjectTo<OrganInfoView>(_mapper.ConfigurationProvider); .ProjectTo<OrganInfoView>(_mapper.ConfigurationProvider);
return await organInfoQueryable.ToListAsync(); return await organInfoQueryable.ToListAsync();
} }