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);