Compare commits

..

No commits in common. "6ccbfc466f71bc99e86da6702c4925e9b56e4fc9" and "da102dfed2290b876043605786c6865707c57bbb" have entirely different histories.

1 changed files with 4 additions and 20 deletions

View File

@ -145,22 +145,6 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
[TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "AfterStopCannNotOpt" })] [TypeFilter(typeof(TrialResourceFilter), Arguments = new object[] { "AfterStopCannNotOpt" })]
public async Task<IResponseOutput> AddOrUpdateArchiveStudy(NewArchiveStudyCommand incommand) public async Task<IResponseOutput> AddOrUpdateArchiveStudy(NewArchiveStudyCommand incommand)
{ {
var @uploadLock = _distributedLockProvider.CreateLock($"UploadDicom");
using (await @uploadLock.AcquireAsync())
{
if (_provider.Exists($"StudyUid_{incommand.TrialId}_{incommand.Study.StudyInstanceUid}"))
{
//---当前已有人正在上传和归档该检查!
return ResponseOutput.NotOk(StaticData.International("UploadDownLoad_ArchiveInProgress"));
}
else
{
_provider.Set($"StudyUid_{incommand.TrialId}_{incommand.Study.StudyInstanceUid}", _userInfo.Id, TimeSpan.FromSeconds(30));
}
}
var modalitys = string.Empty; var modalitys = string.Empty;
try try
@ -388,7 +372,7 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
VisitNum = t.SubjectVisit.VisitNum, VisitNum = t.SubjectVisit.VisitNum,
IsDicom = true, IsDicom = true,
IsFromPACS = t.IsFromPACS, IsFromPACS=t.IsFromPACS,
SubjectCode = t.Subject.Code, SubjectCode = t.Subject.Code,
@ -438,7 +422,7 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
VisitNum = t.SubjectVisit.VisitNum, VisitNum = t.SubjectVisit.VisitNum,
IsDicom = false, IsDicom = false,
IsFromPACS = false, IsFromPACS=false,
SubjectCode = t.Subject.Code, SubjectCode = t.Subject.Code,