修改上传

Uat_Study
hang 2022-08-04 15:52:54 +08:00
parent a845dc536e
commit bb73416535
1 changed files with 5 additions and 2 deletions

View File

@ -301,9 +301,8 @@ namespace IRaCIS.Core.API.Controllers
SubjectVisitId = savedInfo.SubjectVisitId, SubjectVisitId = savedInfo.SubjectVisitId,
StudyId = archivedStudyIds[0], StudyId = archivedStudyIds[0],
StudyCode = studycode,
UploadStartTime = startTime, UploadStartTime = startTime,
UploadFinishedTime = DateTime.Now,
FileSize = (decimal)HttpContext.Request.ContentLength, FileSize = (decimal)HttpContext.Request.ContentLength,
FileCount = archiveResult.ReceivedFileCount, FileCount = archiveResult.ReceivedFileCount,
IsDicom = true, IsDicom = true,
@ -313,6 +312,7 @@ namespace IRaCIS.Core.API.Controllers
try try
{ {
if (archivedStudyIds.Count > 0) // 上传成功,处理逻辑 if (archivedStudyIds.Count > 0) // 上传成功,处理逻辑
{ {
@ -358,6 +358,9 @@ namespace IRaCIS.Core.API.Controllers
} }
finally finally
{ {
studyMonitor.StudyCode = studycode;
studyMonitor.UploadFinishedTime = DateTime.Now;
await _repository.AddAsync(studyMonitor, true); await _repository.AddAsync(studyMonitor, true);
} }