Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing

This commit is contained in:
he
2026-04-24 13:49:24 +08:00
@@ -7,6 +7,7 @@ using IRaCIS.Core.Infrastructure;
using Medallion.Threading; using Medallion.Threading;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using NetTopologySuite.Algorithm;
using SkiaSharp; using SkiaSharp;
using System.Drawing; using System.Drawing;
using ZiggyCreatures.Caching.Fusion; using ZiggyCreatures.Caching.Fusion;
@@ -177,7 +178,7 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
{ {
await _oSSService.DeleteFromPrefix(item.Path, true); await _oSSService.DeleteFromPrefix(item.Path, true);
var length = Guid.Empty.ToString().Length + "_MaskDicom".Length; var length = Guid.Empty.ToString().Length + "_MaskDicom".Length + 1;
var newPath = item.Path[..^length]; var newPath = item.Path[..^length];
okList.Add(new InstanceIdPath() { Id = item.Id, Path = newPath }); okList.Add(new InstanceIdPath() { Id = item.Id, Path = newPath });
@@ -185,6 +186,17 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
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 });
} }
if (item.Path.EndsWith("."))
{
await _oSSService.DeleteFromPrefix(item.Path, true);
var newPath = item.Path[..^1];
okList.Add(new InstanceIdPath() { Id = item.Id, Path = newPath });
await _dicomInstanceRepository.BatchUpdateNoTrackingAsync(t => t.Id == item.Id, u => new DicomInstance() { Path = newPath, IsMasked = false });
}
} }