From e0e752d604cd0e43e6a0fc985c8030dd8a06b99c Mon Sep 17 00:00:00 2001 From: wxd <123@qq.com> Date: Sun, 24 Nov 2024 17:42:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=B1=E6=80=A5=E5=80=BC=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=A4=9A=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PhoneFollowUps/GetPatientRegisterCriticalListInputDto.cs | 4 ++-- .../PhoneFollowUps/PhoneFollowUpAppService.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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