From 6f8b88422bebd8d6c6b86728d0a64688f33a4b3b Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Fri, 7 Feb 2025 16:58:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRC.Core.SCP/appsettings.Test_HIR_SCP.json | 2 +- IRC.Core.SCP/appsettings.Uat_HIR_SCP.json | 2 +- IRaCIS.Core.Application/Service/Visit/PatientService.cs | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/IRC.Core.SCP/appsettings.Test_HIR_SCP.json b/IRC.Core.SCP/appsettings.Test_HIR_SCP.json index 787c22596..03517a640 100644 --- a/IRC.Core.SCP/appsettings.Test_HIR_SCP.json +++ b/IRC.Core.SCP/appsettings.Test_HIR_SCP.json @@ -26,7 +26,7 @@ "DicomSCPServiceConfig": { "CalledAEList": [ "STORESCP", - "Value1", + "HIRAE", "Value2", "Value3" ], diff --git a/IRC.Core.SCP/appsettings.Uat_HIR_SCP.json b/IRC.Core.SCP/appsettings.Uat_HIR_SCP.json index 7f1c26e0f..eaf54ff41 100644 --- a/IRC.Core.SCP/appsettings.Uat_HIR_SCP.json +++ b/IRC.Core.SCP/appsettings.Uat_HIR_SCP.json @@ -28,7 +28,7 @@ "DicomSCPServiceConfig": { "CalledAEList": [ "STORESCP", - "Value1", + "HIRAE", "Value2", "Value3" ], diff --git a/IRaCIS.Core.Application/Service/Visit/PatientService.cs b/IRaCIS.Core.Application/Service/Visit/PatientService.cs index 6acd04e72..f1216a2b1 100644 --- a/IRaCIS.Core.Application/Service/Visit/PatientService.cs +++ b/IRaCIS.Core.Application/Service/Visit/PatientService.cs @@ -3157,6 +3157,11 @@ namespace IRaCIS.Application.Services _logger.LogError($" Cmove Pacs 状态返回失败: {response.SOPClassUID.ToJsonNotIgnoreNull()}"); } + // 判断是否传输完成或中断,执行缓存清理 + if (response.Status.State == DicomState.Success && response.Remaining == 0) + { + _fusionCache.Set(CacheKeys.CmoveStudyId(req.Dataset.GetString(DicomTag.StudyInstanceUID)), null, TimeSpan.FromSeconds(1)); + } }; var latestInstanceList = await _scpInstanceRepository.Where(t => inCommand.StudyInstanceUIDList.Contains(t.StudyInstanceUid))