@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user