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