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)