diff --git a/src/Shentun.Peis.Application.Contracts/PhoneFollowUps/GetPatientRegisterCriticalListInputDto.cs b/src/Shentun.Peis.Application.Contracts/PhoneFollowUps/GetPatientRegisterCriticalListInputDto.cs index 5ede5e4..3023cf2 100644 --- a/src/Shentun.Peis.Application.Contracts/PhoneFollowUps/GetPatientRegisterCriticalListInputDto.cs +++ b/src/Shentun.Peis.Application.Contracts/PhoneFollowUps/GetPatientRegisterCriticalListInputDto.cs @@ -86,9 +86,9 @@ namespace Shentun.Peis.PhoneFollowUps public char? IsPhoneComplete { get; set; } /// - /// 诊断级别ID + /// 诊断级别ID 集合 可以查多个 /// - public short? DiagnosisLevelId { get; set; } + public List DiagnosisLevelIds { get; set; } = new List(); public int MaxResultCount { get; set; } = 50; diff --git a/src/Shentun.Peis.Application/PhoneFollowUps/PhoneFollowUpAppService.cs b/src/Shentun.Peis.Application/PhoneFollowUps/PhoneFollowUpAppService.cs index 5770928..eff0d73 100644 --- a/src/Shentun.Peis.Application/PhoneFollowUps/PhoneFollowUpAppService.cs +++ b/src/Shentun.Peis.Application/PhoneFollowUps/PhoneFollowUpAppService.cs @@ -259,9 +259,9 @@ namespace Shentun.Peis.PhoneFollowUps query = query.Where(m => m.followUp.IsPhoneComplete == input.IsPhoneComplete); } - if (input.DiagnosisLevelId != null) + if (input.DiagnosisLevelIds.Any()) { - query = query.Where(m => m.registerCheck.DiagnosisLevelId == input.DiagnosisLevelId || m.registerCheckItem.DiagnosisLevelId == input.DiagnosisLevelId); + query = query.Where(m => input.DiagnosisLevelIds.Contains(m.registerCheck.DiagnosisLevelId) || input.DiagnosisLevelIds.Contains(m.registerCheckItem.DiagnosisLevelId)); } #endregion