检查任务制定 跑批 修改 new list

This commit is contained in:
wyw 2024-10-22 09:26:03 +08:00
parent a2399db9bd
commit 8c28d30760

View File

@ -362,7 +362,7 @@ namespace APT.PP.WebApi.Controllers.Api.PP
listFMUserNotice = new List<T_FM_USER>();
List<DateTime> listEndTime = new List<DateTime>();
listArea = new List<T_BS_SAFE_CHECK_RISK_AREA>();
if (listPlanSetRund[i].Nav_ListDepOut != null && listPlanSetRund[i].Nav_ListDepOut.Any())
listDepIDOut = listPlanSetRund[i].Nav_ListDepOut.Select(e => e.DEPARTMENT_ID);
else
@ -942,7 +942,13 @@ namespace APT.PP.WebApi.Controllers.Api.PP
{
task.UPDATE_SUCCES_TIME = DateTime.Now;
}
if (listArea != null && listArea.Any())
{
foreach (var item in listArea)
{
item.Nav_RiskArea = null;
}
}
//给 T_FM_NOTIFICATION_TASK 添加实体
NotificationTaskService.SendNotificationTask(noticeTitles, noticeDataIds, filter.GetOrgId(), noticeUserIds, noticeUserNames, DateTime.Now, listEndTime, 0, "BS032", () =>
{