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);