修改推送检查数量

Test_HIR_Net8
hang 2025-09-16 17:14:08 +08:00
parent eb7db8478f
commit 4ec15c2333
1 changed files with 8 additions and 1 deletions

View File

@ -47,6 +47,8 @@ namespace IRaCIS.Core.SCP.Service
private List<Guid> _SCPStudyIdList { get; set; } = new List<Guid>();
private List<string> _StudyInstanceUIdList { get; set; } = new List<string>();
private SCPImageUpload _upload { get; set; }
public HospitalGroup CurrentHospitalGroup { get; set; }
@ -167,7 +169,7 @@ namespace IRaCIS.Core.SCP.Service
var _SCPImageUploadRepository = _serviceProvider.GetService<IRepository<SCPImageUpload>>();
_upload.EndTime = DateTime.Now;
_upload.StudyCount = _SCPStudyIdList.Count;
_upload.StudyCount = _StudyInstanceUIdList.Count;
//可能是测试echo 导致记录了
await _SCPImageUploadRepository.AddAsync(_upload, _upload.FileCount > 0 ? true : false);
@ -283,6 +285,11 @@ namespace IRaCIS.Core.SCP.Service
return new DicomCStoreResponse(request, DicomStatus.Success);
}
if (!_StudyInstanceUIdList.Contains(studyInstanceUid))
{
_StudyInstanceUIdList.Add(studyInstanceUid);
}
Guid seriesId = IdentifierHelper.CreateGuid(studyInstanceUid, seriesInstanceUid);
Guid instanceId = IdentifierHelper.CreateGuid(studyInstanceUid, seriesInstanceUid, sopInstanceUid);