From 7b16336d4619024eb1c4fa4d0a81bd0e44465eb9 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期五, 11 四月 2025 11:17:24 +0800 Subject: [PATCH] bug fix: sql order by book_timeslot 置于 create_time 前 --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/DynamicSchedulingConfig.java | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/DynamicSchedulingConfig.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/DynamicSchedulingConfig.java index cb26597..8581e52 100644 --- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/DynamicSchedulingConfig.java +++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/config/DynamicSchedulingConfig.java @@ -10,6 +10,8 @@ import javax.annotation.Resource; import java.util.concurrent.Executors; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledThreadPoolExecutor; @Configuration @EnableScheduling @@ -21,6 +23,8 @@ public void configureTasks(ScheduledTaskRegistrar taskRegistrar) { DynamicSchedulingConfig.static_scheduledTaskRegistrar = taskRegistrar; - taskRegistrar.setScheduler(Executors.newScheduledThreadPool(1)); + ScheduledThreadPoolExecutor scheduledThreadPoolExecutor = new ScheduledThreadPoolExecutor(1); + scheduledThreadPoolExecutor.setRemoveOnCancelPolicy(true); + taskRegistrar.setScheduler(scheduledThreadPoolExecutor); } } -- Gitblit v1.9.3