From 0d65625caaa96acb65e14f9a47935dd097adb5a3 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Mon, 22 Sep 2025 15:41:34 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=B4=E6=8A=A4=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E4=BB=A3=E7=A0=81-3=E6=B5=8B=E8=AF=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../IRaCIS.Core.Application.xml | 37 ++++++++++++++++++-
.../Common/TrialImageDownloadService.cs | 13 +++++--
2 files changed, 45 insertions(+), 5 deletions(-)
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
index 26a2ff1e8..9caaa29f0 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
@@ -1097,7 +1097,7 @@
-
+
项目影像后台下载,不打包
@@ -1118,6 +1118,41 @@
+
+
+
+ 下载已经删除的影像
+
+
+
+
+
+
+ 读取该项目的数据,进行维护
+
+
+
+
+
+
+
+ 读取excel 恢复oss 数据,读取dicom 恢复序列和Instance
+
+
+
+
+
+
+
+ 单个文件接收 归档
+
+
+
+
+
+
+
+
医生文档关联关系维护
diff --git a/IRaCIS.Core.Application/Service/Common/TrialImageDownloadService.cs b/IRaCIS.Core.Application/Service/Common/TrialImageDownloadService.cs
index 77c8dce6d..e2be1e1f7 100644
--- a/IRaCIS.Core.Application/Service/Common/TrialImageDownloadService.cs
+++ b/IRaCIS.Core.Application/Service/Common/TrialImageDownloadService.cs
@@ -1669,9 +1669,9 @@ namespace IRaCIS.Core.Application.Service
// 再设置版本号
copyReq.SourceVersionId = item.VersionId;
- var copyResult = _ossClient.CopyObject(copyReq);
+ //var copyResult = _ossClient.CopyObject(copyReq);
- Console.WriteLine($"✅ 恢复成功: {item.SubjectCode} {item.Key} 版本{item.VersionId}, 新版本ID={copyResult.VersionId}");
+ Console.WriteLine($"✅ 恢复成功: {item.SubjectCode} {item.Key} 版本{item.VersionId}");
}
catch (Exception ex)
@@ -1696,8 +1696,9 @@ namespace IRaCIS.Core.Application.Service
}
-
- await _studyRepository.SaveChangesAsync();
+ Console.WriteLine($"{haveRestoreInstanceIdList.Count} ",haveRestoreInstanceIdList.ToJsonStr());
+ Console.WriteLine($"{haveRestoreSeriesIdList.Count} ",haveRestoreSeriesIdList.ToJsonStr());
+ //await _studyRepository.SaveChangesAsync();
return ResponseOutput.Ok();
}
@@ -1893,12 +1894,16 @@ namespace IRaCIS.Core.Application.Service
{
archieveInfo.IsSeriesAdd = true;
+ Console.WriteLine($"增加SeriesId:{seriesId}");
+
await _seriesRepository.AddAsync(findSerice);
}
if (isInstanceNeedAdd && !addInstanceIdList.Any(t => t == instanceId))
{
archieveInfo.IsInstanceAdd = true;
await _instanceRepository.AddAsync(findInstance);
+
+ Console.WriteLine($"增加Instance:{instanceId}");
}
return archieveInfo;