From 3ffbfb4a933325455c005f51e9589d09d574b3f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=BE=8E=E8=8D=A3?= <10755671+mei-rong-he@user.noreply.gitee.com> Date: Sat, 9 May 2026 16:42:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E5=89=8D=E4=BC=9A=E7=8F=AD=E6=AC=A1?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/PreShiftMeetingRecordController.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/APT.MicroApi/APT.FO.WebApi/Controllers/PreShiftMeetingRecordController.cs b/APT.MicroApi/APT.FO.WebApi/Controllers/PreShiftMeetingRecordController.cs index 6114e8a..f2f7128 100644 --- a/APT.MicroApi/APT.FO.WebApi/Controllers/PreShiftMeetingRecordController.cs +++ b/APT.MicroApi/APT.FO.WebApi/Controllers/PreShiftMeetingRecordController.cs @@ -141,8 +141,13 @@ namespace APT.FO.WebApi.Controllers.Api.FO if (users == null || users.Count(t => t.IS_DELETED == false) == 0) { throw new Exception("通知人员不能为空"); + } + if (entity.CLASS_ID == null) + { + throw new Exception("班次不能为空"); + //entity.START_TIME = DateTime.Now; + //entity.END_TIME = entity.START_TIME.AddHours(24); } - if (entity.DEPARTMENT_ID == null) { var user = GetEntity(t => t.ID == userID); @@ -320,11 +325,6 @@ namespace APT.FO.WebApi.Controllers.Api.FO finishNotice = NotificationTaskService.FOGetTaskFinishModel(taskId, entity.ID, eye); } } - if (entity.CLASS_ID == null) - { - entity.START_TIME = DateTime.Now; - entity.END_TIME = entity.START_TIME.AddHours(24); - } entity.Nav_User = null; users.ForEach(t => t.Nav_User = null); users.ForEach(t => t.ORG_ID = entity.ORG_ID);