From e53363d8286813c25504c4b36f2e2867e2bb6cd4 Mon Sep 17 00:00:00 2001 From: junjie Date: Fri, 11 Jun 2021 14:23:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=90=8C=E6=AD=A5=E4=BB=BB=E5=8A=A1):?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E5=BC=80=E5=A7=8B=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/dataease/job/sechedule/ScheduleManager.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/src/main/java/io/dataease/job/sechedule/ScheduleManager.java b/backend/src/main/java/io/dataease/job/sechedule/ScheduleManager.java index fa7cdcf96f..e16cfc3aa8 100644 --- a/backend/src/main/java/io/dataease/job/sechedule/ScheduleManager.java +++ b/backend/src/main/java/io/dataease/job/sechedule/ScheduleManager.java @@ -74,9 +74,9 @@ public class ScheduleManager { triggerBuilder.withIdentity(triggerKey); Date nTimeByCron = getNTimeByCron(cron, startTime); - if (startTime.before(new Date())) { - triggerBuilder.startAt(nTimeByCron); - } +// if (startTime.before(new Date())) { + triggerBuilder.startAt(nTimeByCron); +// } if (endTime != null) { if (endTime.before(nTimeByCron)) { @@ -157,9 +157,9 @@ public class ScheduleManager { triggerBuilder.withIdentity(triggerKey);// 触发器名,触发器组 Date nTimeByCron = getNTimeByCron(cron, startTime); - if (startTime.before(new Date())) { - triggerBuilder.startAt(nTimeByCron); - } +// if (startTime.before(new Date())) { + triggerBuilder.startAt(nTimeByCron); +// } if (endTime != null) { if (endTime.before(nTimeByCron)) {