From 884bf7ff9717b64add6a13857533f468560a14d8 Mon Sep 17 00:00:00 2001 From: wjn Date: Wed, 10 Apr 2024 11:37:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/PreShiftMeetingRecordController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/APT.MicroApi/APT.FO.WebApi/Controllers/PreShiftMeetingRecordController.cs b/APT.MicroApi/APT.FO.WebApi/Controllers/PreShiftMeetingRecordController.cs index 97af734..2f793e4 100644 --- a/APT.MicroApi/APT.FO.WebApi/Controllers/PreShiftMeetingRecordController.cs +++ b/APT.MicroApi/APT.FO.WebApi/Controllers/PreShiftMeetingRecordController.cs @@ -116,7 +116,7 @@ namespace APT.FO.WebApi.Controllers.Api.FO { var meetingTime = DateTime.Now; //meetingTime = DateTime.Parse("2023-06-15 06:30:00"); - if (entity.START_TIME.AddMinutes(-15) >= meetingTime) + if (entity.START_TIME!= DateTime.MinValue && entity.START_TIME.AddMinutes(-15) >= meetingTime) { throw new Exception("班前会议需等到" + entity.START_TIME.AddMinutes(-15) + "后提交!"); }