From 9a979fb50c83d3d4717a98c5c4d76d09a01965e0 Mon Sep 17 00:00:00 2001 From: wyw <571921741@qq.com> Date: Wed, 27 May 2026 16:14:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=B9=E8=AE=AD=E9=80=9A=E7=9F=A5=E6=8A=A5?= =?UTF-8?q?=E5=90=8D=20=E8=AE=B0=E5=BD=95=E4=BA=BA=E3=80=81=E5=9F=B9?= =?UTF-8?q?=E8=AE=AD=E8=80=81=E5=B8=88=20=E9=BB=98=E8=AE=A4=E5=8F=82?= =?UTF-8?q?=E5=8A=A0=20=20=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SEController/5SETTrainNotifyController.cs | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/SEController/5SETTrainNotifyController.cs b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/SEController/5SETTrainNotifyController.cs index e4e62cc..fb01ce9 100644 --- a/APT.MicroApi/APT.SC.WebApi/Controllers/Api/SEController/5SETTrainNotifyController.cs +++ b/APT.MicroApi/APT.SC.WebApi/Controllers/Api/SEController/5SETTrainNotifyController.cs @@ -242,6 +242,16 @@ namespace APT.SC.WebApi.Controllers.Api.SE userFilter.Include = new string[] { "Nav_Person.Nav_Post", "Nav_Department" }; IEnumerable userNames = GetEntities(t => sendUserAll.Contains(t.ID), userFilter); + //List listAuto = new List(); + //if (entity.RECORD_USER_ID.HasValue && sendUsers.Contains(entity.RECORD_USER_ID.Value)) + //{ + // listAuto.Add(entity.RECORD_USER_ID.Value); + //} + //if (entity.USER_ID_TEACHER.HasValue && !listAuto.Contains(entity.USER_ID_TEACHER.Value)) + //{ + // listAuto.Add(entity.USER_ID_TEACHER.Value); + //} + T_FM_USER userCheck = null; foreach (var user in Nav_TrainUserList) { @@ -275,6 +285,11 @@ namespace APT.SC.WebApi.Controllers.Api.SE user.DEPARTMENT_NAME = userCheck.Nav_Department?.NAME; user.POST_NAME = userCheck.Nav_Person?.Nav_Post?.NAME; + + //if (listAuto != null && listAuto.Count > 0 && listAuto.Contains(user.USER_ID)) + //{ + // user.IS_LEAVE = SETrainYesNoEnum.参加; + //} } foreach (var user in sendUsers) { @@ -289,6 +304,19 @@ namespace APT.SC.WebApi.Controllers.Api.SE } sendNoticeTask = NotificationTaskService.InsertUserNoticeTaskModels("培训通知-" + entity.NAME + "-确认", entity.ID, entity.ORG_ID, sendUsers, allSendUserNames, DateTime.Now, DateTime.Now.AddDays(1), (int)FMNoticeTypeEnum.消息, "SE013_SHOWPRINT"); + + //if (listAuto != null && listAuto.Count > 0) + //{ + // foreach (var item in sendNoticeTask) + // { + // if (listAuto.Contains(item.USER_ID)) + // { + // item.NOTICE_STATUS = 1; + // item.TASK_DT = DateTime.Now; + // item.MODIFIER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; + // } + // } + //} } else {