培训记录没人签到 做提示去PC取消
This commit is contained in:
parent
bf009c0236
commit
bac598e5af
@ -805,6 +805,15 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
List<T_SE_TRAIN_RECORD_PAPER> 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<T_FM_NOTIFICATION_TASK>();
|
||||
if (entity.NOTIFY_ID == Guid.Empty || entity.TaskID == Guid.Empty)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user