返回恢复成功的列表
continuous-integration/drone/push Build is failing Details

Test_IRC_Net10
hang 2026-04-24 10:58:55 +08:00
parent f2adb16189
commit 10f8039b1b
1 changed files with 5 additions and 1 deletions

View File

@ -169,6 +169,8 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
idPathList = await _dicomInstanceRepository.Where(t => t.SeriesId == inCommand.SeriesId).Select(t => new InstanceIdPath { Id = t.Id, Path = t.Path }).ToListAsync(); idPathList = await _dicomInstanceRepository.Where(t => t.SeriesId == inCommand.SeriesId).Select(t => new InstanceIdPath { Id = t.Id, Path = t.Path }).ToListAsync();
} }
var okList = new List<InstanceIdPath>();
foreach (var item in idPathList) foreach (var item in idPathList)
{ {
if (item.Path.EndsWith("_MaskDicom")) if (item.Path.EndsWith("_MaskDicom"))
@ -178,6 +180,8 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
var length = Guid.Empty.ToString().Length + "_MaskDicom".Length; var length = Guid.Empty.ToString().Length + "_MaskDicom".Length;
var newPath = item.Path[..^length]; var newPath = item.Path[..^length];
okList.Add(new InstanceIdPath() { Id = item.Id, Path = newPath });
await _dicomInstanceRepository.BatchUpdateNoTrackingAsync(t => t.Id == item.Id, u => new DicomInstance() { Path = newPath, IsMasked = false }); await _dicomInstanceRepository.BatchUpdateNoTrackingAsync(t => t.Id == item.Id, u => new DicomInstance() { Path = newPath, IsMasked = false });
} }
@ -186,7 +190,7 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
await _dicomInstanceRepository.SaveChangesAsync(); await _dicomInstanceRepository.SaveChangesAsync();
return ResponseOutput.Ok(); return ResponseOutput.Ok(new { OkList = okList });
} }