修改上传

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