From 3b9bad3ee6a12fec2e8926a53b2df1038a7072c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=BE=8E=E8=8D=A3?= <10755671+mei-rong-he@user.noreply.gitee.com> Date: Mon, 1 Jun 2026 16:50:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=A8=E8=AF=86=E8=AE=A1=E5=88=92=EF=BC=8C?= =?UTF-8?q?=E5=BE=85=E5=8A=9E=E6=9C=AA=E6=B6=88=E5=A4=B1=E7=9A=84=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=B6=88=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Api/IdentifyEvaluationPlanController.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/APT.MicroApi/APT.SK.WebApi/Controllers/Api/IdentifyEvaluationPlanController.cs b/APT.MicroApi/APT.SK.WebApi/Controllers/Api/IdentifyEvaluationPlanController.cs index 6491de9..2fc9f1d 100644 --- a/APT.MicroApi/APT.SK.WebApi/Controllers/Api/IdentifyEvaluationPlanController.cs +++ b/APT.MicroApi/APT.SK.WebApi/Controllers/Api/IdentifyEvaluationPlanController.cs @@ -73,6 +73,26 @@ namespace APT.SK.WebApi.Controllers.Api { throw new Exception("辨识人员不能为空"); } + T_FM_NOTIFICATION_TASK finishNotice = null; + if (entity.STATUS != PFStandardStatus.Draft && entity.STATUS != PFStandardStatus.Rejected) + { + var taskId = entity.TaskID; + if (taskId == Guid.Empty) + { + var task = GetEntity(i => i.SOURCE_DATA_ID == entity.ID && i.USER_ID == userId + && i.NOTICE_STATUS == FMNoticeStatusEnum.未处理.GetInt() && i.SOURCE_FORMCODE == "SK031"); + if (task != null) + { + taskId = task.ID; + } + } + if (taskId != Guid.Empty) + { + finishNotice = NotificationTaskService.FOGetTaskFinishModel(taskId, entity.ID, "SK031_SHOWPRINT"); + } + UpdateEntity(finishNotice); + throw new Exception("你已提交,请勿重复提交!"); + } deleteIds = this.GetEntities(t => t.IDENTIFY_EVALUATION_PLAN_ID == entity.ID, new BaseFilter(entity.ORG_ID)).Select(t => t.ID).ToList(); deleteUserIds = this.GetEntities(t => deleteIds.Contains(t.IDENTIFY_EVALUATION_PLAN_DETAIL_ID), new BaseFilter(entity.ORG_ID)).Select(t => t.ID).ToList(); if (details != null && details.Where(t => !t.IS_DELETED).Any())