From c7947c896dde9d1e9b5ae2474345ac6d790beb87 Mon Sep 17 00:00:00 2001 From: Chopper Date: Tue, 1 Jun 2021 15:29:56 +0800 Subject: [PATCH] =?UTF-8?q?sql=E5=AD=97=E6=AE=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/logstash-springboot.conf | 2 +- init/mysql/{lilishop-dev.sql => lilishop.sql} | 236 +++++++++++++++++- 2 files changed, 224 insertions(+), 14 deletions(-) rename init/mysql/{lilishop-dev.sql => lilishop.sql} (99%) diff --git a/config/logstash-springboot.conf b/config/logstash-springboot.conf index 07f647b..4104d63 100644 --- a/config/logstash-springboot.conf +++ b/config/logstash-springboot.conf @@ -9,6 +9,6 @@ input { output { elasticsearch { hosts => "elasticsearch:9200" - index => "springboot-logstash-%{+YYYY.MM.dd}" + index => "application-%{+YYYY.MM.dd}" } } \ No newline at end of file diff --git a/init/mysql/lilishop-dev.sql b/init/mysql/lilishop.sql similarity index 99% rename from init/mysql/lilishop-dev.sql rename to init/mysql/lilishop.sql index 7ec4ca8..8a53308 100644 --- a/init/mysql/lilishop-dev.sql +++ b/init/mysql/lilishop.sql @@ -11,7 +11,7 @@ Target Server Version : 80023 File Encoding : 65001 - Date: 13/05/2021 16:13:17 + Date: 01/06/2021 15:28:59 */ SET NAMES utf8mb4; @@ -2326,6 +2326,7 @@ CREATE TABLE `li_distribution` ( `rebate_total` double(20,2) DEFAULT NULL COMMENT '分销总额', `id_number` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '身份证号', `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '姓名', + `distribution_order_count` int DEFAULT NULL COMMENT '分销订单数量', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -2333,10 +2334,10 @@ CREATE TABLE `li_distribution` ( -- Records of li_distribution -- ---------------------------- BEGIN; -INSERT INTO `li_distribution` VALUES (1381773066530455552, '15810610731', '2021-04-12 19:55:45.820000', b'0', 'admin', '2021-04-12 19:57:16.255000', NULL, 0.00, 'PASS', '1376364798236688384', '15810610731', 0.00, '179292199005020635', '帅帅'); -INSERT INTO `li_distribution` VALUES (1381790692237377536, 'm17633066053', '2021-04-12 21:05:48.115000', b'0', 'admin', '2021-04-12 21:06:54.337000', NULL, 0.00, 'PASS', '1377906539959943168', 'm17633066053', 0.00, '130727199911114151', '李三'); -INSERT INTO `li_distribution` VALUES (1382586852829036544, '13011111111', '2021-04-15 01:49:27.593000', b'0', 'admin', '2021-04-15 01:54:24.488000', NULL, 0.00, 'PASS', '1376417684140326912', '13011111111', 0.00, '131082199208102512', '张三'); -INSERT INTO `li_distribution` VALUES (1384882541323878400, 'm13811989365', '2021-04-21 22:51:42.382000', b'0', 'admin', '2021-04-30 09:39:44.191000', NULL, 0.00, 'PASS', '1384876449193787392', 'm13811989365', 0.00, '110101198801273169', '罗博'); +INSERT INTO `li_distribution` VALUES (1381773066530455552, '15810610731', '2021-04-12 19:55:45.820000', b'0', 'admin', '2021-04-12 19:57:16.255000', NULL, 0.00, 'PASS', '1376364798236688384', '15810610731', 0.00, '179292199005020635', '帅帅', NULL); +INSERT INTO `li_distribution` VALUES (1381790692237377536, 'm17633066053', '2021-04-12 21:05:48.115000', b'0', 'admin', '2021-04-12 21:06:54.337000', NULL, 0.00, 'PASS', '1377906539959943168', 'm17633066053', 0.00, '130727199911114151', '李三', NULL); +INSERT INTO `li_distribution` VALUES (1382586852829036544, '13011111111', '2021-04-15 01:49:27.593000', b'0', 'admin', '2021-04-15 01:54:24.488000', NULL, 0.00, 'PASS', '1376417684140326912', '13011111111', 0.00, '131082199208102512', '张三', NULL); +INSERT INTO `li_distribution` VALUES (1384882541323878400, 'm13811989365', '2021-04-21 22:51:42.382000', b'0', 'admin', '2021-04-30 09:39:44.191000', NULL, 0.00, 'PASS', '1384876449193787392', 'm13811989365', 0.00, '110101198801273169', '罗博', NULL); COMMIT; -- ---------------------------- @@ -5317,6 +5318,7 @@ CREATE TABLE `li_member_evaluation` ( `description_score` int DEFAULT NULL COMMENT '描述评分', `service_score` int DEFAULT NULL COMMENT '服务评分', `store_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '店铺名称', + `images` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -5324,14 +5326,14 @@ CREATE TABLE `li_member_evaluation` ( -- Records of li_member_evaluation -- ---------------------------- BEGIN; -INSERT INTO `li_member_evaluation` VALUES (1379988946716459008, '15810610731', '2021-04-07 21:46:18.509000', b'0', NULL, NULL, '不错,还会再买', '1376830414609448960', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/703f7dfc8c3e4add8c15526d02e1672f.jpg', '新款B3头戴式蓝牙耳机', 'GOOD', b'1', b'0', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/de43fdcc59d9480582628459626f5388.jpeg,https://lilishop-oss.oss-cn-beijing.aliyuncs.com/9c290e42ab444ede8056eb14a4fe32e6.jpeg', '1376364798236688384', '15810610731', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/00218693d2e64c9893b269d1aec77f94.jpeg', 'O202103311377051155493814273', NULL, NULL, '1376369067769724928', '1376830415133736960', 'OPEN', b'0', 4, 4, 4, 'Lilishop自营店'); -INSERT INTO `li_member_evaluation` VALUES (1380078505936551936, '13011111111', '2021-04-08 03:42:11.091000', b'0', NULL, NULL, '超好吃的 屯着', '1376443041593688064', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/54dcb9cd0fea4f1f8243e12d49c28af9.png', '百草味 蜜饯 原味芒果干', 'GOOD', b'1', b'0', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/ba95eebcb9bb4fc28dd0bac5e23300dc.jpeg', '1376417684140326912', '13011111111', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/c60e3a7ac3524a96afef80827e13fc30.png', 'O202104081380066701806141441', NULL, NULL, '1376433565247471616', '1376443042042478592', 'OPEN', b'0', 4, 4, 4, '生活百货'); -INSERT INTO `li_member_evaluation` VALUES (1387220364496470016, '15810610731', '2021-04-28 09:41:22.861000', b'0', NULL, NULL, '我觉得不错哦', '1377085464581767168', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/7184562bd2d94e0b8723fee36f56dd78.jpg', '乐事 无限', 'GOOD', b'1', b'0', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/1cc8ae94b340451a90fbfaf1552ca033.jpg', '1376364798236688384', '星星眨眨眼,月儿画问号', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/00218693d2e64c9893b269d1aec77f94.jpeg', 'O202104261386513842112036865', NULL, NULL, '1376433565247471616', '1381793060458856448', 'OPEN', b'0', 5, 5, 5, '生活百货'); -INSERT INTO `li_member_evaluation` VALUES (1387341837320060928, '15810610731', '2021-04-28 17:44:04.239000', b'0', NULL, NULL, '好吃', '1376443041593688064', NULL, '百草味 蜜饯 原味芒果干 一袋', 'GOOD', b'0', b'0', NULL, '1376364798236688384', '星星眨眨眼,月儿画问号', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/00218693d2e64c9893b269d1aec77f94.jpeg', 'O202104281387341022853332993', NULL, NULL, '1376433565247471616', '1381791842915319808', 'OPEN', b'0', 3, 2, 4, '生活百货'); -INSERT INTO `li_member_evaluation` VALUES (1387341873915363328, '15810610731', '2021-04-28 17:44:12.964000', b'0', NULL, NULL, '还会继续购买', '1376443041593688064', NULL, '百草味 蜜饯 原味芒果干 三袋', 'GOOD', b'0', b'0', NULL, '1376364798236688384', '星星眨眨眼,月儿画问号', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/00218693d2e64c9893b269d1aec77f94.jpeg', 'O202104281387340729172361217', NULL, NULL, '1376433565247471616', '1381791842919514112', 'OPEN', b'0', 1, 5, 6, '生活百货'); -INSERT INTO `li_member_evaluation` VALUES (1387341905716576256, '15810610731', '2021-04-28 17:44:20.546000', b'0', NULL, NULL, '还不错哦', '1377085464581767168', NULL, '乐事 无限 番茄味', 'GOOD', b'0', b'0', NULL, '1376364798236688384', '星星眨眨眼,月儿画问号', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/00218693d2e64c9893b269d1aec77f94.jpeg', 'O202104281387340669248339969', NULL, NULL, '1376433565247471616', '1381793060463050752', 'OPEN', b'0', 5, 3, 4, '生活百货'); -INSERT INTO `li_member_evaluation` VALUES (1387344699584413696, '13011111111', '2021-04-28 17:55:26.656000', b'0', NULL, NULL, '非常好吃!!!', '1376443041593688064', NULL, '百草味 蜜饯 原味芒果干 一袋', 'GOOD', b'0', b'0', NULL, '1376417684140326912', 'lilishop', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/7b32fe67110746f2b8c8566301a89a99.jpeg', 'O202104271386947732861616129', NULL, NULL, '1376433565247471616', '1381791842915319808', 'OPEN', b'0', 5, 4, 5, '生活百货'); -INSERT INTO `li_member_evaluation` VALUES (1390585574703759360, '13011111111', '2021-05-07 16:33:31.497000', b'0', NULL, NULL, '问题的关键究竟为何? 乌申斯基曾经说过,学习是劳动,是充满思想的劳动。这不禁令我深思。 一般来说, 一般来讲,我们都必须务必慎重的考虑考虑。 问题的关键究竟为何? 日本谚语说过一句富有哲理的话,不幸可能成为通向幸福的桥梁。这句话语虽然很短,但令我浮想联翩。 我认为, 拉罗什福科在不经意间这样说过,我们唯一不会改正的缺点是软弱。这启发了我, 海贝尔曾经说过,人生就是学校。在那里,与其说好的教师是幸福,不如说好的教师是不幸。这似乎解答了我的疑惑。 本人也是经过了深思熟虑,在每个日日夜夜思考这个问题。 我们都知道,只要有意义,那么就必须慎重考虑。 就我个人来说,1000对我的意义,不能不说非常重大。 一般来讲,我们都必须务必慎重的考虑考虑。 经过上述讨论, 经过上述讨论。 \n  既然如何, 在这种困难的抉择下,本人思来想去,寝食难安。 所谓1000,关键是1000需要如何写。 就我个人来说,1000对我的意义,不能不说非常重大。 对我个人而言,1000不仅仅是一个重大的事件,还可能会改变我的人生。 带着这些问题,我们来审视一下1000。 1000,到底应该如何实现。 总结的来说, 对我个', '1376443041593688064', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/54dcb9cd0fea4f1f8243e12d49c28af9.png?x-oss-process=style/400X400', '百草味 蜜饯 原味芒果干 三袋', 'GOOD', b'1', b'0', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/0fb5cc2ad9fa4d60aea026a77a1abc4e.png', '1376417684140326912', 'lilishop', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/7b32fe67110746f2b8c8566301a89a99.jpeg', 'O202105071390585172142850049', '很棒', NULL, '1376433565247471616', '1381791842919514112', 'OPEN', b'1', 5, 5, 5, '生活百货'); +INSERT INTO `li_member_evaluation` VALUES (1379988946716459008, '15810610731', '2021-04-07 21:46:18.509000', b'0', NULL, NULL, '不错,还会再买', '1376830414609448960', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/703f7dfc8c3e4add8c15526d02e1672f.jpg', '新款B3头戴式蓝牙耳机', 'GOOD', b'1', b'0', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/de43fdcc59d9480582628459626f5388.jpeg,https://lilishop-oss.oss-cn-beijing.aliyuncs.com/9c290e42ab444ede8056eb14a4fe32e6.jpeg', '1376364798236688384', '15810610731', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/00218693d2e64c9893b269d1aec77f94.jpeg', 'O202103311377051155493814273', NULL, NULL, '1376369067769724928', '1376830415133736960', 'OPEN', b'0', 4, 4, 4, 'Lilishop自营店', NULL); +INSERT INTO `li_member_evaluation` VALUES (1380078505936551936, '13011111111', '2021-04-08 03:42:11.091000', b'0', NULL, NULL, '超好吃的 屯着', '1376443041593688064', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/54dcb9cd0fea4f1f8243e12d49c28af9.png', '百草味 蜜饯 原味芒果干', 'GOOD', b'1', b'0', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/ba95eebcb9bb4fc28dd0bac5e23300dc.jpeg', '1376417684140326912', '13011111111', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/c60e3a7ac3524a96afef80827e13fc30.png', 'O202104081380066701806141441', NULL, NULL, '1376433565247471616', '1376443042042478592', 'OPEN', b'0', 4, 4, 4, '生活百货', NULL); +INSERT INTO `li_member_evaluation` VALUES (1387220364496470016, '15810610731', '2021-04-28 09:41:22.861000', b'0', NULL, NULL, '我觉得不错哦', '1377085464581767168', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/7184562bd2d94e0b8723fee36f56dd78.jpg', '乐事 无限', 'GOOD', b'1', b'0', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/1cc8ae94b340451a90fbfaf1552ca033.jpg', '1376364798236688384', '星星眨眨眼,月儿画问号', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/00218693d2e64c9893b269d1aec77f94.jpeg', 'O202104261386513842112036865', NULL, NULL, '1376433565247471616', '1381793060458856448', 'OPEN', b'0', 5, 5, 5, '生活百货', NULL); +INSERT INTO `li_member_evaluation` VALUES (1387341837320060928, '15810610731', '2021-04-28 17:44:04.239000', b'0', NULL, NULL, '好吃', '1376443041593688064', NULL, '百草味 蜜饯 原味芒果干 一袋', 'GOOD', b'0', b'0', NULL, '1376364798236688384', '星星眨眨眼,月儿画问号', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/00218693d2e64c9893b269d1aec77f94.jpeg', 'O202104281387341022853332993', NULL, NULL, '1376433565247471616', '1381791842915319808', 'OPEN', b'0', 3, 2, 4, '生活百货', NULL); +INSERT INTO `li_member_evaluation` VALUES (1387341873915363328, '15810610731', '2021-04-28 17:44:12.964000', b'0', NULL, NULL, '还会继续购买', '1376443041593688064', NULL, '百草味 蜜饯 原味芒果干 三袋', 'GOOD', b'0', b'0', NULL, '1376364798236688384', '星星眨眨眼,月儿画问号', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/00218693d2e64c9893b269d1aec77f94.jpeg', 'O202104281387340729172361217', NULL, NULL, '1376433565247471616', '1381791842919514112', 'OPEN', b'0', 1, 5, 6, '生活百货', NULL); +INSERT INTO `li_member_evaluation` VALUES (1387341905716576256, '15810610731', '2021-04-28 17:44:20.546000', b'0', NULL, NULL, '还不错哦', '1377085464581767168', NULL, '乐事 无限 番茄味', 'GOOD', b'0', b'0', NULL, '1376364798236688384', '星星眨眨眼,月儿画问号', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/00218693d2e64c9893b269d1aec77f94.jpeg', 'O202104281387340669248339969', NULL, NULL, '1376433565247471616', '1381793060463050752', 'OPEN', b'0', 5, 3, 4, '生活百货', NULL); +INSERT INTO `li_member_evaluation` VALUES (1387344699584413696, '13011111111', '2021-04-28 17:55:26.656000', b'0', NULL, NULL, '非常好吃!!!', '1376443041593688064', NULL, '百草味 蜜饯 原味芒果干 一袋', 'GOOD', b'0', b'0', NULL, '1376417684140326912', 'lilishop', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/7b32fe67110746f2b8c8566301a89a99.jpeg', 'O202104271386947732861616129', NULL, NULL, '1376433565247471616', '1381791842915319808', 'OPEN', b'0', 5, 4, 5, '生活百货', NULL); +INSERT INTO `li_member_evaluation` VALUES (1390585574703759360, '13011111111', '2021-05-07 16:33:31.497000', b'0', NULL, NULL, '问题的关键究竟为何? 乌申斯基曾经说过,学习是劳动,是充满思想的劳动。这不禁令我深思。 一般来说, 一般来讲,我们都必须务必慎重的考虑考虑。 问题的关键究竟为何? 日本谚语说过一句富有哲理的话,不幸可能成为通向幸福的桥梁。这句话语虽然很短,但令我浮想联翩。 我认为, 拉罗什福科在不经意间这样说过,我们唯一不会改正的缺点是软弱。这启发了我, 海贝尔曾经说过,人生就是学校。在那里,与其说好的教师是幸福,不如说好的教师是不幸。这似乎解答了我的疑惑。 本人也是经过了深思熟虑,在每个日日夜夜思考这个问题。 我们都知道,只要有意义,那么就必须慎重考虑。 就我个人来说,1000对我的意义,不能不说非常重大。 一般来讲,我们都必须务必慎重的考虑考虑。 经过上述讨论, 经过上述讨论。 \n  既然如何, 在这种困难的抉择下,本人思来想去,寝食难安。 所谓1000,关键是1000需要如何写。 就我个人来说,1000对我的意义,不能不说非常重大。 对我个人而言,1000不仅仅是一个重大的事件,还可能会改变我的人生。 带着这些问题,我们来审视一下1000。 1000,到底应该如何实现。 总结的来说, 对我个', '1376443041593688064', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/54dcb9cd0fea4f1f8243e12d49c28af9.png?x-oss-process=style/400X400', '百草味 蜜饯 原味芒果干 三袋', 'GOOD', b'1', b'0', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/0fb5cc2ad9fa4d60aea026a77a1abc4e.png', '1376417684140326912', 'lilishop', 'https://lilishop-oss.oss-cn-beijing.aliyuncs.com/7b32fe67110746f2b8c8566301a89a99.jpeg', 'O202105071390585172142850049', '很棒', NULL, '1376433565247471616', '1381791842919514112', 'OPEN', b'1', 5, 5, 5, '生活百货', NULL); COMMIT; -- ---------------------------- @@ -55320,4 +55322,212 @@ INSERT INTO `li_wechat_mp_message` VALUES (1385414767996305408, 'admin', '2021-0 INSERT INTO `li_wechat_mp_message` VALUES (1385414771343360000, 'admin', '2021-04-23 10:06:35.907000', b'0', NULL, NULL, 'knckkHDSRC7eYuX_4sOJaYh8V59mKw09SmRfe5POo3o', b'1', '[\"SHOP_NAME\",\"GOODS_INFO\"]', '[\"thing1\",\"thing3\"]', '订单完成', 'COMPLETED', '3606'); COMMIT; +-- ---------------------------- +-- Table structure for xxl_job_group +-- ---------------------------- +DROP TABLE IF EXISTS `xxl_job_group`; +CREATE TABLE `xxl_job_group` ( + `id` int NOT NULL AUTO_INCREMENT, + `app_name` varchar(64) NOT NULL COMMENT '执行器AppName', + `title` varchar(12) NOT NULL COMMENT '执行器名称', + `address_type` tinyint NOT NULL DEFAULT '0' COMMENT '执行器地址类型:0=自动注册、1=手动录入', + `address_list` text COMMENT '执行器地址列表,多地址逗号分隔', + `update_time` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of xxl_job_group +-- ---------------------------- +BEGIN; +INSERT INTO `xxl_job_group` VALUES (1, 'xxl-job-executor-sample', '示例执行器', 0, NULL, '2021-06-01 15:28:46'); +INSERT INTO `xxl_job_group` VALUES (2, 'xxl-job-executor-lilishop', 'lilishop', 0, NULL, '2021-06-01 15:28:46'); +COMMIT; + +-- ---------------------------- +-- Table structure for xxl_job_info +-- ---------------------------- +DROP TABLE IF EXISTS `xxl_job_info`; +CREATE TABLE `xxl_job_info` ( + `id` int NOT NULL AUTO_INCREMENT, + `job_group` int NOT NULL COMMENT '执行器主键ID', + `job_desc` varchar(255) NOT NULL, + `add_time` datetime DEFAULT NULL, + `update_time` datetime DEFAULT NULL, + `author` varchar(64) DEFAULT NULL COMMENT '作者', + `alarm_email` varchar(255) DEFAULT NULL COMMENT '报警邮件', + `schedule_type` varchar(50) NOT NULL DEFAULT 'NONE' COMMENT '调度类型', + `schedule_conf` varchar(128) DEFAULT NULL COMMENT '调度配置,值含义取决于调度类型', + `misfire_strategy` varchar(50) NOT NULL DEFAULT 'DO_NOTHING' COMMENT '调度过期策略', + `executor_route_strategy` varchar(50) DEFAULT NULL COMMENT '执行器路由策略', + `executor_handler` varchar(255) DEFAULT NULL COMMENT '执行器任务handler', + `executor_param` varchar(512) DEFAULT NULL COMMENT '执行器任务参数', + `executor_block_strategy` varchar(50) DEFAULT NULL COMMENT '阻塞处理策略', + `executor_timeout` int NOT NULL DEFAULT '0' COMMENT '任务执行超时时间,单位秒', + `executor_fail_retry_count` int NOT NULL DEFAULT '0' COMMENT '失败重试次数', + `glue_type` varchar(50) NOT NULL COMMENT 'GLUE类型', + `glue_source` mediumtext COMMENT 'GLUE源代码', + `glue_remark` varchar(128) DEFAULT NULL COMMENT 'GLUE备注', + `glue_updatetime` datetime DEFAULT NULL COMMENT 'GLUE更新时间', + `child_jobid` varchar(255) DEFAULT NULL COMMENT '子任务ID,多个逗号分隔', + `trigger_status` tinyint NOT NULL DEFAULT '0' COMMENT '调度状态:0-停止,1-运行', + `trigger_last_time` bigint NOT NULL DEFAULT '0' COMMENT '上次调度时间', + `trigger_next_time` bigint NOT NULL DEFAULT '0' COMMENT '下次调度时间', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of xxl_job_info +-- ---------------------------- +BEGIN; +INSERT INTO `xxl_job_info` VALUES (1, 1, '测试任务1', '2018-11-03 22:21:31', '2018-11-03 22:21:31', 'XXL', '', 'CRON', '0 0 0 * * ? *', 'DO_NOTHING', 'FIRST', 'demoJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2018-11-03 22:21:31', '', 0, 0, 0); +INSERT INTO `xxl_job_info` VALUES (2, 2, '每小时执行任务', '2020-12-24 11:01:24', '2020-12-24 15:03:03', 'admin', '', 'CRON', '0 0 0/1 * * ?', 'DO_NOTHING', 'ROUND', 'everyHourExecuteJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2020-12-24 11:01:24', '', 1, 1620813600000, 1622534400000); +INSERT INTO `xxl_job_info` VALUES (3, 2, '每分钟执行', '2020-12-24 11:02:58', '2020-12-24 15:02:49', 'admin', '', 'CRON', '0 0/1 * * * ?', 'DO_NOTHING', 'ROUND', 'everyMinuteExecute', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2020-12-24 11:02:58', '', 1, 1622532540000, 1622532600000); +INSERT INTO `xxl_job_info` VALUES (4, 2, '每天执行', '2020-12-24 11:03:41', '2020-12-24 15:02:28', 'admin', '', 'CRON', '0 5 2 1/1 * ?', 'DO_NOTHING', 'ROUND', 'everyDayExecuteJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2020-12-24 11:03:41', '', 1, 1620842700000, 1622570700000); +COMMIT; + +-- ---------------------------- +-- Table structure for xxl_job_lock +-- ---------------------------- +DROP TABLE IF EXISTS `xxl_job_lock`; +CREATE TABLE `xxl_job_lock` ( + `lock_name` varchar(50) NOT NULL COMMENT '锁名称', + PRIMARY KEY (`lock_name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of xxl_job_lock +-- ---------------------------- +BEGIN; +INSERT INTO `xxl_job_lock` VALUES ('schedule_lock'); +COMMIT; + +-- ---------------------------- +-- Table structure for xxl_job_log +-- ---------------------------- +DROP TABLE IF EXISTS `xxl_job_log`; +CREATE TABLE `xxl_job_log` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `job_group` int NOT NULL COMMENT '执行器主键ID', + `job_id` int NOT NULL COMMENT '任务,主键ID', + `executor_address` varchar(255) DEFAULT NULL COMMENT '执行器地址,本次执行的地址', + `executor_handler` varchar(255) DEFAULT NULL COMMENT '执行器任务handler', + `executor_param` varchar(512) DEFAULT NULL COMMENT '执行器任务参数', + `executor_sharding_param` varchar(20) DEFAULT NULL COMMENT '执行器任务分片参数,格式如 1/2', + `executor_fail_retry_count` int NOT NULL DEFAULT '0' COMMENT '失败重试次数', + `trigger_time` datetime DEFAULT NULL COMMENT '调度-时间', + `trigger_code` int NOT NULL COMMENT '调度-结果', + `trigger_msg` text COMMENT '调度-日志', + `handle_time` datetime DEFAULT NULL COMMENT '执行-时间', + `handle_code` int NOT NULL COMMENT '执行-状态', + `handle_msg` text COMMENT '执行-日志', + `alarm_status` tinyint NOT NULL DEFAULT '0' COMMENT '告警状态:0-默认、1-无需告警、2-告警成功、3-告警失败', + PRIMARY KEY (`id`), + KEY `I_trigger_time` (`trigger_time`), + KEY `I_handle_code` (`handle_code`) +) ENGINE=InnoDB AUTO_INCREMENT=1933 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of xxl_job_log +-- ---------------------------- +BEGIN; +INSERT INTO `xxl_job_log` VALUES (1919, 2, 3, 'http://172.17.164.196:8891/', 'everyMinuteExecute', '', NULL, 0, '2021-06-01 15:16:00', 500, '任务触发类型:Cron触发
调度机器:172.27.0.1
执行器-注册方式:自动注册
执行器-地址列表:[http://172.17.164.196:8891/]
路由策略:轮询
阻塞处理策略:单机串行
任务超时时间:0
失败重试次数:0

>>>>>>>>>>>触发调度<<<<<<<<<<<
触发调度:
address:http://172.17.164.196:8891/
code:500
msg:xxl-rpc remoting error(connect timed out), for url : http://172.17.164.196:8891/run', NULL, 0, NULL, 1); +INSERT INTO `xxl_job_log` VALUES (1920, 2, 3, NULL, 'everyMinuteExecute', '', NULL, 0, '2021-06-01 15:17:00', 500, '任务触发类型:Cron触发
调度机器:172.27.0.1
执行器-注册方式:自动注册
执行器-地址列表:null
路由策略:轮询
阻塞处理策略:单机串行
任务超时时间:0
失败重试次数:0

>>>>>>>>>>>触发调度<<<<<<<<<<<
调度失败:执行器地址为空

', NULL, 0, NULL, 1); +INSERT INTO `xxl_job_log` VALUES (1921, 2, 3, NULL, 'everyMinuteExecute', '', NULL, 0, '2021-06-01 15:18:00', 500, '任务触发类型:Cron触发
调度机器:172.27.0.1
执行器-注册方式:自动注册
执行器-地址列表:null
路由策略:轮询
阻塞处理策略:单机串行
任务超时时间:0
失败重试次数:0

>>>>>>>>>>>触发调度<<<<<<<<<<<
调度失败:执行器地址为空

', NULL, 0, NULL, 1); +INSERT INTO `xxl_job_log` VALUES (1922, 2, 3, NULL, 'everyMinuteExecute', '', NULL, 0, '2021-06-01 15:19:00', 500, '任务触发类型:Cron触发
调度机器:172.27.0.1
执行器-注册方式:自动注册
执行器-地址列表:null
路由策略:轮询
阻塞处理策略:单机串行
任务超时时间:0
失败重试次数:0

>>>>>>>>>>>触发调度<<<<<<<<<<<
调度失败:执行器地址为空

', NULL, 0, NULL, 1); +INSERT INTO `xxl_job_log` VALUES (1923, 2, 3, NULL, 'everyMinuteExecute', '', NULL, 0, '2021-06-01 15:20:00', 500, '任务触发类型:Cron触发
调度机器:172.27.0.1
执行器-注册方式:自动注册
执行器-地址列表:null
路由策略:轮询
阻塞处理策略:单机串行
任务超时时间:0
失败重试次数:0

>>>>>>>>>>>触发调度<<<<<<<<<<<
调度失败:执行器地址为空

', NULL, 0, NULL, 1); +INSERT INTO `xxl_job_log` VALUES (1924, 2, 3, NULL, 'everyMinuteExecute', '', NULL, 0, '2021-06-01 15:21:00', 500, '任务触发类型:Cron触发
调度机器:172.27.0.1
执行器-注册方式:自动注册
执行器-地址列表:null
路由策略:轮询
阻塞处理策略:单机串行
任务超时时间:0
失败重试次数:0

>>>>>>>>>>>触发调度<<<<<<<<<<<
调度失败:执行器地址为空

', NULL, 0, NULL, 1); +INSERT INTO `xxl_job_log` VALUES (1925, 2, 3, NULL, 'everyMinuteExecute', '', NULL, 0, '2021-06-01 15:22:00', 500, '任务触发类型:Cron触发
调度机器:172.27.0.1
执行器-注册方式:自动注册
执行器-地址列表:null
路由策略:轮询
阻塞处理策略:单机串行
任务超时时间:0
失败重试次数:0

>>>>>>>>>>>触发调度<<<<<<<<<<<
调度失败:执行器地址为空

', NULL, 0, NULL, 1); +INSERT INTO `xxl_job_log` VALUES (1926, 2, 3, NULL, 'everyMinuteExecute', '', NULL, 0, '2021-06-01 15:23:00', 500, '任务触发类型:Cron触发
调度机器:172.27.0.1
执行器-注册方式:自动注册
执行器-地址列表:null
路由策略:轮询
阻塞处理策略:单机串行
任务超时时间:0
失败重试次数:0

>>>>>>>>>>>触发调度<<<<<<<<<<<
调度失败:执行器地址为空

', NULL, 0, NULL, 1); +INSERT INTO `xxl_job_log` VALUES (1927, 2, 3, NULL, 'everyMinuteExecute', '', NULL, 0, '2021-06-01 15:24:00', 500, '任务触发类型:Cron触发
调度机器:172.27.0.1
执行器-注册方式:自动注册
执行器-地址列表:null
路由策略:轮询
阻塞处理策略:单机串行
任务超时时间:0
失败重试次数:0

>>>>>>>>>>>触发调度<<<<<<<<<<<
调度失败:执行器地址为空

', NULL, 0, NULL, 1); +INSERT INTO `xxl_job_log` VALUES (1928, 2, 3, NULL, 'everyMinuteExecute', '', NULL, 0, '2021-06-01 15:25:00', 500, '任务触发类型:Cron触发
调度机器:172.27.0.1
执行器-注册方式:自动注册
执行器-地址列表:null
路由策略:轮询
阻塞处理策略:单机串行
任务超时时间:0
失败重试次数:0

>>>>>>>>>>>触发调度<<<<<<<<<<<
调度失败:执行器地址为空

', NULL, 0, NULL, 1); +INSERT INTO `xxl_job_log` VALUES (1929, 2, 3, NULL, 'everyMinuteExecute', '', NULL, 0, '2021-06-01 15:26:00', 500, '任务触发类型:Cron触发
调度机器:172.27.0.1
执行器-注册方式:自动注册
执行器-地址列表:null
路由策略:轮询
阻塞处理策略:单机串行
任务超时时间:0
失败重试次数:0

>>>>>>>>>>>触发调度<<<<<<<<<<<
调度失败:执行器地址为空

', NULL, 0, NULL, 1); +INSERT INTO `xxl_job_log` VALUES (1930, 2, 3, NULL, 'everyMinuteExecute', '', NULL, 0, '2021-06-01 15:27:00', 500, '任务触发类型:Cron触发
调度机器:172.27.0.1
执行器-注册方式:自动注册
执行器-地址列表:null
路由策略:轮询
阻塞处理策略:单机串行
任务超时时间:0
失败重试次数:0

>>>>>>>>>>>触发调度<<<<<<<<<<<
调度失败:执行器地址为空

', NULL, 0, NULL, 1); +INSERT INTO `xxl_job_log` VALUES (1931, 2, 3, NULL, 'everyMinuteExecute', '', NULL, 0, '2021-06-01 15:28:00', 500, '任务触发类型:Cron触发
调度机器:172.27.0.1
执行器-注册方式:自动注册
执行器-地址列表:null
路由策略:轮询
阻塞处理策略:单机串行
任务超时时间:0
失败重试次数:0

>>>>>>>>>>>触发调度<<<<<<<<<<<
调度失败:执行器地址为空

', NULL, 0, NULL, 1); +INSERT INTO `xxl_job_log` VALUES (1932, 2, 3, NULL, 'everyMinuteExecute', '', NULL, 0, '2021-06-01 15:29:00', 500, '任务触发类型:Cron触发
调度机器:172.27.0.1
执行器-注册方式:自动注册
执行器-地址列表:null
路由策略:轮询
阻塞处理策略:单机串行
任务超时时间:0
失败重试次数:0

>>>>>>>>>>>触发调度<<<<<<<<<<<
调度失败:执行器地址为空

', NULL, 0, NULL, 1); +COMMIT; + +-- ---------------------------- +-- Table structure for xxl_job_log_report +-- ---------------------------- +DROP TABLE IF EXISTS `xxl_job_log_report`; +CREATE TABLE `xxl_job_log_report` ( + `id` int NOT NULL AUTO_INCREMENT, + `trigger_day` datetime DEFAULT NULL COMMENT '调度-时间', + `running_count` int NOT NULL DEFAULT '0' COMMENT '运行中-日志数量', + `suc_count` int NOT NULL DEFAULT '0' COMMENT '执行成功-日志数量', + `fail_count` int NOT NULL DEFAULT '0' COMMENT '执行失败-日志数量', + `update_time` datetime DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `i_trigger_day` (`trigger_day`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=70 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of xxl_job_log_report +-- ---------------------------- +BEGIN; +COMMIT; + +-- ---------------------------- +-- Table structure for xxl_job_logglue +-- ---------------------------- +DROP TABLE IF EXISTS `xxl_job_logglue`; +CREATE TABLE `xxl_job_logglue` ( + `id` int NOT NULL AUTO_INCREMENT, + `job_id` int NOT NULL COMMENT '任务,主键ID', + `glue_type` varchar(50) DEFAULT NULL COMMENT 'GLUE类型', + `glue_source` mediumtext COMMENT 'GLUE源代码', + `glue_remark` varchar(128) NOT NULL COMMENT 'GLUE备注', + `add_time` datetime DEFAULT NULL, + `update_time` datetime DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of xxl_job_logglue +-- ---------------------------- +BEGIN; +COMMIT; + +-- ---------------------------- +-- Table structure for xxl_job_registry +-- ---------------------------- +DROP TABLE IF EXISTS `xxl_job_registry`; +CREATE TABLE `xxl_job_registry` ( + `id` int NOT NULL AUTO_INCREMENT, + `registry_group` varchar(50) NOT NULL, + `registry_key` varchar(255) NOT NULL, + `registry_value` varchar(255) NOT NULL, + `update_time` datetime DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `i_g_k_v` (`registry_group`,`registry_key`,`registry_value`) +) ENGINE=InnoDB AUTO_INCREMENT=340 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of xxl_job_registry +-- ---------------------------- +BEGIN; +COMMIT; + +-- ---------------------------- +-- Table structure for xxl_job_user +-- ---------------------------- +DROP TABLE IF EXISTS `xxl_job_user`; +CREATE TABLE `xxl_job_user` ( + `id` int NOT NULL AUTO_INCREMENT, + `username` varchar(50) NOT NULL COMMENT '账号', + `password` varchar(50) NOT NULL COMMENT '密码', + `role` tinyint NOT NULL COMMENT '角色:0-普通用户、1-管理员', + `permission` varchar(255) DEFAULT NULL COMMENT '权限:执行器ID列表,多个逗号分割', + PRIMARY KEY (`id`), + UNIQUE KEY `i_username` (`username`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of xxl_job_user +-- ---------------------------- +BEGIN; +INSERT INTO `xxl_job_user` VALUES (1, 'admin', '96e79218965eb72c92a549dd5a330112', 1, NULL); +COMMIT; + SET FOREIGN_KEY_CHECKS = 1;