From 77d6d8f317882c0ba2db8004ed5416e9f7a39912 Mon Sep 17 00:00:00 2001 From: wyw <571921741@qq.com> Date: Thu, 27 Nov 2025 11:49:16 +0800 Subject: [PATCH] 12345 --- APT.MicroApi/APT.PP.WebApi/Controllers/Api/SEController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/APT.MicroApi/APT.PP.WebApi/Controllers/Api/SEController.cs b/APT.MicroApi/APT.PP.WebApi/Controllers/Api/SEController.cs index 107f9e4..e588a01 100644 --- a/APT.MicroApi/APT.PP.WebApi/Controllers/Api/SEController.cs +++ b/APT.MicroApi/APT.PP.WebApi/Controllers/Api/SEController.cs @@ -2126,7 +2126,7 @@ namespace APT.PP.WebApi.Controllers.Api.PP } listDetailDepPer = listDetailDep.Where(e => e.PLAN_DETAIL_ID == item.ID); - if (listDetailDepPer == null) + if (listDetailDepPer == null || listDetailDepPer.Count() < 1) { //没有选择被培训组织 给培训组织 对应的安全员 或负责人 添加一个培训通知 //不用默认添加培训人员 @@ -2137,6 +2137,7 @@ namespace APT.PP.WebApi.Controllers.Api.PP allSendUserNames.Add(modelDetailPer.NAME); alltoDayNotifyTitles.Add("根据需要将《" + modelNotify.NAME + "》培训通知盖章上传!"); + trainNotifys.Add(modelNotify); Index++; } else