deason 2 years ago
parent
commit
b1ff4eeb4a
2 changed files with 15 additions and 4 deletions
  1. 14 3
      db/init.sql
  2. 1 1
      src/main/resources/application.properties

+ 14 - 3
db/init.sql

@@ -1,3 +1,14 @@
+/*
+DROP TABLE IF EXISTS xxl_job_group;
+DROP TABLE IF EXISTS xxl_job_info;
+DROP TABLE IF EXISTS xxl_job_lock;
+DROP TABLE IF EXISTS xxl_job_log;
+DROP TABLE IF EXISTS xxl_job_log_report;
+DROP TABLE IF EXISTS xxl_job_logglue;
+DROP TABLE IF EXISTS xxl_job_registry;
+DROP TABLE IF EXISTS xxl_job_user;
+*/
+
 CREATE TABLE `xxl_job_info` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `job_group` int(11) NOT NULL COMMENT '执行器主键ID',
@@ -104,8 +115,8 @@ CREATE TABLE `xxl_job_lock` (
   PRIMARY KEY (`lock_name`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
-INSERT INTO `xxl_job_group`(`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (1, 'job-executor-sample', '示例执行器', 0, NULL, now());
-INSERT INTO `xxl_job_info`(`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`)
-VALUES (1, 1, '测试任务1', now(), now(), '管理员', '', 'CRON', '0 0 0 * * ? *', 'DO_NOTHING', 'FIRST', 'demoJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', now(), '');
 INSERT INTO `xxl_job_user`(`id`, `username`, `password`, `role`, `permission`) VALUES (1, 'admin', 'e10adc3949ba59abbe56e057f20f883e', 1, NULL);
 INSERT INTO `xxl_job_lock` ( `lock_name`) VALUES ( 'schedule_lock');
+INSERT INTO `xxl_job_group`(`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`) VALUES (1, 'oe-task-executor', '网考任务执行器', 0, NULL, now());
+INSERT INTO `xxl_job_info`(`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`)
+VALUES (1, 1, '同步考试记录任务', now(), now(), '管理员', '', 'NONE', '', 'DO_NOTHING', 'FIRST', 'syncExamRecordJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', now(), '');

+ 1 - 1
src/main/resources/application.properties

@@ -58,7 +58,7 @@ spring.mail.properties.mail.smtp.starttls.required=true
 spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
 
 ### job, access token
-xxl.job.accessToken=default_token
+xxl.job.accessToken=91b4ab2460dfee5bc88e377a735551c5
 
 ### job, i18n (default is zh_CN, and you can choose "zh_CN", "zh_TC" and "en")
 xxl.job.i18n=zh_CN