From 2d8cd95ab93ea44603a46a9bf777eb9a884b32b3 Mon Sep 17 00:00:00 2001 From: wyw <571921741@qq.com> Date: Sat, 9 May 2026 17:27:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E4=BC=B0=E7=BB=93=E6=9E=9C=E5=BF=85?= =?UTF-8?q?=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SETrainingEffectEvaluationSurveyController.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/SEController/SETrainingEffectEvaluationSurveyController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/SEController/SETrainingEffectEvaluationSurveyController.cs index 5552d95..f04bf51 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/SEController/SETrainingEffectEvaluationSurveyController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/SEController/SETrainingEffectEvaluationSurveyController.cs @@ -45,7 +45,16 @@ namespace APT.SC.WebApi.Controllers.Api.SE var Nav_ResultList = entity.Nav_ResultList; entity.Nav_ResultList = null; if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify")) - { + { + int index = 0; + foreach (var item in Nav_ResultList) + { + index++; + if (item.EVALUATION_RESULT == null) + { + throw new Exception("请选择行【" + index + "】的评估结果"); + } + } entity.STATUS = SETrainningEffectSurveyStatus.归档; if (Nav_ResultList == null) { @@ -53,6 +62,8 @@ namespace APT.SC.WebApi.Controllers.Api.SE } finishNotice = NotificationTaskService.GetTaskFinishModel(entity.TaskID, "SE021_SHOWPRINT"); } + + UnifiedCommit(() => { UpdateEntityNoCommit(entity);