From 314b9fae66ca2e55d171cd7dd3235c343e67d826 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 4 Jan 2022 17:50:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=91=A8=E8=A1=A8=E8=BE=BE=E5=BC=8F?= =?UTF-8?q?=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/dataease/job/sechedule/strategy/TaskHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/dataease/job/sechedule/strategy/TaskHandler.java b/backend/src/main/java/io/dataease/job/sechedule/strategy/TaskHandler.java index 4ec969cb64..c685930a17 100644 --- a/backend/src/main/java/io/dataease/job/sechedule/strategy/TaskHandler.java +++ b/backend/src/main/java/io/dataease/job/sechedule/strategy/TaskHandler.java @@ -79,7 +79,8 @@ public abstract class TaskHandler implements InitializingBean { private String getDayOfWeek(Calendar instance) { int index = instance.get(Calendar.DAY_OF_WEEK); - return week[index]; + index = (index + 1) % 7; + return String.valueOf(index); }