修改上传
parent
a845dc536e
commit
bb73416535
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue