From 76fe03a7418425293324e649e0bc9d82a4f8c9ec Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Wed, 11 May 2022 18:07:34 +0800 Subject: [PATCH] =?UTF-8?q?CRC=20=E8=AF=B7=E6=B1=82=E5=9B=9E=E9=80=80?= =?UTF-8?q?=E5=8F=91=E9=80=81=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/QC/QCOperationService.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs index 1ec525f30..463478307 100644 --- a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs +++ b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs @@ -375,6 +375,17 @@ namespace IRaCIS.Core.Application.Image.QA return ResponseOutput.NotOk("核查通过的数据不允许申请回退"); } + var QCChallengeId = await _qcChallengeRepository.Where(x => x.SubjectVisitId == subjectVisitId).Select(x => x.Id).FirstOrDefaultAsync(); + + await _qCChallengeDialogrepository.AddAsync(new QCChallengeDialog() + { + SubjectVisitId = subjectVisitId, + UserTypeEnum = (UserTypeEnum)_userInfo.UserTypeEnumInt, + QCChallengeId = QCChallengeId, + TalkContent = "CRC 请求回退" + }); + + await _subjectVisitRepository.UpdatePartialFromQueryAsync(subjectVisitId, u => new SubjectVisit() { RequestBackState = RequestBackStateEnum.CRC_RequestBack }, true); return ResponseOutput.Ok();