Uat_Study
parent
eb755734a8
commit
7a6358f167
|
@ -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>
|
||||||
/// 病灶类型
|
/// 病灶类型
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue