修改
This commit is contained in:
@@ -94,6 +94,9 @@ namespace IRaCIS.Core.Application.Service
|
||||
|
||||
var organInfoQueryable = _organInfoRepository
|
||||
.Where(x => x.SystemCriterionId == inQuery.SystemCriterionId)
|
||||
.WhereIf(!inQuery.Part.IsNullOrEmpty() , x => x.Part.Contains(inQuery.Part))
|
||||
.WhereIf(!inQuery.TULOC.IsNullOrEmpty(), x => x.TULOC.Contains(inQuery.TULOC))
|
||||
.WhereIf(!inQuery.TULAT.IsNullOrEmpty(), x => x.TULAT.Contains(inQuery.TULAT))
|
||||
.WhereIf(inQuery.LesionType != null, x => organs.Contains(x.OrganType))
|
||||
.WhereIf(inQuery.OrganType != null, x => x.OrganType == inQuery.OrganType)
|
||||
.ProjectTo<OrganInfoView>(_mapper.ConfigurationProvider);
|
||||
|
||||
Reference in New Issue
Block a user