From b3bf5a0b4fac7ba6bc85b2bdce5e05d55cdeb69f Mon Sep 17 00:00:00 2001 From: nickchange <126672920+nickchange@users.noreply.github.com> Date: 星期二, 28 十一月 2023 21:46:50 +0800 Subject: [PATCH] 11.27,9 --- cloud-server-course/src/main/java/com/dsh/course/util/TaskUtil.java | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cloud-server-course/src/main/java/com/dsh/course/util/TaskUtil.java b/cloud-server-course/src/main/java/com/dsh/course/util/TaskUtil.java index 34a5aed..1065e31 100644 --- a/cloud-server-course/src/main/java/com/dsh/course/util/TaskUtil.java +++ b/cloud-server-course/src/main/java/com/dsh/course/util/TaskUtil.java @@ -91,12 +91,11 @@ /** - * 零时任务 + * 每周一执行的定时任务 */ - @Scheduled(cron = "0 0 23 * * *") - public void zeroTask() { + @Scheduled(cron = "0 0 0 * * 2") + public void weekTask() { //定时添加排课数据 - coursePackageSchedulingService.taskAddData(); - coursePackageSchedulingService.cancel(); + coursePackageSchedulingService.taskCoursePackageScheduling(); } } -- Gitblit v1.7.1