触发培训记录 forEach 添加 异常处理 使 互补影响

This commit is contained in:
wyw 2026-05-12 11:13:07 +08:00
parent cfdff26719
commit 32248a6b6d

View File

@ -1939,7 +1939,12 @@ namespace APT.PP.WebApi.Controllers.Api.PP
var allSendUserNames = new List<string>(); var allSendUserNames = new List<string>();
var allSendTitles = new List<string>(); var allSendTitles = new List<string>();
var allSendDataIds = new List<Guid>(); var allSendDataIds = new List<Guid>();
SETrainNotifyStatus STATUS = SETrainNotifyStatus.稿;
foreach (var notify in notifys) foreach (var notify in notifys)
{
STATUS = notify.STATUS;
try
{ {
notify.STATUS = SETrainNotifyStatus.; notify.STATUS = SETrainNotifyStatus.;
var record = new T_SE_TRAIN_RECORD var record = new T_SE_TRAIN_RECORD
@ -1986,6 +1991,11 @@ namespace APT.PP.WebApi.Controllers.Api.PP
allSendDataIds.Add(record.ID); allSendDataIds.Add(record.ID);
allSendUserIds.Add((Guid)notify.RECORD_USER_ID); allSendUserIds.Add((Guid)notify.RECORD_USER_ID);
allSendUserNames.Add(notify.Nav_RecordUser.NAME); allSendUserNames.Add(notify.Nav_RecordUser.NAME);
}
catch
{
notify.STATUS = STATUS;
}
notify.Nav_LaunchUser = null; notify.Nav_LaunchUser = null;
notify.Nav_RecordUser = null; notify.Nav_RecordUser = null;
}; };