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;