From 7fff48b07ab89b8273dca8f8e9e3dcbc93624728 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Wed, 7 May 2025 14:17:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=82=AE=E4=BB=B6=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/QC/QCOperationService.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs index 8ed741ac5..d354f10ea 100644 --- a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs +++ b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs @@ -589,7 +589,7 @@ namespace IRaCIS.Core.Application.Image.QA }); - if (sv.RequestBackState == RequestBackStateEnum.NotRequest || sv.RequestBackState == RequestBackStateEnum.PM_NotAgree) + if (sv.RequestBackState != RequestBackStateEnum.CRC_RequestBack) { sv.RequestBackState = RequestBackStateEnum.CRC_RequestBack; @@ -663,16 +663,14 @@ namespace IRaCIS.Core.Application.Image.QA return ResponseOutput.NotOk(_localizer["QCOperation_CannotRollback"]); } - //sv.CheckChallengeState = (int)CheckChanllengeTypeEnum.None; - //sv.CheckState = CheckStateEnum.None; - //sv.ChallengeState = (int)ChallengeStateEnum.No; + sv.RequestBackState = RequestBackStateEnum.PM_AgressBack; sv.AuditState = AuditStateEnum.None; sv.SubmitState = SubmitStateEnum.ToSubmit; sv.ReadingStatus = ReadingStatusEnum.ImageNotSubmit; //回退后,回退状态恢复 - sv.RequestBackState = RequestBackStateEnum.NotRequest; + sv.IsCheckBack = true; sv.CheckBackTime = DateTime.Now; sv.CheckState = CheckStateEnum.None; @@ -1013,7 +1011,7 @@ namespace IRaCIS.Core.Application.Image.QA { var studyId = updateModalityCommand.Id; - var study = (await _dicomStudyRepository.FirstOrDefaultAsync(t => t.Id == studyId,true)).IfNullThrowException(); + var study = (await _dicomStudyRepository.FirstOrDefaultAsync(t => t.Id == studyId, true)).IfNullThrowException(); study.BodyPartForEdit = updateModalityCommand.BodyPart; @@ -1085,7 +1083,7 @@ namespace IRaCIS.Core.Application.Image.QA //---CRC已经提交,不允许删除。 return ResponseOutput.NotOk(_localizer["QCOperation_CrcNoDelete"]); } - var waitDeleteStudyList = await _dicomStudyRepository.Where(x => ids.Contains(x.Id),false,true).ToListAsync(); + var waitDeleteStudyList = await _dicomStudyRepository.Where(x => ids.Contains(x.Id), false, true).ToListAsync(); foreach (var study in waitDeleteStudyList) {