From 1aad2c6a3f374e521fc8619ef643a0d954f16df8 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 17 Jul 2025 15:26:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E6=A0=B8=E7=A8=BD=E6=9F=A5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9008?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/QC/QCOperationService.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs index 67bba30a1..834c3a4b0 100644 --- a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs +++ b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs @@ -732,7 +732,7 @@ namespace IRaCIS.Core.Application.Image.QA if (currentQCType == CurrentQC.SecondReview) { //二次复核自动领取,如果有人先领取了,那么后续不能操作 - await _subjectVisitRepository.UpdatePartialFromQueryAsync(t => t.Id == subjectVisitId && t.CurrentActionUserId == null, u => new SubjectVisit() { CurrentActionUserId = _userInfo.UserRoleId }, true); + await _subjectVisitRepository.UpdatePartialFromQueryAsync(t => t.Id == subjectVisitId && t.CurrentActionUserId == null, u => new SubjectVisit() { CurrentActionUserId = _userInfo.UserRoleId, IsTake = true }, true); } //验证是否能操作 await VerifyIsCanQCAsync(null, subjectVisitId); @@ -1189,13 +1189,15 @@ namespace IRaCIS.Core.Application.Image.QA { var dbSubjectVisit = (await _subjectVisitRepository.FirstOrDefaultAsync(t => t.Id == subjectVisitId)).IfNullThrowException(); + //await VerifyIsCanQCAsync(dbSubjectVisit); + if (dbSubjectVisit.CurrentActionUserId == null && dbSubjectVisit.IsTake == false) { //---当前访视的影像质控任务已被原领取人释放。您可以通过“领取”获得 return ResponseOutput.NotOk(_localizer["QCOperation_QCImageTaskAlreadyReleased"], ApiResponseCodeEnum.NeedTips); } - await VerifyIsCanQCAsync(dbSubjectVisit); + dbSubjectVisit.IsTake = true; @@ -2109,6 +2111,9 @@ namespace IRaCIS.Core.Application.Image.QA if (isSecondPass) { sv.SecondReviewState = SecondReviewState.AuditPassed; + sv.IsTake = false; + sv.CurrentActionUserId = null; + sv.CurrentActionUserExpireTime = null; } else