老师、培训人 自动签到

This commit is contained in:
wyw 2026-05-27 17:34:01 +08:00
parent b31b96c292
commit 472a9e3a71

View File

@ -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 { }