培训记录没人签到 做提示去PC取消

This commit is contained in:
wyw 2026-05-22 11:11:44 +08:00
parent bf009c0236
commit bac598e5af

View File

@ -805,6 +805,15 @@ namespace APT.SC.WebApi.Controllers.Api.SE
List<T_SE_TRAIN_RECORD_PAPER> Nav_Papers = null; List<T_SE_TRAIN_RECORD_PAPER> Nav_Papers = null;
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify")) if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
{ {
var checkJoin = Nav_Users.Where(e => e.OK);
if (checkJoin == null)
{
checkJoin = Nav_Users.Where(e => e.STATUS == SETrainRecordUserStatusEnum.);
if (checkJoin == null)
{
throw new Exception("如果没人参加此次培训请在PC端操作取消");
}
}
sendNotice = new List<T_FM_NOTIFICATION_TASK>(); sendNotice = new List<T_FM_NOTIFICATION_TASK>();
if (entity.NOTIFY_ID == Guid.Empty || entity.TaskID == Guid.Empty) if (entity.NOTIFY_ID == Guid.Empty || entity.TaskID == Guid.Empty)
{ {