From d675cc50b359055b501606eec6728d85a7797025 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 11 Mar 2024 16:29:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Allocation/TaskMedicalReviewService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs b/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs index 92ad7a234..8ce0fb61a 100644 --- a/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs +++ b/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs @@ -167,7 +167,11 @@ namespace IRaCIS.Core.Application.Service var result = new TaskMedicalReviewView() { }; - if (index == -1 || data.CurrentPageData.Count == 1) + if (index+1 == data.CurrentPageData.Count()) // 最后一个 + { + throw new BusinessValidationFailedException(_localizer["MedicalReview_Finish"]); + } + else if (index == -1 || data.CurrentPageData.Count == 1) // 第一个或者只有一个 { if (data.CurrentPageData[0].Id == inDto.MedicalReviewId) {