触发培训记录 forEach 添加 异常处理 使 互补影响
This commit is contained in:
parent
cfdff26719
commit
32248a6b6d
@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user