From 1ee30d047d843a82c78dbcdfba94e3947e175e26 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 12 Dec 2024 17:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9Patient=20=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Visit/PatientService.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/IRaCIS.Core.Application/Service/Visit/PatientService.cs b/IRaCIS.Core.Application/Service/Visit/PatientService.cs index 120629eb3..21bea1016 100644 --- a/IRaCIS.Core.Application/Service/Visit/PatientService.cs +++ b/IRaCIS.Core.Application/Service/Visit/PatientService.cs @@ -2887,6 +2887,7 @@ namespace IRaCIS.Application.Services /// /// /// + [HttpPost] public async Task> GetCFindStudyList(SCUQuery inQuery, [FromServices] IRepository _dicomAEReposiotry, [FromServices] ILogger _logger) @@ -2941,6 +2942,15 @@ namespace IRaCIS.Application.Services /// public async Task CmoveStudyList(SCUCmoveCommand inCommand, [FromServices] IRepository _dicomAEReposiotry) { + var existStudyIdList = _studyRepository.Where(t => inCommand.StudyIDList.Contains(t.StudyId)).Select(t => t.StudyId).ToList(); + + var needMoveList = inCommand.StudyIDList.Except(existStudyIdList).ToList(); + + if (needMoveList.Count == 0) + { + return ResponseOutput.Ok(); + } + var result = new List(); var find = await _dicomAEReposiotry.FirstOrDefaultAsync(t => t.Id == inCommand.PacsDicomAEId);