From 5752a3bb681b227465ec158e0e11ac5f07b855d2 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 9 Mar 2023 14:57:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=80=80=E5=9B=9E=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Allocation/VisitTaskService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs b/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs index 140482a19..47097dceb 100644 --- a/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs +++ b/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs @@ -1967,6 +1967,11 @@ namespace IRaCIS.Core.Application.Service.Allocation } + if( await _subjectVisitRepository.AnyAsync(t=>t.Id==task.SourceSubjectVisitId && t.CheckState!= CheckStateEnum.CVPassed)) + { + return ResponseOutput.NotOk("当前访视已回退到影像上传,不允许继续回退!"); + } + if (task.IsAnalysisCreate) {