|
|
@ -540,6 +540,7 @@ create table sys_job (
|
|
|
|
method_name varchar(500) default '' comment '任务方法',
|
|
|
|
method_name varchar(500) default '' comment '任务方法',
|
|
|
|
method_params varchar(200) default '' comment '方法参数',
|
|
|
|
method_params varchar(200) default '' comment '方法参数',
|
|
|
|
cron_expression varchar(255) default '' comment 'cron执行表达式',
|
|
|
|
cron_expression varchar(255) default '' comment 'cron执行表达式',
|
|
|
|
|
|
|
|
misfire_policy varchar(20) default '0' comment '计划执行错误策略(0默认 1继续 2等待 3放弃)',
|
|
|
|
status char(1) default '0' comment '状态(0正常 1暂停)',
|
|
|
|
status char(1) default '0' comment '状态(0正常 1暂停)',
|
|
|
|
create_by varchar(64) default '' comment '创建者',
|
|
|
|
create_by varchar(64) default '' comment '创建者',
|
|
|
|
create_time datetime comment '创建时间',
|
|
|
|
create_time datetime comment '创建时间',
|
|
|
@ -549,8 +550,8 @@ create table sys_job (
|
|
|
|
primary key (job_id, job_name, job_group)
|
|
|
|
primary key (job_id, job_name, job_group)
|
|
|
|
) engine=innodb auto_increment=100 default charset=utf8 comment = '定时任务调度表';
|
|
|
|
) engine=innodb auto_increment=100 default charset=utf8 comment = '定时任务调度表';
|
|
|
|
|
|
|
|
|
|
|
|
insert into sys_job values(1, 'ryTask', '系统默认(无参)', 'ryNoParams', '', '0/10 * * * * ?', '1', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '');
|
|
|
|
insert into sys_job values(1, 'ryTask', '系统默认(无参)', 'ryNoParams', '', '0/10 * * * * ?', '0', '1', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '');
|
|
|
|
insert into sys_job values(2, 'ryTask', '系统默认(有参)', 'ryParams', 'ry', '0/20 * * * * ?', '1', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '');
|
|
|
|
insert into sys_job values(2, 'ryTask', '系统默认(有参)', 'ryParams', 'ry', '0/20 * * * * ?', '0', '1', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
|