This commit is contained in:
wyw 2025-11-27 11:49:16 +08:00
parent ee2b7725fc
commit 77d6d8f317

View File

@ -2126,7 +2126,7 @@ namespace APT.PP.WebApi.Controllers.Api.PP
} }
listDetailDepPer = listDetailDep.Where(e => e.PLAN_DETAIL_ID == item.ID); 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); allSendUserNames.Add(modelDetailPer.NAME);
alltoDayNotifyTitles.Add("根据需要将《" + modelNotify.NAME + "》培训通知盖章上传!"); alltoDayNotifyTitles.Add("根据需要将《" + modelNotify.NAME + "》培训通知盖章上传!");
trainNotifys.Add(modelNotify);
Index++; Index++;
} }
else else