From c5ddda6b1360fd0f939c646b426fec3ffd4301b0 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Tue, 7 Jan 2025 17:49:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../udidl/admin/thread/ThirdAliDrugClearResCodeCountTask.java | 2 +- src/main/resources/schemas/schema_v2.1.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/glxp/udidl/admin/thread/ThirdAliDrugClearResCodeCountTask.java b/src/main/java/com/glxp/udidl/admin/thread/ThirdAliDrugClearResCodeCountTask.java index 6473482..79cabd8 100644 --- a/src/main/java/com/glxp/udidl/admin/thread/ThirdAliDrugClearResCodeCountTask.java +++ b/src/main/java/com/glxp/udidl/admin/thread/ThirdAliDrugClearResCodeCountTask.java @@ -32,7 +32,7 @@ public class ThirdAliDrugClearResCodeCountTask implements SchedulingConfigurer { public void configureTasks(ScheduledTaskRegistrar scheduledTaskRegistrar) { scheduledTaskRegistrar.addTriggerTask(() -> process(), triggerContext -> { - String cron = "0 0 * * * ?";//每天0点 + String cron = "0 0 0 * * ?";//每天0点 if (cron.isEmpty()) { logger.error("cron is null"); } diff --git a/src/main/resources/schemas/schema_v2.1.sql b/src/main/resources/schemas/schema_v2.1.sql index 43f08e8..fafb925 100644 --- a/src/main/resources/schemas/schema_v2.1.sql +++ b/src/main/resources/schemas/schema_v2.1.sql @@ -331,7 +331,7 @@ CALL Pro_Temp_ColumnWork('third_ali_drug', 'packUnitName', ' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''包装单位''', 1); -INSERT IGNORE INTO `scheduled` (`id`, `cronName`, `cron`, `customerId`) VALUES (11, 'thirdAliDrugTask', '0 0 */2 * * ?', NULL); +INSERT IGNORE INTO `scheduled` (`id`, `cronName`, `cron`, `customerId`) VALUES (11, 'thirdAliDrugTask', '0 0 0 * * 6', NULL); CREATE TABLE IF NOT EXISTS `auth_ali_user` (