From 64c3d968071c619a4b2aa909b8919c6a8b866c8f Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 23 Sep 2025 09:37:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=B4=E6=8A=A4=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E6=95=B0=E5=AD=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Common/TrialImageDownloadService.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Common/TrialImageDownloadService.cs b/IRaCIS.Core.Application/Service/Common/TrialImageDownloadService.cs index 2b448b802..17b95ecbd 100644 --- a/IRaCIS.Core.Application/Service/Common/TrialImageDownloadService.cs +++ b/IRaCIS.Core.Application/Service/Common/TrialImageDownloadService.cs @@ -1829,7 +1829,7 @@ namespace IRaCIS.Core.Application.Service InstanceCount = 0 }; - ++findStudy.SeriesCount; + //++findStudy.SeriesCount; } @@ -1882,8 +1882,8 @@ namespace IRaCIS.Core.Application.Service WindowWidth = dataset.GetSingleValueOrDefault(DicomTag.WindowWidth, string.Empty), }; - ++findStudy.InstanceCount; - ++findSerice.InstanceCount; + //++findStudy.InstanceCount; + //++findSerice.InstanceCount; //賦值路徑 findInstance.Path = "/" + path; @@ -1895,6 +1895,8 @@ namespace IRaCIS.Core.Application.Service { archieveInfo.IsSeriesAdd = true; + ++findStudy.SeriesCount; + Console.WriteLine($"增加SeriesId:{seriesId}"); await _seriesRepository.AddAsync(findSerice); @@ -1902,6 +1904,10 @@ namespace IRaCIS.Core.Application.Service if (isInstanceNeedAdd && !addInstanceIdList.Any(t => t == instanceId)) { archieveInfo.IsInstanceAdd = true; + + ++findStudy.InstanceCount; + ++findSerice.InstanceCount; + await _instanceRepository.AddAsync(findInstance); Console.WriteLine($"增加Instance:{instanceId}");