From 5835f1c3350e9917c9f328148549f7d587608f33 Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Fri, 27 May 2022 15:17:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20There=20is=20no=20way=20the,=20?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/sql/tb_task.sql | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 doc/sql/tb_task.sql diff --git a/doc/sql/tb_task.sql b/doc/sql/tb_task.sql new file mode 100644 index 00000000..6ceec9d7 --- /dev/null +++ b/doc/sql/tb_task.sql @@ -0,0 +1,24 @@ +-- 定时器动态执行任务表 +-- ---------------------------- +-- Table structure for tb_task +-- ---------------------------- +CREATE TABLE `tb_task` ( + `id` varchar(255) NOT NULL COMMENT '定时任务id', + `task_name` varchar(255) DEFAULT NULL COMMENT '定时任务名称', + `task_desc` varchar(255) DEFAULT NULL COMMENT '定时任务描述', + `task_exp` varchar(255) DEFAULT NULL COMMENT '定时任务Cron表达式', + `task_status` int(1) DEFAULT NULL COMMENT '定时任务状态,0停用 1启用', + `task_class` varchar(255) DEFAULT NULL COMMENT '定时任务的Runnable任务类完整路径', + `update_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='动态定时任务表'; + +-- ---------------------------- +-- Records of tb_task +-- ---------------------------- +INSERT INTO `tb_task` VALUES ('1', 'task1', '重置ES7天内标准数据', '0 1 0 * * ?', '0', 'com.adc.da.search.sync.restSearchSync', '2022-05-27 05:21:55', '2022-05-27 10:51:34'); +INSERT INTO `tb_task` VALUES ('2', 'task2', '企标标准文本状态被代替逻辑 自动变更作废状态', '0 1 0 * * ?', '1', 'com.adc.da.scheduledState.server.UpdateStateBussSyncFz', '2022-05-27 07:02:27', '2022-05-27 10:51:34'); +INSERT INTO `tb_task` VALUES ('3', 'task3', '企标标准文本状态 即将实施和现行有效状态自动变更逻辑', '0 1 0 * * ?', '0', 'com.adc.da.scheduledState.server.UpdateStateBussSyncSsAndYx', '2022-05-27 05:21:55', '2022-05-27 10:51:34'); +INSERT INTO `tb_task` VALUES ('4', 'task4', '国内标准文本状态被代替逻辑 标准自动变更废止', '0 1 0 * * ?', '0', 'com.adc.da.scheduledState.server.UpdateStateStandSyncFz', '2022-05-27 05:21:55', '2022-05-27 10:51:34'); +INSERT INTO `tb_task` VALUES ('5', 'task5', '国内标准文本状态 即将实施和现行有效状态自动变更逻辑', '0 1 0 * * ?', '0', 'com.adc.da.scheduledState.server.UpdateStateStandSyncSsAndYx', '2022-05-27 05:21:55', '2022-05-27 10:51:34');