Uat_Study
he 2023-03-15 10:53:36 +08:00
parent 5cbad9d31c
commit 58294c2e62
3 changed files with 1821 additions and 0 deletions

View File

@ -393,6 +393,12 @@ namespace IRaCIS.Core.Application.ViewModel
public Guid SystemCriterionId { get; set; }
public string Part { get; set; }
public string TULAT { get; set; }
public string TULOC { get; set; }
}

View File

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