老师、培训人 自动签到
This commit is contained in:
parent
b31b96c292
commit
472a9e3a71
@ -2058,7 +2058,7 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
List<Guid> allSendUserIds = null;
|
||||
List<string> allSendUserNames = null;
|
||||
List<T_FM_NOTIFICATION_TASK> sendNotice = null;
|
||||
|
||||
List<T_SE_TRAIN_RECORD_USER> listUserDoAuto = null;
|
||||
foreach (var item in iListR)
|
||||
{
|
||||
try
|
||||
@ -2107,6 +2107,18 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
e.TASK_DT = DateTime.Now;
|
||||
}
|
||||
});
|
||||
listUserDoAuto = new List<T_SE_TRAIN_RECORD_USER>();
|
||||
listUserDoAuto = iListTemp.Where(e => listDon.Contains(e.USER_ID)).ToList();
|
||||
foreach (var itemAuto in listUserDoAuto)
|
||||
{
|
||||
itemAuto.OK = true;
|
||||
itemAuto.STATUS = SETrainRecordUserStatusEnum.参与;
|
||||
itemAuto.DT_SIGN = DateTime.Now;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
listUserDoAuto = null;
|
||||
}
|
||||
item.DT_SSEND_SIGN = DateTime.Now;
|
||||
item.STATUS = SETrainRecordStatus.签到中;
|
||||
@ -2117,6 +2129,8 @@ namespace APT.PP.WebApi.Controllers.Api.PP
|
||||
UpdateEntityNoCommit(item);
|
||||
if (sendNotice != null && sendNotice.Any())
|
||||
BantchSaveEntityNoCommit(sendNotice);
|
||||
if (listUserDoAuto != null && listUserDoAuto.Any())
|
||||
BantchSaveEntityNoCommit(listUserDoAuto);
|
||||
});
|
||||
}
|
||||
catch { }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user