diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/SEController/6SETrainRecordController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/SEController/6SETrainRecordController.cs index b672a60..94051e3 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/SEController/6SETrainRecordController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/SEController/6SETrainRecordController.cs @@ -805,6 +805,15 @@ namespace APT.SC.WebApi.Controllers.Api.SE List Nav_Papers = null; 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(); if (entity.NOTIFY_ID == Guid.Empty || entity.TaskID == Guid.Empty) {