质控返回是否匿名标记字段,撤销
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-04-23 16:57:50 +08:00
parent 3c62d16ff8
commit fa464e6ed8
4 changed files with 47 additions and 8 deletions
@@ -106,16 +106,16 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
var prefix = path.Substring(1, path.LastIndexOf('/') - 1);
var maskPath = $"{Path.GetFileName(path)}.MaskDicom";
var maskPath = path.Contains(".MaskDicom") ? $"{Path.GetFileName(path)}" : $"{Path.GetFileName(path)}.MaskDicom";
//清理缓存的里面的遮盖图,多次遮盖同一张图时,清除缓存很重要
await _oSSService.DeleteFromPrefix(maskPath, true);
var tt = await _oSSService.UploadToOSSAsync(outPutStream, prefix, maskPath,false);
await _oSSService.UploadToOSSAsync(outPutStream, prefix, maskPath, false);
var newPath = path + ".MaskDicom";
var newPath = path.Contains(".MaskDicom") ? path : path + ".MaskDicom";
await _dicomInstanceRepository.BatchUpdateNoTrackingAsync(t => t.Id == item.Id, u => new DicomInstance() { Path= newPath, IsMasked = true });
await _dicomInstanceRepository.BatchUpdateNoTrackingAsync(t => t.Id == item.Id, u => new DicomInstance() { Path = newPath, IsMasked = true });
}
catch (Exception ex)
{
@@ -188,7 +188,7 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
public async Task<PatientInfoDto> GetPatientInfo(GetPatientInfoInDto inDto)
{
var study = await _dicomStudyRepository.Where(s => s.Id == inDto.StudyId).ProjectTo<PatientInfoDto>(_mapper.ConfigurationProvider).FirstNotNullAsync();
return study;
}