修改搜索条件
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
hang 2024-12-13 13:24:18 +08:00
parent 1ee30d047d
commit 7318dd4812
2 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,8 @@ namespace IRaCIS.Core.Application.ViewModel
public int? Port { get; set; }
public PacsType? PacsTypeEnum { get; set; }
public string? Modality { get; set; }

View File

@ -30,6 +30,7 @@ namespace IRaCIS.Core.Application.Service
var dicomAEQueryable = _dicomAERepository
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.IP), t => t.IP.Contains(inQuery.IP))
.WhereIf(inQuery.Port != null, t => t.Port == inQuery.Port)
.WhereIf(inQuery.PacsTypeEnum != null, t => t.PacsTypeEnum == inQuery.PacsTypeEnum)
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.CalledAE), t => t.CalledAE.Contains(inQuery.CalledAE))
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.Description), t => t.Description.Contains(inQuery.Description))
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.Modality), t => t.Modality.Contains(inQuery.Modality))