25 lines
2.1 KiB
SQL
25 lines
2.1 KiB
SQL
-- 定时器动态执行任务表
|
|
-- ----------------------------
|
|
-- 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');
|