From 364b84fd1c2500f4b4971871865c58adc8f1cf46 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 19 Dec 2024 10:03:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Visit/PatientService.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Visit/PatientService.cs b/IRaCIS.Core.Application/Service/Visit/PatientService.cs index b1a13b545..7f57cba1f 100644 --- a/IRaCIS.Core.Application/Service/Visit/PatientService.cs +++ b/IRaCIS.Core.Application/Service/Visit/PatientService.cs @@ -3008,6 +3008,16 @@ namespace IRaCIS.Application.Services }; + //判断前段有没有传递时间 + + if (find.PacsSearchMaxDays != 0) + { + //0 天 + 前端不传递就是不限制 + inQuery.StudyDate = inQuery.StudyDate.IsNullOrEmpty() ? $"{DateTime.Now.AddDays(-(find.PacsSearchMaxDays - 1)).ToString("yyyyMMdd")}-{DateTime.Now.ToString("yyyyMMdd")}" : ""; + + } + + //看当前前端有没有传递modality,有的话以前端为准,没有的话以配置为准 构造同样数量的请求 @@ -3051,7 +3061,7 @@ namespace IRaCIS.Application.Services public async Task> CMoveVerify(SCUCmoveCommand inCommand) { var existStudyIdList = _studyRepository.Where(t => inCommand.StudyInstanceUIDList.Contains(t.StudyInstanceUid)) - .Select(t => new { t.StudyInstanceUid, t.StudyId, PatientId = t.PatientIdStr, t.AccessionNumber,t.PatientName }).ToList(); + .Select(t => new { t.StudyInstanceUid, t.StudyId, PatientId = t.PatientIdStr, t.AccessionNumber, t.PatientName }).ToList(); var dic = new Dictionary(); foreach (var item in inCommand.StudyInstanceUIDList)