From 831c74364b727fe0ebe75c08ac9c638882365040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Sun, 21 Jul 2019 01:14:26 +0800 Subject: [PATCH] :bookmark: :bookmark: :bookmark: Releasing / Version tags. 3.2.0 --- db/2pigxx.sql | 1039 ++++++++++++----- db/6pigxx_config.sql | 61 +- db/7pigxx_pay.sql | 143 +-- db/Dockerfile | 2 +- .../static/console-fe/public/img/favicon.ico | Bin 0 -> 4286 bytes .../console-fe/public/img/logo-2000-390.svg | 1 + .../ShowCodeing/ShowServiceCodeing.js | 491 ++++++++ .../ClusterNodeList/ClusterNodeList.js | 200 ++++ .../ClusterNodeList/ClusterNodeList.scss | 29 + .../ClusterNodeList/index.js | 16 + .../ConfigEditor/NewConfigEditor.js | 596 ++++++++++ .../SubscriberList/SubscriberList.js | 217 ++++ .../SubscriberList/SubscriberList.scss | 30 + .../ServiceManagement/SubscriberList/index.js | 16 + .../console-fe/src/pages/Welcome/Welcome.js | 39 + .../console-fe/src/pages/Welcome/index.js | 16 + .../console-fe/src/reducers/subscribers.js | 41 + .../resources/static/img/logo-2000-390.svg | 1 + .../src/main/resources/template/menu.sql.vm | 16 +- .../controller/PayCheckBatchController.java | 106 -- .../controller/PayCheckMistakeController.java | 106 -- .../pigx/pay/entity/PayCheckBatch.java | 151 --- .../pigx/pay/entity/PayCheckMistake.java | 151 --- .../pigx/pay/mapper/PayCheckBatchMapper.java | 31 - .../pay/mapper/PayCheckMistakeMapper.java | 31 - .../pay/service/PayCheckBatchService.java | 31 - .../pay/service/PayCheckMistakeService.java | 31 - .../impl/PayCheckBatchServiceImpl.java | 34 - .../impl/PayCheckMistakeServiceImpl.java | 34 - .../resources/mapper/PayCheckBatchMapper.xml | 54 - .../mapper/PayCheckMistakeMapper.xml | 54 - 31 files changed, 2539 insertions(+), 1229 deletions(-) create mode 100644 pigx-register/src/main/resources/static/console-fe/public/img/favicon.ico create mode 100644 pigx-register/src/main/resources/static/console-fe/public/img/logo-2000-390.svg create mode 100644 pigx-register/src/main/resources/static/console-fe/src/components/ShowCodeing/ShowServiceCodeing.js create mode 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ClusterManagement/ClusterNodeList/ClusterNodeList.js create mode 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ClusterManagement/ClusterNodeList/ClusterNodeList.scss create mode 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ClusterManagement/ClusterNodeList/index.js create mode 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/NewConfigEditor.js create mode 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/SubscriberList/SubscriberList.js create mode 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/SubscriberList/SubscriberList.scss create mode 100644 pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/SubscriberList/index.js create mode 100644 pigx-register/src/main/resources/static/console-fe/src/pages/Welcome/Welcome.js create mode 100644 pigx-register/src/main/resources/static/console-fe/src/pages/Welcome/index.js create mode 100644 pigx-register/src/main/resources/static/console-fe/src/reducers/subscribers.js create mode 100644 pigx-register/src/main/resources/static/img/logo-2000-390.svg delete mode 100755 pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/controller/PayCheckBatchController.java delete mode 100755 pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/controller/PayCheckMistakeController.java delete mode 100755 pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/entity/PayCheckBatch.java delete mode 100755 pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/entity/PayCheckMistake.java delete mode 100755 pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/mapper/PayCheckBatchMapper.java delete mode 100755 pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/mapper/PayCheckMistakeMapper.java delete mode 100755 pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/PayCheckBatchService.java delete mode 100755 pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/PayCheckMistakeService.java delete mode 100755 pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/impl/PayCheckBatchServiceImpl.java delete mode 100755 pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/impl/PayCheckMistakeServiceImpl.java delete mode 100755 pigx-visual/pigx-pay/src/main/resources/mapper/PayCheckBatchMapper.xml delete mode 100755 pigx-visual/pigx-pay/src/main/resources/mapper/PayCheckMistakeMapper.xml diff --git a/db/2pigxx.sql b/db/2pigxx.sql index 151501365..426190eb0 100644 --- a/db/2pigxx.sql +++ b/db/2pigxx.sql @@ -1,439 +1,956 @@ -/* - Navicat Premium Data Transfer - - Source Server : localhost - Source Server Type : MySQL - Source Server Version : 50723 - Source Host : localhost - Source Database : pigxx - - Target Server Type : MySQL - Target Server Version : 50723 - File Encoding : utf-8 - - Date: 05/18/2019 15:25:48 PM -*/ USE pigxx; -SET NAMES utf8; +SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- --- Table structure for `sys_datasource_conf` +-- Table structure for sys_datasource_conf -- ---------------------------- DROP TABLE IF EXISTS `sys_datasource_conf`; CREATE TABLE `sys_datasource_conf` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', - `name` varchar(255) DEFAULT NULL COMMENT '名称', - `url` varchar(255) DEFAULT NULL, - `username` varchar(255) DEFAULT NULL, - `password` varchar(255) DEFAULT NULL, - `create_date` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_date` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新', - `del_flag` char(50) DEFAULT '0' COMMENT '删除标记', - `tenant_id` int(11) DEFAULT NULL COMMENT '租户ID', - PRIMARY KEY (`id`) + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', + `name` varchar(255) DEFAULT NULL COMMENT '名称', + `url` varchar(255) DEFAULT NULL, + `username` varchar(255) DEFAULT NULL, + `password` varchar(255) DEFAULT NULL, + `create_date` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_date` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新', + `del_flag` char(50) DEFAULT '0' COMMENT '删除标记', + `tenant_id` int(11) DEFAULT NULL COMMENT '租户ID', + PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='数据源表'; -- ---------------------------- --- Records of `sys_datasource_conf` +-- Records of sys_datasource_conf -- ---------------------------- BEGIN; -INSERT INTO `sys_datasource_conf` VALUES ('1', 'pigxx', 'jdbc:mysql://pigx-mysql:3306/pigxx?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true', 'root', 'Cx+ocw0iFCpae4Qo4IoFmQ==', '2019-03-31 16:40:43', '2019-06-13 03:07:24', '0', '1'), ('2', 'pigxx_ac', 'jdbc:mysql://pigx-mysql:3306/pigxx_ac?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8', 'root', 'Cx+ocw0iFCpae4Qo4IoFmQ==', '2019-03-31 17:53:25', '2019-06-13 03:07:25', '0', '1'), ('3', 'pigxx_job', 'jdbc:mysql://pigx-mysql:3306/pigxx_job?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8', 'root', 'Cx+ocw0iFCpae4Qo4IoFmQ==', '2019-03-31 17:53:25', '2019-06-13 03:07:26', '0', '1'), ('4', 'pigxx_zipkin', 'jdbc:mysql://pigx-mysql:3306/pigxx_zipkin?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8', 'root', 'Cx+ocw0iFCpae4Qo4IoFmQ==', '2019-03-31 17:53:25', '2019-06-13 03:07:27', '0', '1'), ('5', 'pigxx_mp', 'jdbc:mysql://pigx-mysql:3306/pigxx_mp?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8', 'root', 'Cx+ocw0iFCpae4Qo4IoFmQ==', '2019-03-31 17:53:25', '2019-06-13 03:07:28', '0', '1'), ('6', 'pigxx_pay', 'jdbc:mysql://pigx-mysql:3306/pigxx_pay?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8', 'root', 'Cx+ocw0iFCpae4Qo4IoFmQ==', '2019-03-31 17:53:25', '2019-06-13 03:07:30', '0', '1'); +INSERT INTO `sys_datasource_conf` VALUES (1, 'pigxx', 'jdbc:mysql://pigx-mysql:3306/pigxx?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true', 'root', 'Cx+ocw0iFCpae4Qo4IoFmQ==', '2019-03-31 16:40:43', '2019-06-13 03:07:24', '0', 1); +INSERT INTO `sys_datasource_conf` VALUES (2, 'pigxx_ac', 'jdbc:mysql://pigx-mysql:3306/pigxx_ac?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8', 'root', 'Cx+ocw0iFCpae4Qo4IoFmQ==', '2019-03-31 17:53:25', '2019-06-13 03:07:25', '0', 1); +INSERT INTO `sys_datasource_conf` VALUES (3, 'pigxx_job', 'jdbc:mysql://pigx-mysql:3306/pigxx_job?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8', 'root', 'Cx+ocw0iFCpae4Qo4IoFmQ==', '2019-03-31 17:53:25', '2019-06-13 03:07:26', '0', 1); +INSERT INTO `sys_datasource_conf` VALUES (4, 'pigxx_zipkin', 'jdbc:mysql://pigx-mysql:3306/pigxx_zipkin?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8', 'root', 'Cx+ocw0iFCpae4Qo4IoFmQ==', '2019-03-31 17:53:25', '2019-06-13 03:07:27', '0', 1); +INSERT INTO `sys_datasource_conf` VALUES (5, 'pigxx_mp', 'jdbc:mysql://pigx-mysql:3306/pigxx_mp?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8', 'root', 'Cx+ocw0iFCpae4Qo4IoFmQ==', '2019-03-31 17:53:25', '2019-06-13 03:07:28', '0', 1); +INSERT INTO `sys_datasource_conf` VALUES (6, 'pigxx_pay', 'jdbc:mysql://pigx-mysql:3306/pigxx_pay?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8', 'root', 'Cx+ocw0iFCpae4Qo4IoFmQ==', '2019-03-31 17:53:25', '2019-06-13 03:07:30', '0', 1); COMMIT; -- ---------------------------- --- Table structure for `sys_dept` +-- Table structure for sys_dept -- ---------------------------- DROP TABLE IF EXISTS `sys_dept`; CREATE TABLE `sys_dept` ( - `dept_id` int(20) NOT NULL AUTO_INCREMENT, - `name` varchar(50) DEFAULT NULL COMMENT '部门名称', - `sort` int(11) DEFAULT NULL COMMENT '排序', - `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', - `del_flag` char(1) DEFAULT '0' COMMENT '是否删除 -1:已删除 0:正常', - `parent_id` int(11) DEFAULT NULL, - `tenant_id` int(11) DEFAULT NULL, - PRIMARY KEY (`dept_id`) + `dept_id` int(20) NOT NULL AUTO_INCREMENT, + `name` varchar(50) DEFAULT NULL COMMENT '部门名称', + `sort` int(11) DEFAULT NULL COMMENT '排序', + `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', + `del_flag` char(1) DEFAULT '0' COMMENT '是否删除 -1:已删除 0:正常', + `parent_id` int(11) DEFAULT NULL, + `tenant_id` int(11) DEFAULT NULL, + PRIMARY KEY (`dept_id`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='部门管理'; -- ---------------------------- --- Records of `sys_dept` +-- Records of sys_dept -- ---------------------------- BEGIN; -INSERT INTO `sys_dept` VALUES ('1', '山东', '1', '2018-01-22 19:00:23', '2019-05-18 14:56:06', '0', '0', '1'), ('2', '沙县国际', '2', '2018-01-22 19:00:38', '2019-05-18 14:12:07', '0', '0', '1'), ('3', '潍坊', '3', '2018-01-22 19:00:44', '2019-05-18 14:56:11', '0', '1', '1'), ('4', '高新', '4', '2018-01-22 19:00:52', '2019-05-18 14:56:09', '0', '3', '1'), ('5', '院校', '5', '2018-01-22 19:00:57', '2019-05-18 14:56:13', '0', '4', '1'), ('6', '潍院', '6', '2018-01-22 19:01:06', '2019-05-18 14:56:16', '1', '5', '1'), ('7', '山东沙县', '7', '2018-01-22 19:01:57', '2019-05-18 14:12:17', '0', '2', '1'), ('8', '潍坊沙县', '8', '2018-01-22 19:02:03', '2019-05-18 14:12:19', '0', '7', '1'), ('9', '高新沙县', '9', '2018-01-22 19:02:14', '2019-05-18 14:12:22', '1', '8', '1'), ('10', '租户2', '1', '2018-11-18 13:27:11', '2019-05-18 14:12:31', '0', '0', '2'), ('11', '院校沙县', '2', '2018-12-10 21:19:26', '2019-05-18 14:12:33', '0', '8', '1'), ('12', '小院沙县', '3', '2019-04-28 17:33:31', '2019-05-18 14:12:36', '0', '11', '1'), ('14', '租户默认部门', null, '2019-06-06 15:01:06', null, '0', '0', '3'); +INSERT INTO `sys_dept` VALUES (1, '山东', 1, '2018-01-22 19:00:23', '2019-05-18 14:56:06', '0', 0, 1); +INSERT INTO `sys_dept` VALUES (2, '沙县国际', 2, '2018-01-22 19:00:38', '2019-05-18 14:12:07', '0', 0, 1); +INSERT INTO `sys_dept` VALUES (3, '潍坊', 3, '2018-01-22 19:00:44', '2019-05-18 14:56:11', '0', 1, 1); +INSERT INTO `sys_dept` VALUES (4, '高新', 4, '2018-01-22 19:00:52', '2019-05-18 14:56:09', '0', 3, 1); +INSERT INTO `sys_dept` VALUES (5, '院校', 5, '2018-01-22 19:00:57', '2019-05-18 14:56:13', '0', 4, 1); +INSERT INTO `sys_dept` VALUES (6, '潍院', 6, '2018-01-22 19:01:06', '2019-05-18 14:56:16', '1', 5, 1); +INSERT INTO `sys_dept` VALUES (7, '山东沙县', 7, '2018-01-22 19:01:57', '2019-05-18 14:12:17', '0', 2, 1); +INSERT INTO `sys_dept` VALUES (8, '潍坊沙县', 8, '2018-01-22 19:02:03', '2019-05-18 14:12:19', '0', 7, 1); +INSERT INTO `sys_dept` VALUES (9, '高新沙县', 9, '2018-01-22 19:02:14', '2019-05-18 14:12:22', '1', 8, 1); +INSERT INTO `sys_dept` VALUES (10, '租户2', 1, '2018-11-18 13:27:11', '2019-05-18 14:12:31', '0', 0, 2); +INSERT INTO `sys_dept` VALUES (11, '院校沙县', 2, '2018-12-10 21:19:26', '2019-05-18 14:12:33', '0', 8, 1); +INSERT INTO `sys_dept` VALUES (12, '小院沙县', 3, '2019-04-28 17:33:31', '2019-05-18 14:12:36', '0', 11, 1); +INSERT INTO `sys_dept` VALUES (14, '租户默认部门', NULL, '2019-06-06 15:01:06', NULL, '0', 0, 3); COMMIT; -- ---------------------------- --- Table structure for `sys_dept_relation` +-- Table structure for sys_dept_relation -- ---------------------------- DROP TABLE IF EXISTS `sys_dept_relation`; CREATE TABLE `sys_dept_relation` ( - `ancestor` int(11) NOT NULL COMMENT '祖先节点', - `descendant` int(11) NOT NULL COMMENT '后代节点', - PRIMARY KEY (`ancestor`,`descendant`), - KEY `idx1` (`ancestor`), - KEY `idx2` (`descendant`) + `ancestor` int(11) NOT NULL COMMENT '祖先节点', + `descendant` int(11) NOT NULL COMMENT '后代节点', + PRIMARY KEY (`ancestor`,`descendant`), + KEY `idx1` (`ancestor`), + KEY `idx2` (`descendant`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC COMMENT='部门关系表'; -- ---------------------------- --- Records of `sys_dept_relation` +-- Records of sys_dept_relation -- ---------------------------- BEGIN; -INSERT INTO `sys_dept_relation` VALUES ('1', '1'), ('1', '3'), ('1', '4'), ('1', '5'), ('2', '2'), ('2', '7'), ('2', '8'), ('2', '11'), ('2', '12'), ('3', '3'), ('3', '4'), ('3', '5'), ('4', '4'), ('4', '5'), ('5', '5'), ('7', '7'), ('7', '8'), ('7', '11'), ('7', '12'), ('8', '8'), ('8', '11'), ('8', '12'), ('10', '10'), ('11', '11'), ('11', '12'), ('12', '12'), ('14', '14'); +INSERT INTO `sys_dept_relation` VALUES (1, 1); +INSERT INTO `sys_dept_relation` VALUES (1, 3); +INSERT INTO `sys_dept_relation` VALUES (1, 4); +INSERT INTO `sys_dept_relation` VALUES (1, 5); +INSERT INTO `sys_dept_relation` VALUES (2, 2); +INSERT INTO `sys_dept_relation` VALUES (2, 7); +INSERT INTO `sys_dept_relation` VALUES (2, 8); +INSERT INTO `sys_dept_relation` VALUES (2, 11); +INSERT INTO `sys_dept_relation` VALUES (2, 12); +INSERT INTO `sys_dept_relation` VALUES (3, 3); +INSERT INTO `sys_dept_relation` VALUES (3, 4); +INSERT INTO `sys_dept_relation` VALUES (3, 5); +INSERT INTO `sys_dept_relation` VALUES (4, 4); +INSERT INTO `sys_dept_relation` VALUES (4, 5); +INSERT INTO `sys_dept_relation` VALUES (5, 5); +INSERT INTO `sys_dept_relation` VALUES (7, 7); +INSERT INTO `sys_dept_relation` VALUES (7, 8); +INSERT INTO `sys_dept_relation` VALUES (7, 11); +INSERT INTO `sys_dept_relation` VALUES (7, 12); +INSERT INTO `sys_dept_relation` VALUES (8, 8); +INSERT INTO `sys_dept_relation` VALUES (8, 11); +INSERT INTO `sys_dept_relation` VALUES (8, 12); +INSERT INTO `sys_dept_relation` VALUES (10, 10); +INSERT INTO `sys_dept_relation` VALUES (11, 11); +INSERT INTO `sys_dept_relation` VALUES (11, 12); +INSERT INTO `sys_dept_relation` VALUES (12, 12); +INSERT INTO `sys_dept_relation` VALUES (14, 14); COMMIT; -- ---------------------------- --- Table structure for `sys_dict` +-- Table structure for sys_dict -- ---------------------------- DROP TABLE IF EXISTS `sys_dict`; CREATE TABLE `sys_dict` ( - `id` int(64) NOT NULL AUTO_INCREMENT COMMENT '编号', - `type` varchar(100) NOT NULL COMMENT '类型', - `description` varchar(100) NOT NULL COMMENT '描述', - `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', - `remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', - `system` char(1) NOT NULL DEFAULT '0' COMMENT '0-否|1-是', - `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标记', - `tenant_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属租户', - PRIMARY KEY (`id`), - KEY `sys_dict_del_flag` (`del_flag`) -) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='字典表'; + `id` int(64) NOT NULL AUTO_INCREMENT COMMENT '编号', + `type` varchar(100) NOT NULL COMMENT '类型', + `description` varchar(100) NOT NULL COMMENT '描述', + `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + `remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', + `system` char(1) NOT NULL DEFAULT '0' COMMENT '0-否|1-是', + `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标记', + `tenant_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属租户', + PRIMARY KEY (`id`), + KEY `sys_dict_del_flag` (`del_flag`) +) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='字典表'; -- ---------------------------- --- Records of `sys_dict` +-- Records of sys_dict -- ---------------------------- BEGIN; -INSERT INTO `sys_dict` VALUES ('1', 'log_type', '日志类型', '2019-03-19 11:06:44', '2019-03-19 11:06:44', '异常、正常', '1', '0', '1'), ('2', 'social_type', '社交登录', '2019-03-19 11:09:44', '2019-03-19 11:09:44', '微信、QQ', '1', '0', '1'), ('3', 'leave_status', '请假状态', '2019-03-19 11:09:44', '2019-03-19 11:09:44', '未提交、审批中、完成、驳回', '1', '0', '1'), ('4', 'job_type', '定时任务类型', '2019-03-19 11:22:21', '2019-03-19 11:22:21', 'quartz', '1', '0', '1'), ('5', 'job_status', '定时任务状态', '2019-03-19 11:24:57', '2019-03-19 11:24:57', '发布状态、运行状态', '1', '0', '1'), ('6', 'job_execute_status', '定时任务执行状态', '2019-03-19 11:26:15', '2019-03-19 11:26:15', '正常、异常', '1', '0', '1'), ('7', 'misfire_policy', '定时任务错失执行策略', '2019-03-19 11:27:19', '2019-03-19 11:27:19', '周期', '1', '0', '1'), ('8', 'gender', '性别', '2019-03-27 13:44:06', '2019-03-27 13:44:06', '微信用户性别', '1', '0', '1'), ('9', 'subscribe', '订阅状态', '2019-03-27 13:48:33', '2019-03-27 13:48:33', '公众号订阅状态', '1', '0', '1'), ('10', 'response_type', '回复', '2019-03-28 21:29:21', '2019-03-28 21:29:21', '微信消息是否已回复', '1', '0', '1'), ('11', 'param_type', '参数配置', '2019-04-29 18:20:47', '2019-04-29 18:20:47', '检索、原文、报表、安全、文档、消息、其他', '1', '0', '1'), ('12', 'tenant_status_type', '租户状态', '2019-05-15 16:31:08', '2019-05-15 16:31:08', '租户状态', '1', '0', '1'), ('13', 'dict_type', '字典类型', '2019-05-16 14:16:20', '2019-05-16 14:20:16', '系统类不能修改', '1', '0', '1'), ('14', 'channel_status', '支付渠道状态', '2019-05-30 16:14:43', '2019-05-30 16:14:43', '支付渠道状态(0-正常,1-冻结)', '0', '0', '1'), ('15', 'channel_id', '渠道编码ID', '2019-05-30 18:59:12', '2019-05-30 18:59:12', '不同的支付方式', '0', '0', '1'), ('16', 'log_type', '日志类型', '2019-03-19 11:06:44', '2019-03-19 11:06:44', '异常、正常', '1', '0', '3'), ('17', 'social_type', '社交登录', '2019-03-19 11:09:44', '2019-03-19 11:09:44', '微信、QQ', '1', '0', '3'), ('18', 'leave_status', '请假状态', '2019-03-19 11:09:44', '2019-03-19 11:09:44', '未提交、审批中、完成、驳回', '1', '0', '3'), ('19', 'job_type', '定时任务类型', '2019-03-19 11:22:21', '2019-03-19 11:22:21', 'quartz', '1', '0', '3'), ('20', 'job_status', '定时任务状态', '2019-03-19 11:24:57', '2019-03-19 11:24:57', '发布状态、运行状态', '1', '0', '3'), ('21', 'job_execute_status', '定时任务执行状态', '2019-03-19 11:26:15', '2019-03-19 11:26:15', '正常、异常', '1', '0', '3'), ('22', 'misfire_policy', '定时任务错失执行策略', '2019-03-19 11:27:19', '2019-03-19 11:27:19', '周期', '1', '0', '3'), ('23', 'gender', '性别', '2019-03-27 13:44:06', '2019-03-27 13:44:06', '微信用户性别', '1', '0', '3'), ('24', 'subscribe', '订阅状态', '2019-03-27 13:48:33', '2019-03-27 13:48:33', '公众号订阅状态', '1', '0', '3'), ('25', 'response_type', '回复', '2019-03-28 21:29:21', '2019-03-28 21:29:21', '微信消息是否已回复', '1', '0', '3'), ('26', 'param_type', '参数配置', '2019-04-29 18:20:47', '2019-04-29 18:20:47', '检索、原文、报表、安全、文档、消息、其他', '1', '0', '3'), ('27', 'tenant_status_type', '租户状态', '2019-05-15 16:31:08', '2019-05-15 16:31:08', '租户状态', '1', '0', '3'), ('28', 'dict_type', '字典类型', '2019-05-16 14:16:20', '2019-05-16 14:20:16', '系统类不能修改', '1', '0', '3'), ('29', 'order_status', '订单状态', '2019-06-27 08:17:40', '2019-06-27 08:17:40', '支付订单状态', '0', '0', '1'); +INSERT INTO `sys_dict` VALUES (1, 'log_type', '日志类型', '2019-03-19 11:06:44', '2019-03-19 11:06:44', '异常、正常', '1', '0', 1); +INSERT INTO `sys_dict` VALUES (2, 'social_type', '社交登录', '2019-03-19 11:09:44', '2019-03-19 11:09:44', '微信、QQ', '1', '0', 1); +INSERT INTO `sys_dict` VALUES (3, 'leave_status', '请假状态', '2019-03-19 11:09:44', '2019-03-19 11:09:44', '未提交、审批中、完成、驳回', '1', '0', 1); +INSERT INTO `sys_dict` VALUES (4, 'job_type', '定时任务类型', '2019-03-19 11:22:21', '2019-03-19 11:22:21', 'quartz', '1', '0', 1); +INSERT INTO `sys_dict` VALUES (5, 'job_status', '定时任务状态', '2019-03-19 11:24:57', '2019-03-19 11:24:57', '发布状态、运行状态', '1', '0', 1); +INSERT INTO `sys_dict` VALUES (6, 'job_execute_status', '定时任务执行状态', '2019-03-19 11:26:15', '2019-03-19 11:26:15', '正常、异常', '1', '0', 1); +INSERT INTO `sys_dict` VALUES (7, 'misfire_policy', '定时任务错失执行策略', '2019-03-19 11:27:19', '2019-03-19 11:27:19', '周期', '1', '0', 1); +INSERT INTO `sys_dict` VALUES (8, 'gender', '性别', '2019-03-27 13:44:06', '2019-03-27 13:44:06', '微信用户性别', '1', '0', 1); +INSERT INTO `sys_dict` VALUES (9, 'subscribe', '订阅状态', '2019-03-27 13:48:33', '2019-03-27 13:48:33', '公众号订阅状态', '1', '0', 1); +INSERT INTO `sys_dict` VALUES (10, 'response_type', '回复', '2019-03-28 21:29:21', '2019-03-28 21:29:21', '微信消息是否已回复', '1', '0', 1); +INSERT INTO `sys_dict` VALUES (11, 'param_type', '参数配置', '2019-04-29 18:20:47', '2019-04-29 18:20:47', '检索、原文、报表、安全、文档、消息、其他', '1', '0', 1); +INSERT INTO `sys_dict` VALUES (12, 'tenant_status_type', '租户状态', '2019-05-15 16:31:08', '2019-05-15 16:31:08', '租户状态', '1', '0', 1); +INSERT INTO `sys_dict` VALUES (13, 'dict_type', '字典类型', '2019-05-16 14:16:20', '2019-05-16 14:20:16', '系统类不能修改', '1', '0', 1); +INSERT INTO `sys_dict` VALUES (14, 'channel_status', '支付渠道状态', '2019-05-30 16:14:43', '2019-05-30 16:14:43', '支付渠道状态(0-正常,1-冻结)', '0', '0', 1); +INSERT INTO `sys_dict` VALUES (15, 'channel_id', '渠道编码ID', '2019-05-30 18:59:12', '2019-05-30 18:59:12', '不同的支付方式', '0', '0', 1); +INSERT INTO `sys_dict` VALUES (16, 'log_type', '日志类型', '2019-03-19 11:06:44', '2019-03-19 11:06:44', '异常、正常', '1', '0', 3); +INSERT INTO `sys_dict` VALUES (17, 'social_type', '社交登录', '2019-03-19 11:09:44', '2019-03-19 11:09:44', '微信、QQ', '1', '0', 3); +INSERT INTO `sys_dict` VALUES (18, 'leave_status', '请假状态', '2019-03-19 11:09:44', '2019-03-19 11:09:44', '未提交、审批中、完成、驳回', '1', '0', 3); +INSERT INTO `sys_dict` VALUES (19, 'job_type', '定时任务类型', '2019-03-19 11:22:21', '2019-03-19 11:22:21', 'quartz', '1', '0', 3); +INSERT INTO `sys_dict` VALUES (20, 'job_status', '定时任务状态', '2019-03-19 11:24:57', '2019-03-19 11:24:57', '发布状态、运行状态', '1', '0', 3); +INSERT INTO `sys_dict` VALUES (21, 'job_execute_status', '定时任务执行状态', '2019-03-19 11:26:15', '2019-03-19 11:26:15', '正常、异常', '1', '0', 3); +INSERT INTO `sys_dict` VALUES (22, 'misfire_policy', '定时任务错失执行策略', '2019-03-19 11:27:19', '2019-03-19 11:27:19', '周期', '1', '0', 3); +INSERT INTO `sys_dict` VALUES (23, 'gender', '性别', '2019-03-27 13:44:06', '2019-03-27 13:44:06', '微信用户性别', '1', '0', 3); +INSERT INTO `sys_dict` VALUES (24, 'subscribe', '订阅状态', '2019-03-27 13:48:33', '2019-03-27 13:48:33', '公众号订阅状态', '1', '0', 3); +INSERT INTO `sys_dict` VALUES (25, 'response_type', '回复', '2019-03-28 21:29:21', '2019-03-28 21:29:21', '微信消息是否已回复', '1', '0', 3); +INSERT INTO `sys_dict` VALUES (26, 'param_type', '参数配置', '2019-04-29 18:20:47', '2019-04-29 18:20:47', '检索、原文、报表、安全、文档、消息、其他', '1', '0', 3); +INSERT INTO `sys_dict` VALUES (27, 'tenant_status_type', '租户状态', '2019-05-15 16:31:08', '2019-05-15 16:31:08', '租户状态', '1', '0', 3); +INSERT INTO `sys_dict` VALUES (28, 'dict_type', '字典类型', '2019-05-16 14:16:20', '2019-05-16 14:20:16', '系统类不能修改', '1', '0', 3); +INSERT INTO `sys_dict` VALUES (29, 'order_status', '订单状态', '2019-06-27 08:17:40', '2019-06-27 08:17:40', '支付订单状态', '0', '0', 1); COMMIT; -- ---------------------------- --- Table structure for `sys_dict_item` +-- Table structure for sys_dict_item -- ---------------------------- DROP TABLE IF EXISTS `sys_dict_item`; CREATE TABLE `sys_dict_item` ( - `id` int(64) NOT NULL AUTO_INCREMENT COMMENT '编号', - `dict_id` int(11) NOT NULL, - `value` varchar(100) NOT NULL COMMENT '数据值', - `label` varchar(100) NOT NULL COMMENT '标签名', - `type` varchar(100) NOT NULL COMMENT '类型', - `description` varchar(100) NOT NULL COMMENT '描述', - `sort` int(10) NOT NULL COMMENT '排序(升序)', - `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', - `remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', - `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标记', - `tenant_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属租户', - PRIMARY KEY (`id`), - KEY `sys_dict_value` (`value`), - KEY `sys_dict_label` (`label`), - KEY `sys_dict_del_flag` (`del_flag`) -) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='字典项'; + `id` int(64) NOT NULL AUTO_INCREMENT COMMENT '编号', + `dict_id` int(11) NOT NULL, + `value` varchar(100) NOT NULL COMMENT '数据值', + `label` varchar(100) NOT NULL COMMENT '标签名', + `type` varchar(100) NOT NULL COMMENT '类型', + `description` varchar(100) NOT NULL COMMENT '描述', + `sort` int(10) NOT NULL COMMENT '排序(升序)', + `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + `remarks` varchar(255) DEFAULT NULL COMMENT '备注信息', + `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标记', + `tenant_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属租户', + PRIMARY KEY (`id`), + KEY `sys_dict_value` (`value`), + KEY `sys_dict_label` (`label`), + KEY `sys_dict_del_flag` (`del_flag`) +) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='字典项'; -- ---------------------------- --- Records of `sys_dict_item` +-- Records of sys_dict_item -- ---------------------------- BEGIN; -INSERT INTO `sys_dict_item` VALUES ('1', '1', '9', '异常', 'log_type', '日志异常', '1', '2019-03-19 11:08:59', '2019-03-25 12:49:13', '', '0', '1'), ('2', '1', '0', '正常', 'log_type', '日志正常', '0', '2019-03-19 11:09:17', '2019-03-25 12:49:18', '', '0', '1'), ('3', '2', 'WX', '微信', 'social_type', '微信登录', '0', '2019-03-19 11:10:02', '2019-03-25 12:49:36', '', '0', '1'), ('4', '2', 'QQ', 'QQ', 'social_type', 'QQ登录', '1', '2019-03-19 11:10:14', '2019-03-25 12:49:36', '', '0', '1'), ('5', '3', '0', '未提交', 'leave_status', '未提交', '0', '2019-03-19 11:18:34', '2019-03-25 12:49:36', '', '0', '1'), ('6', '3', '1', '审批中', 'leave_status', '审批中', '1', '2019-03-19 11:18:45', '2019-03-25 12:49:36', '', '0', '1'), ('7', '3', '2', '完成', 'leave_status', '完成', '2', '2019-03-19 11:19:02', '2019-03-25 12:49:36', '', '0', '1'), ('8', '3', '9', '驳回', 'leave_status', '驳回', '9', '2019-03-19 11:19:20', '2019-03-25 12:49:36', '', '0', '1'), ('9', '4', '1', 'java类', 'job_type', 'java类', '1', '2019-03-19 11:22:37', '2019-03-25 12:49:36', '', '0', '1'), ('10', '4', '2', 'spring bean', 'job_type', 'spring bean容器实例', '2', '2019-03-19 11:23:05', '2019-03-25 12:49:36', '', '0', '1'), ('11', '4', '9', '其他', 'job_type', '其他类型', '9', '2019-03-19 11:23:31', '2019-03-25 12:49:36', '', '0', '1'), ('12', '4', '3', 'Rest 调用', 'job_type', 'Rest 调用', '3', '2019-03-19 11:23:57', '2019-03-25 12:49:36', '', '0', '1'), ('13', '4', '4', 'jar', 'job_type', 'jar类型', '4', '2019-03-19 11:24:20', '2019-03-25 12:49:36', '', '0', '1'), ('14', '5', '1', '未发布', 'job_status', '未发布', '1', '2019-03-19 11:25:18', '2019-03-25 12:49:36', '', '0', '1'), ('15', '5', '2', '运行中', 'job_status', '运行中', '2', '2019-03-19 11:25:31', '2019-03-25 12:49:36', '', '0', '1'), ('16', '5', '3', '暂停', 'job_status', '暂停', '3', '2019-03-19 11:25:42', '2019-03-25 12:49:36', '', '0', '1'), ('17', '6', '0', '正常', 'job_execute_status', '正常', '0', '2019-03-19 11:26:27', '2019-03-25 12:49:36', '', '0', '1'), ('18', '6', '1', '异常', 'job_execute_status', '异常', '1', '2019-03-19 11:26:41', '2019-03-25 12:49:36', '', '0', '1'), ('19', '7', '1', '错失周期立即执行', 'misfire_policy', '错失周期立即执行', '1', '2019-03-19 11:27:45', '2019-03-25 12:49:36', '', '0', '1'), ('20', '7', '2', '错失周期执行一次', 'misfire_policy', '错失周期执行一次', '2', '2019-03-19 11:27:57', '2019-03-25 12:49:36', '', '0', '1'), ('21', '7', '3', '下周期执行', 'misfire_policy', '下周期执行', '3', '2019-03-19 11:28:08', '2019-03-25 12:49:36', '', '0', '1'), ('22', '8', '1', '男', 'gender', '微信-男', '0', '2019-03-27 13:45:13', '2019-03-27 13:45:13', '微信-男', '0', '1'), ('23', '8', '2', '女', 'gender', '女-微信', '1', '2019-03-27 13:45:34', '2019-03-27 13:45:34', '女-微信', '0', '1'), ('24', '8', '0', '未知', 'gender', 'x性别未知', '3', '2019-03-27 13:45:57', '2019-03-27 13:45:57', 'x性别未知', '0', '1'), ('25', '9', '0', '未关注', 'subscribe', '公众号-未关注', '0', '2019-03-27 13:49:07', '2019-03-27 13:49:07', '公众号-未关注', '0', '1'), ('26', '9', '1', '已关注', 'subscribe', '公众号-已关注', '1', '2019-03-27 13:49:26', '2019-03-27 13:49:26', '公众号-已关注', '0', '1'), ('27', '10', '0', '未回复', 'response_type', '微信消息-未回复', '0', '2019-03-28 21:29:47', '2019-03-28 21:29:47', '微信消息-未回复', '0', '1'), ('28', '10', '1', '已回复', 'response_type', '微信消息-已回复', '1', '2019-03-28 21:30:08', '2019-03-28 21:30:08', '微信消息-已回复', '0', '1'), ('29', '11', '1', '检索', 'param_type', '检索', '0', '2019-04-29 18:22:17', '2019-04-29 18:22:17', '检索', '0', '1'), ('30', '11', '2', '原文', 'param_type', '原文', '0', '2019-04-29 18:22:27', '2019-04-29 18:22:27', '原文', '0', '1'), ('31', '11', '3', '报表', 'param_type', '报表', '0', '2019-04-29 18:22:36', '2019-04-29 18:22:36', '报表', '0', '1'), ('32', '11', '4', '安全', 'param_type', '安全', '0', '2019-04-29 18:22:46', '2019-04-29 18:22:46', '安全', '0', '1'), ('33', '11', '5', '文档', 'param_type', '文档', '0', '2019-04-29 18:22:56', '2019-04-29 18:22:56', '文档', '0', '1'), ('34', '11', '6', '消息', 'param_type', '消息', '0', '2019-04-29 18:23:05', '2019-04-29 18:23:05', '消息', '0', '1'), ('35', '11', '9', '其他', 'param_type', '其他', '0', '2019-04-29 18:23:16', '2019-04-29 18:23:16', '其他', '0', '1'), ('36', '11', '0', '默认', 'param_type', '默认', '0', '2019-04-29 18:23:30', '2019-04-29 18:23:30', '默认', '0', '1'), ('37', '12', '0', '正常', 'status_type', '状态正常', '0', '2019-05-15 16:31:34', '2019-05-16 22:30:46', '状态正常', '0', '1'), ('38', '12', '9', '冻结', 'status_type', '状态冻结', '1', '2019-05-15 16:31:56', '2019-05-16 22:30:50', '状态冻结', '0', '1'), ('39', '13', '1', '系统类', 'dict_type', '系统类字典', '0', '2019-05-16 14:20:40', '2019-05-16 14:20:40', '不能修改删除', '0', '1'), ('40', '13', '0', '业务类', 'dict_type', '业务类字典', '0', '2019-05-16 14:20:59', '2019-05-16 14:20:59', '可以修改', '0', '1'), ('41', '14', '0', '正常', 'channel_status', '支付渠道状态正常', '0', '2019-05-30 16:16:51', '2019-05-30 16:16:51', null, '0', '1'), ('42', '14', '1', '冻结', 'channel_status', '支付渠道冻结', '0', '2019-05-30 16:17:08', '2019-05-30 16:17:08', null, '0', '1'), ('43', '15', 'ALIPAY_WAP', '支付宝wap支付', 'channel_id', '支付宝扫码支付', '0', '2019-05-30 19:03:16', '2019-06-18 13:51:42', '支付宝wap支付', '0', '1'), ('44', '15', 'WEIXIN_MP', '微信公众号支付', 'channel_id', '微信公众号支付', '1', '2019-05-30 19:08:08', '2019-06-18 13:51:53', '微信公众号支付', '0', '1'), ('45', '1', '9', '异常', 'log_type', '日志异常', '1', '2019-03-19 11:08:59', '2019-03-25 12:49:13', null, '0', '3'), ('46', '1', '0', '正常', 'log_type', '日志正常', '0', '2019-03-19 11:09:17', '2019-03-25 12:49:18', null, '0', '3'), ('47', '2', 'WX', '微信', 'social_type', '微信登录', '0', '2019-03-19 11:10:02', '2019-03-25 12:49:36', null, '0', '3'), ('48', '2', 'QQ', 'QQ', 'social_type', 'QQ登录', '1', '2019-03-19 11:10:14', '2019-03-25 12:49:36', null, '0', '3'), ('49', '3', '0', '未提交', 'leave_status', '未提交', '0', '2019-03-19 11:18:34', '2019-03-25 12:49:36', null, '0', '3'), ('50', '3', '1', '审批中', 'leave_status', '审批中', '1', '2019-03-19 11:18:45', '2019-03-25 12:49:36', null, '0', '3'), ('51', '3', '2', '完成', 'leave_status', '完成', '2', '2019-03-19 11:19:02', '2019-03-25 12:49:36', null, '0', '3'), ('52', '3', '9', '驳回', 'leave_status', '驳回', '9', '2019-03-19 11:19:20', '2019-03-25 12:49:36', null, '0', '3'), ('53', '4', '1', 'java类', 'job_type', 'java类', '1', '2019-03-19 11:22:37', '2019-03-25 12:49:36', null, '0', '3'), ('54', '4', '2', 'spring bean', 'job_type', 'spring bean容器实例', '2', '2019-03-19 11:23:05', '2019-03-25 12:49:36', null, '0', '3'), ('55', '4', '9', '其他', 'job_type', '其他类型', '9', '2019-03-19 11:23:31', '2019-03-25 12:49:36', null, '0', '3'), ('56', '4', '3', 'Rest 调用', 'job_type', 'Rest 调用', '3', '2019-03-19 11:23:57', '2019-03-25 12:49:36', null, '0', '3'), ('57', '4', '4', 'jar', 'job_type', 'jar类型', '4', '2019-03-19 11:24:20', '2019-03-25 12:49:36', null, '0', '3'), ('58', '5', '1', '未发布', 'job_status', '未发布', '1', '2019-03-19 11:25:18', '2019-03-25 12:49:36', null, '0', '3'), ('59', '5', '2', '运行中', 'job_status', '运行中', '2', '2019-03-19 11:25:31', '2019-03-25 12:49:36', null, '0', '3'), ('60', '5', '3', '暂停', 'job_status', '暂停', '3', '2019-03-19 11:25:42', '2019-03-25 12:49:36', null, '0', '3'), ('61', '6', '0', '正常', 'job_execute_status', '正常', '0', '2019-03-19 11:26:27', '2019-03-25 12:49:36', null, '0', '3'), ('62', '6', '1', '异常', 'job_execute_status', '异常', '1', '2019-03-19 11:26:41', '2019-03-25 12:49:36', null, '0', '3'), ('63', '7', '1', '错失周期立即执行', 'misfire_policy', '错失周期立即执行', '1', '2019-03-19 11:27:45', '2019-03-25 12:49:36', null, '0', '3'), ('64', '7', '2', '错失周期执行一次', 'misfire_policy', '错失周期执行一次', '2', '2019-03-19 11:27:57', '2019-03-25 12:49:36', null, '0', '3'), ('65', '7', '3', '下周期执行', 'misfire_policy', '下周期执行', '3', '2019-03-19 11:28:08', '2019-03-25 12:49:36', null, '0', '3'), ('66', '8', '1', '男', 'gender', '微信-男', '0', '2019-03-27 13:45:13', '2019-03-27 13:45:13', '微信-男', '0', '3'), ('67', '8', '2', '女', 'gender', '女-微信', '1', '2019-03-27 13:45:34', '2019-03-27 13:45:34', '女-微信', '0', '3'), ('68', '8', '0', '未知', 'gender', 'x性别未知', '3', '2019-03-27 13:45:57', '2019-03-27 13:45:57', 'x性别未知', '0', '3'), ('69', '9', '0', '未关注', 'subscribe', '公众号-未关注', '0', '2019-03-27 13:49:07', '2019-03-27 13:49:07', '公众号-未关注', '0', '3'), ('70', '9', '1', '已关注', 'subscribe', '公众号-已关注', '1', '2019-03-27 13:49:26', '2019-03-27 13:49:26', '公众号-已关注', '0', '3'), ('71', '10', '0', '未回复', 'response_type', '微信消息-未回复', '0', '2019-03-28 21:29:47', '2019-03-28 21:29:47', '微信消息-未回复', '0', '3'), ('72', '10', '1', '已回复', 'response_type', '微信消息-已回复', '1', '2019-03-28 21:30:08', '2019-03-28 21:30:08', '微信消息-已回复', '0', '3'), ('73', '11', '1', '检索', 'param_type', '检索', '0', '2019-04-29 18:22:17', '2019-04-29 18:22:17', '检索', '0', '3'), ('74', '11', '2', '原文', 'param_type', '原文', '0', '2019-04-29 18:22:27', '2019-04-29 18:22:27', '原文', '0', '3'), ('75', '11', '3', '报表', 'param_type', '报表', '0', '2019-04-29 18:22:36', '2019-04-29 18:22:36', '报表', '0', '3'), ('76', '11', '4', '安全', 'param_type', '安全', '0', '2019-04-29 18:22:46', '2019-04-29 18:22:46', '安全', '0', '3'), ('77', '11', '5', '文档', 'param_type', '文档', '0', '2019-04-29 18:22:56', '2019-04-29 18:22:56', '文档', '0', '3'), ('78', '11', '6', '消息', 'param_type', '消息', '0', '2019-04-29 18:23:05', '2019-04-29 18:23:05', '消息', '0', '3'), ('79', '11', '9', '其他', 'param_type', '其他', '0', '2019-04-29 18:23:16', '2019-04-29 18:23:16', '其他', '0', '3'), ('80', '11', '0', '默认', 'param_type', '默认', '0', '2019-04-29 18:23:30', '2019-04-29 18:23:30', '默认', '0', '3'), ('81', '12', '0', '正常', 'status_type', '状态正常', '0', '2019-05-15 16:31:34', '2019-05-16 22:30:46', '状态正常', '0', '3'), ('82', '12', '9', '冻结', 'status_type', '状态冻结', '1', '2019-05-15 16:31:56', '2019-05-16 22:30:50', '状态冻结', '0', '3'), ('83', '13', '1', '系统类', 'dict_type', '系统类字典', '0', '2019-05-16 14:20:40', '2019-05-16 14:20:40', '不能修改删除', '0', '3'), ('84', '13', '0', '业务类', 'dict_type', '业务类字典', '0', '2019-05-16 14:20:59', '2019-05-16 14:20:59', '可以修改', '0', '3'), ('85', '29', '1', '支付成功', 'order_status', '支付成功', '1', '2019-06-27 08:18:26', '2019-06-27 08:18:26', '订单支付成功', '0', '1'), ('86', '29', '2', '支付完成', 'order_status', '订单支付完成', '2', '2019-06-27 08:18:44', '2019-06-27 08:18:44', '订单支付完成', '0', '1'), ('87', '29', '0', '待支付', 'order_status', '订单待支付', '0', '2019-06-27 08:19:02', '2019-06-27 08:19:02', '订单待支付', '0', '1'), ('88', '29', '-1', '支付失败', 'order_status', '订单支付失败', '3', '2019-06-27 08:19:37', '2019-06-27 08:19:37', '订单支付失败', '0', '1'), ('89', '2', 'GITEE', '码云', 'social_type', '码云', '2', '2019-06-28 09:59:12', '2019-06-28 09:59:12', '码云', '0', '1'), ('90', '2', 'OSC', '开源中国', 'social_type', '开源中国登录', '0', '2019-06-28 10:04:32', '2019-06-28 10:04:32', 'http://gitee.huaxiadaowei.com/#/authredirect', '0', '1'); +INSERT INTO `sys_dict_item` VALUES (1, 1, '9', '异常', 'log_type', '日志异常', 1, '2019-03-19 11:08:59', '2019-03-25 12:49:13', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (2, 1, '0', '正常', 'log_type', '日志正常', 0, '2019-03-19 11:09:17', '2019-03-25 12:49:18', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (3, 2, 'WX', '微信', 'social_type', '微信登录', 0, '2019-03-19 11:10:02', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (4, 2, 'QQ', 'QQ', 'social_type', 'QQ登录', 1, '2019-03-19 11:10:14', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (5, 3, '0', '未提交', 'leave_status', '未提交', 0, '2019-03-19 11:18:34', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (6, 3, '1', '审批中', 'leave_status', '审批中', 1, '2019-03-19 11:18:45', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (7, 3, '2', '完成', 'leave_status', '完成', 2, '2019-03-19 11:19:02', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (8, 3, '9', '驳回', 'leave_status', '驳回', 9, '2019-03-19 11:19:20', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (9, 4, '1', 'java类', 'job_type', 'java类', 1, '2019-03-19 11:22:37', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (10, 4, '2', 'spring bean', 'job_type', 'spring bean容器实例', 2, '2019-03-19 11:23:05', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (11, 4, '9', '其他', 'job_type', '其他类型', 9, '2019-03-19 11:23:31', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (12, 4, '3', 'Rest 调用', 'job_type', 'Rest 调用', 3, '2019-03-19 11:23:57', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (13, 4, '4', 'jar', 'job_type', 'jar类型', 4, '2019-03-19 11:24:20', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (14, 5, '1', '未发布', 'job_status', '未发布', 1, '2019-03-19 11:25:18', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (15, 5, '2', '运行中', 'job_status', '运行中', 2, '2019-03-19 11:25:31', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (16, 5, '3', '暂停', 'job_status', '暂停', 3, '2019-03-19 11:25:42', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (17, 6, '0', '正常', 'job_execute_status', '正常', 0, '2019-03-19 11:26:27', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (18, 6, '1', '异常', 'job_execute_status', '异常', 1, '2019-03-19 11:26:41', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (19, 7, '1', '错失周期立即执行', 'misfire_policy', '错失周期立即执行', 1, '2019-03-19 11:27:45', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (20, 7, '2', '错失周期执行一次', 'misfire_policy', '错失周期执行一次', 2, '2019-03-19 11:27:57', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (21, 7, '3', '下周期执行', 'misfire_policy', '下周期执行', 3, '2019-03-19 11:28:08', '2019-03-25 12:49:36', '', '0', 1); +INSERT INTO `sys_dict_item` VALUES (22, 8, '1', '男', 'gender', '微信-男', 0, '2019-03-27 13:45:13', '2019-03-27 13:45:13', '微信-男', '0', 1); +INSERT INTO `sys_dict_item` VALUES (23, 8, '2', '女', 'gender', '女-微信', 1, '2019-03-27 13:45:34', '2019-03-27 13:45:34', '女-微信', '0', 1); +INSERT INTO `sys_dict_item` VALUES (24, 8, '0', '未知', 'gender', 'x性别未知', 3, '2019-03-27 13:45:57', '2019-03-27 13:45:57', 'x性别未知', '0', 1); +INSERT INTO `sys_dict_item` VALUES (25, 9, '0', '未关注', 'subscribe', '公众号-未关注', 0, '2019-03-27 13:49:07', '2019-03-27 13:49:07', '公众号-未关注', '0', 1); +INSERT INTO `sys_dict_item` VALUES (26, 9, '1', '已关注', 'subscribe', '公众号-已关注', 1, '2019-03-27 13:49:26', '2019-03-27 13:49:26', '公众号-已关注', '0', 1); +INSERT INTO `sys_dict_item` VALUES (27, 10, '0', '未回复', 'response_type', '微信消息-未回复', 0, '2019-03-28 21:29:47', '2019-03-28 21:29:47', '微信消息-未回复', '0', 1); +INSERT INTO `sys_dict_item` VALUES (28, 10, '1', '已回复', 'response_type', '微信消息-已回复', 1, '2019-03-28 21:30:08', '2019-03-28 21:30:08', '微信消息-已回复', '0', 1); +INSERT INTO `sys_dict_item` VALUES (29, 11, '1', '检索', 'param_type', '检索', 0, '2019-04-29 18:22:17', '2019-04-29 18:22:17', '检索', '0', 1); +INSERT INTO `sys_dict_item` VALUES (30, 11, '2', '原文', 'param_type', '原文', 0, '2019-04-29 18:22:27', '2019-04-29 18:22:27', '原文', '0', 1); +INSERT INTO `sys_dict_item` VALUES (31, 11, '3', '报表', 'param_type', '报表', 0, '2019-04-29 18:22:36', '2019-04-29 18:22:36', '报表', '0', 1); +INSERT INTO `sys_dict_item` VALUES (32, 11, '4', '安全', 'param_type', '安全', 0, '2019-04-29 18:22:46', '2019-04-29 18:22:46', '安全', '0', 1); +INSERT INTO `sys_dict_item` VALUES (33, 11, '5', '文档', 'param_type', '文档', 0, '2019-04-29 18:22:56', '2019-04-29 18:22:56', '文档', '0', 1); +INSERT INTO `sys_dict_item` VALUES (34, 11, '6', '消息', 'param_type', '消息', 0, '2019-04-29 18:23:05', '2019-04-29 18:23:05', '消息', '0', 1); +INSERT INTO `sys_dict_item` VALUES (35, 11, '9', '其他', 'param_type', '其他', 0, '2019-04-29 18:23:16', '2019-04-29 18:23:16', '其他', '0', 1); +INSERT INTO `sys_dict_item` VALUES (36, 11, '0', '默认', 'param_type', '默认', 0, '2019-04-29 18:23:30', '2019-04-29 18:23:30', '默认', '0', 1); +INSERT INTO `sys_dict_item` VALUES (37, 12, '0', '正常', 'status_type', '状态正常', 0, '2019-05-15 16:31:34', '2019-05-16 22:30:46', '状态正常', '0', 1); +INSERT INTO `sys_dict_item` VALUES (38, 12, '9', '冻结', 'status_type', '状态冻结', 1, '2019-05-15 16:31:56', '2019-05-16 22:30:50', '状态冻结', '0', 1); +INSERT INTO `sys_dict_item` VALUES (39, 13, '1', '系统类', 'dict_type', '系统类字典', 0, '2019-05-16 14:20:40', '2019-05-16 14:20:40', '不能修改删除', '0', 1); +INSERT INTO `sys_dict_item` VALUES (40, 13, '0', '业务类', 'dict_type', '业务类字典', 0, '2019-05-16 14:20:59', '2019-05-16 14:20:59', '可以修改', '0', 1); +INSERT INTO `sys_dict_item` VALUES (41, 14, '0', '正常', 'channel_status', '支付渠道状态正常', 0, '2019-05-30 16:16:51', '2019-05-30 16:16:51', NULL, '0', 1); +INSERT INTO `sys_dict_item` VALUES (42, 14, '1', '冻结', 'channel_status', '支付渠道冻结', 0, '2019-05-30 16:17:08', '2019-05-30 16:17:08', NULL, '0', 1); +INSERT INTO `sys_dict_item` VALUES (43, 15, 'ALIPAY_WAP', '支付宝wap支付', 'channel_id', '支付宝扫码支付', 0, '2019-05-30 19:03:16', '2019-06-18 13:51:42', '支付宝wap支付', '0', 1); +INSERT INTO `sys_dict_item` VALUES (44, 15, 'WEIXIN_MP', '微信公众号支付', 'channel_id', '微信公众号支付', 1, '2019-05-30 19:08:08', '2019-06-18 13:51:53', '微信公众号支付', '0', 1); +INSERT INTO `sys_dict_item` VALUES (45, 1, '9', '异常', 'log_type', '日志异常', 1, '2019-03-19 11:08:59', '2019-03-25 12:49:13', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (46, 1, '0', '正常', 'log_type', '日志正常', 0, '2019-03-19 11:09:17', '2019-03-25 12:49:18', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (47, 2, 'WX', '微信', 'social_type', '微信登录', 0, '2019-03-19 11:10:02', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (48, 2, 'QQ', 'QQ', 'social_type', 'QQ登录', 1, '2019-03-19 11:10:14', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (49, 3, '0', '未提交', 'leave_status', '未提交', 0, '2019-03-19 11:18:34', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (50, 3, '1', '审批中', 'leave_status', '审批中', 1, '2019-03-19 11:18:45', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (51, 3, '2', '完成', 'leave_status', '完成', 2, '2019-03-19 11:19:02', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (52, 3, '9', '驳回', 'leave_status', '驳回', 9, '2019-03-19 11:19:20', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (53, 4, '1', 'java类', 'job_type', 'java类', 1, '2019-03-19 11:22:37', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (54, 4, '2', 'spring bean', 'job_type', 'spring bean容器实例', 2, '2019-03-19 11:23:05', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (55, 4, '9', '其他', 'job_type', '其他类型', 9, '2019-03-19 11:23:31', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (56, 4, '3', 'Rest 调用', 'job_type', 'Rest 调用', 3, '2019-03-19 11:23:57', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (57, 4, '4', 'jar', 'job_type', 'jar类型', 4, '2019-03-19 11:24:20', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (58, 5, '1', '未发布', 'job_status', '未发布', 1, '2019-03-19 11:25:18', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (59, 5, '2', '运行中', 'job_status', '运行中', 2, '2019-03-19 11:25:31', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (60, 5, '3', '暂停', 'job_status', '暂停', 3, '2019-03-19 11:25:42', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (61, 6, '0', '正常', 'job_execute_status', '正常', 0, '2019-03-19 11:26:27', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (62, 6, '1', '异常', 'job_execute_status', '异常', 1, '2019-03-19 11:26:41', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (63, 7, '1', '错失周期立即执行', 'misfire_policy', '错失周期立即执行', 1, '2019-03-19 11:27:45', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (64, 7, '2', '错失周期执行一次', 'misfire_policy', '错失周期执行一次', 2, '2019-03-19 11:27:57', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (65, 7, '3', '下周期执行', 'misfire_policy', '下周期执行', 3, '2019-03-19 11:28:08', '2019-03-25 12:49:36', NULL, '0', 3); +INSERT INTO `sys_dict_item` VALUES (66, 8, '1', '男', 'gender', '微信-男', 0, '2019-03-27 13:45:13', '2019-03-27 13:45:13', '微信-男', '0', 3); +INSERT INTO `sys_dict_item` VALUES (67, 8, '2', '女', 'gender', '女-微信', 1, '2019-03-27 13:45:34', '2019-03-27 13:45:34', '女-微信', '0', 3); +INSERT INTO `sys_dict_item` VALUES (68, 8, '0', '未知', 'gender', 'x性别未知', 3, '2019-03-27 13:45:57', '2019-03-27 13:45:57', 'x性别未知', '0', 3); +INSERT INTO `sys_dict_item` VALUES (69, 9, '0', '未关注', 'subscribe', '公众号-未关注', 0, '2019-03-27 13:49:07', '2019-03-27 13:49:07', '公众号-未关注', '0', 3); +INSERT INTO `sys_dict_item` VALUES (70, 9, '1', '已关注', 'subscribe', '公众号-已关注', 1, '2019-03-27 13:49:26', '2019-03-27 13:49:26', '公众号-已关注', '0', 3); +INSERT INTO `sys_dict_item` VALUES (71, 10, '0', '未回复', 'response_type', '微信消息-未回复', 0, '2019-03-28 21:29:47', '2019-03-28 21:29:47', '微信消息-未回复', '0', 3); +INSERT INTO `sys_dict_item` VALUES (72, 10, '1', '已回复', 'response_type', '微信消息-已回复', 1, '2019-03-28 21:30:08', '2019-03-28 21:30:08', '微信消息-已回复', '0', 3); +INSERT INTO `sys_dict_item` VALUES (73, 11, '1', '检索', 'param_type', '检索', 0, '2019-04-29 18:22:17', '2019-04-29 18:22:17', '检索', '0', 3); +INSERT INTO `sys_dict_item` VALUES (74, 11, '2', '原文', 'param_type', '原文', 0, '2019-04-29 18:22:27', '2019-04-29 18:22:27', '原文', '0', 3); +INSERT INTO `sys_dict_item` VALUES (75, 11, '3', '报表', 'param_type', '报表', 0, '2019-04-29 18:22:36', '2019-04-29 18:22:36', '报表', '0', 3); +INSERT INTO `sys_dict_item` VALUES (76, 11, '4', '安全', 'param_type', '安全', 0, '2019-04-29 18:22:46', '2019-04-29 18:22:46', '安全', '0', 3); +INSERT INTO `sys_dict_item` VALUES (77, 11, '5', '文档', 'param_type', '文档', 0, '2019-04-29 18:22:56', '2019-04-29 18:22:56', '文档', '0', 3); +INSERT INTO `sys_dict_item` VALUES (78, 11, '6', '消息', 'param_type', '消息', 0, '2019-04-29 18:23:05', '2019-04-29 18:23:05', '消息', '0', 3); +INSERT INTO `sys_dict_item` VALUES (79, 11, '9', '其他', 'param_type', '其他', 0, '2019-04-29 18:23:16', '2019-04-29 18:23:16', '其他', '0', 3); +INSERT INTO `sys_dict_item` VALUES (80, 11, '0', '默认', 'param_type', '默认', 0, '2019-04-29 18:23:30', '2019-04-29 18:23:30', '默认', '0', 3); +INSERT INTO `sys_dict_item` VALUES (81, 12, '0', '正常', 'status_type', '状态正常', 0, '2019-05-15 16:31:34', '2019-05-16 22:30:46', '状态正常', '0', 3); +INSERT INTO `sys_dict_item` VALUES (82, 12, '9', '冻结', 'status_type', '状态冻结', 1, '2019-05-15 16:31:56', '2019-05-16 22:30:50', '状态冻结', '0', 3); +INSERT INTO `sys_dict_item` VALUES (83, 13, '1', '系统类', 'dict_type', '系统类字典', 0, '2019-05-16 14:20:40', '2019-05-16 14:20:40', '不能修改删除', '0', 3); +INSERT INTO `sys_dict_item` VALUES (84, 13, '0', '业务类', 'dict_type', '业务类字典', 0, '2019-05-16 14:20:59', '2019-05-16 14:20:59', '可以修改', '0', 3); +INSERT INTO `sys_dict_item` VALUES (85, 29, '1', '支付成功', 'order_status', '支付成功', 1, '2019-06-27 08:18:26', '2019-06-27 08:18:26', '订单支付成功', '0', 1); +INSERT INTO `sys_dict_item` VALUES (86, 29, '2', '支付完成', 'order_status', '订单支付完成', 2, '2019-06-27 08:18:44', '2019-06-27 08:18:44', '订单支付完成', '0', 1); +INSERT INTO `sys_dict_item` VALUES (87, 29, '0', '待支付', 'order_status', '订单待支付', 0, '2019-06-27 08:19:02', '2019-06-27 08:19:02', '订单待支付', '0', 1); +INSERT INTO `sys_dict_item` VALUES (88, 29, '-1', '支付失败', 'order_status', '订单支付失败', 3, '2019-06-27 08:19:37', '2019-06-27 08:19:37', '订单支付失败', '0', 1); +INSERT INTO `sys_dict_item` VALUES (89, 2, 'GITEE', '码云', 'social_type', '码云', 2, '2019-06-28 09:59:12', '2019-06-28 09:59:12', '码云', '0', 1); +INSERT INTO `sys_dict_item` VALUES (90, 2, 'OSC', '开源中国', 'social_type', '开源中国登录', 0, '2019-06-28 10:04:32', '2019-06-28 10:04:32', 'http://gitee.huaxiadaowei.com/#/authredirect', '0', 1); COMMIT; -- ---------------------------- --- Table structure for `sys_file` +-- Table structure for sys_file -- ---------------------------- DROP TABLE IF EXISTS `sys_file`; CREATE TABLE `sys_file` ( - `id` bigint(32) NOT NULL AUTO_INCREMENT COMMENT '编号', - `file_name` varchar(100) NOT NULL COMMENT '文件名', - `bucket_name` varchar(200) DEFAULT NULL COMMENT '保存路径', - `original` varchar(100) NOT NULL COMMENT '原文件名', - `type` varchar(50) DEFAULT NULL COMMENT '文件类型', - `file_size` bigint(50) DEFAULT NULL COMMENT '文件大小', - `create_user` varchar(32) DEFAULT NULL COMMENT '上传人', - `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '上传时间', - `update_user` varchar(32) DEFAULT NULL COMMENT '更新人', - `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', - `del_flag` char(1) DEFAULT '0' COMMENT '删除标识:1-删除,0-正常', - `tenant_id` int(11) DEFAULT NULL COMMENT '所属租户', - PRIMARY KEY (`id`) USING BTREE + `id` bigint(32) NOT NULL AUTO_INCREMENT COMMENT '编号', + `file_name` varchar(100) NOT NULL COMMENT '文件名', + `bucket_name` varchar(200) DEFAULT NULL COMMENT '保存路径', + `original` varchar(100) NOT NULL COMMENT '原文件名', + `type` varchar(50) DEFAULT NULL COMMENT '文件类型', + `file_size` bigint(50) DEFAULT NULL COMMENT '文件大小', + `create_user` varchar(32) DEFAULT NULL COMMENT '上传人', + `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '上传时间', + `update_user` varchar(32) DEFAULT NULL COMMENT '更新人', + `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + `del_flag` char(1) DEFAULT '0' COMMENT '删除标识:1-删除,0-正常', + `tenant_id` int(11) DEFAULT NULL COMMENT '所属租户', + PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='文件管理表'; -- ---------------------------- --- Table structure for `sys_log` +-- Table structure for sys_log -- ---------------------------- DROP TABLE IF EXISTS `sys_log`; CREATE TABLE `sys_log` ( - `id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '编号', - `type` char(1) DEFAULT '1' COMMENT '日志类型', - `title` varchar(255) DEFAULT '' COMMENT '日志标题', - `service_id` varchar(32) DEFAULT NULL COMMENT '服务ID', - `create_by` varchar(64) DEFAULT NULL COMMENT '创建者', - `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', - `remote_addr` varchar(255) DEFAULT NULL COMMENT '操作IP地址', - `user_agent` varchar(1000) DEFAULT NULL COMMENT '用户代理', - `request_uri` varchar(255) DEFAULT NULL COMMENT '请求URI', - `method` varchar(10) DEFAULT NULL COMMENT '操作方式', - `params` text COMMENT '操作提交的数据', - `time` mediumtext COMMENT '执行时间', - `del_flag` char(1) DEFAULT '0' COMMENT '删除标记', - `exception` text COMMENT '异常信息', - `tenant_id` int(11) DEFAULT '0' COMMENT '所属租户', - PRIMARY KEY (`id`), - KEY `sys_log_create_by` (`create_by`), - KEY `sys_log_request_uri` (`request_uri`), - KEY `sys_log_type` (`type`), - KEY `sys_log_create_date` (`create_time`) + `id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '编号', + `type` char(1) DEFAULT '1' COMMENT '日志类型', + `title` varchar(255) DEFAULT '' COMMENT '日志标题', + `service_id` varchar(32) DEFAULT NULL COMMENT '服务ID', + `create_by` varchar(64) DEFAULT NULL COMMENT '创建者', + `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + `remote_addr` varchar(255) DEFAULT NULL COMMENT '操作IP地址', + `user_agent` varchar(1000) DEFAULT NULL COMMENT '用户代理', + `request_uri` varchar(255) DEFAULT NULL COMMENT '请求URI', + `method` varchar(10) DEFAULT NULL COMMENT '操作方式', + `params` text COMMENT '操作提交的数据', + `time` mediumtext COMMENT '执行时间', + `del_flag` char(1) DEFAULT '0' COMMENT '删除标记', + `exception` text COMMENT '异常信息', + `tenant_id` int(11) DEFAULT '0' COMMENT '所属租户', + PRIMARY KEY (`id`), + KEY `sys_log_create_by` (`create_by`), + KEY `sys_log_request_uri` (`request_uri`), + KEY `sys_log_type` (`type`), + KEY `sys_log_create_date` (`create_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='日志表'; -- ---------------------------- --- Table structure for `sys_menu` +-- Table structure for sys_menu -- ---------------------------- DROP TABLE IF EXISTS `sys_menu`; CREATE TABLE `sys_menu` ( - `menu_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '菜单ID', - `name` varchar(32) NOT NULL COMMENT '菜单名称', - `permission` varchar(32) DEFAULT NULL COMMENT '菜单权限标识', - `path` varchar(128) DEFAULT NULL COMMENT '前端URL', - `parent_id` int(11) DEFAULT NULL COMMENT '父菜单ID', - `icon` varchar(32) DEFAULT NULL COMMENT '图标', - `sort` int(11) DEFAULT '1' COMMENT '排序值', - `keep_alive` char(1) DEFAULT '0' COMMENT '0-开启,1- 关闭', - `type` char(1) DEFAULT NULL COMMENT '菜单类型 (0菜单 1按钮)', - `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', - `del_flag` char(1) DEFAULT '0' COMMENT '逻辑删除标记(0--正常 1--删除)', - PRIMARY KEY (`menu_id`) -) ENGINE=InnoDB AUTO_INCREMENT=10005 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='菜单权限表'; + `menu_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '菜单ID', + `name` varchar(32) NOT NULL COMMENT '菜单名称', + `permission` varchar(32) DEFAULT NULL COMMENT '菜单权限标识', + `path` varchar(128) DEFAULT NULL COMMENT '前端URL', + `parent_id` int(11) DEFAULT NULL COMMENT '父菜单ID', + `icon` varchar(32) DEFAULT NULL COMMENT '图标', + `sort` int(11) DEFAULT '1' COMMENT '排序值', + `keep_alive` char(1) DEFAULT '0' COMMENT '0-开启,1- 关闭', + `type` char(1) DEFAULT NULL COMMENT '菜单类型 (0菜单 1按钮)', + `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + `del_flag` char(1) DEFAULT '0' COMMENT '逻辑删除标记(0--正常 1--删除)', + PRIMARY KEY (`menu_id`) +) ENGINE=InnoDB AUTO_INCREMENT=10002 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='菜单权限表'; -- ---------------------------- --- Records of `sys_menu` +-- Records of sys_menu -- ---------------------------- BEGIN; -INSERT INTO `sys_menu` VALUES ('1000', '权限管理', null, '/user', '-1', 'icon-quanxianguanli', '0', '0', '0', '2018-09-28 08:29:53', '2018-09-28 08:53:01', '0'), ('1100', '用户管理', null, '/admin/user/index', '1000', 'icon-yonghuguanli', '1', '1', '0', '2017-11-02 22:24:37', '2019-06-24 14:36:36', '0'), ('1101', '用户新增', 'sys_user_add', null, '1100', null, null, '0', '1', '2017-11-08 09:52:09', '2018-09-28 09:06:34', '0'), ('1102', '用户修改', 'sys_user_edit', null, '1100', null, null, '0', '1', '2017-11-08 09:52:48', '2018-09-28 09:06:37', '0'), ('1103', '用户删除', 'sys_user_del', null, '1100', null, null, '0', '1', '2017-11-08 09:54:01', '2018-09-28 09:06:42', '0'), ('1200', '菜单管理', null, '/admin/menu/index', '1000', 'icon-caidanguanli', '2', '0', '0', '2017-11-08 09:57:27', '2019-06-24 14:42:07', '0'), ('1201', '菜单新增', 'sys_menu_add', null, '1200', null, null, '0', '1', '2017-11-08 10:15:53', '2018-09-28 09:07:16', '0'), ('1202', '菜单修改', 'sys_menu_edit', null, '1200', null, null, '0', '1', '2017-11-08 10:16:23', '2018-09-28 09:07:18', '0'), ('1203', '菜单删除', 'sys_menu_del', null, '1200', null, null, '0', '1', '2017-11-08 10:16:43', '2018-09-28 09:07:22', '0'), ('1300', '角色管理', null, '/admin/role/index', '1000', 'icon-jiaoseguanli', '3', '0', '0', '2017-11-08 10:13:37', '2018-09-28 09:00:48', '0'), ('1301', '角色新增', 'sys_role_add', null, '1300', null, null, '0', '1', '2017-11-08 10:14:18', '2018-09-28 09:07:46', '0'), ('1302', '角色修改', 'sys_role_edit', null, '1300', null, null, '0', '1', '2017-11-08 10:14:41', '2018-09-28 09:07:49', '0'), ('1303', '角色删除', 'sys_role_del', null, '1300', null, null, '0', '1', '2017-11-08 10:14:59', '2018-09-28 09:07:53', '0'), ('1304', '分配权限', 'sys_role_perm', null, '1300', null, null, '0', '1', '2018-04-20 07:22:55', '2018-09-28 09:13:23', '0'), ('1400', '部门管理', null, '/admin/dept/index', '1000', 'icon-web-icon-', '4', '0', '0', '2018-01-20 13:17:19', '2018-12-09 16:35:12', '0'), ('1401', '部门新增', 'sys_dept_add', null, '1400', null, null, '0', '1', '2018-01-20 14:56:16', '2018-09-28 09:08:13', '0'), ('1402', '部门修改', 'sys_dept_edit', null, '1400', null, null, '0', '1', '2018-01-20 14:56:59', '2018-09-28 09:08:16', '0'), ('1403', '部门删除', 'sys_dept_del', null, '1400', null, null, '0', '1', '2018-01-20 14:57:28', '2018-09-28 09:08:18', '0'), ('1500', '租户管理', '', '/admin/tenant/index', '1000', 'icon-erji-zuhushouye', '5', '0', '0', '2018-01-20 13:17:19', '2019-05-17 15:36:11', '0'), ('1501', '租户新增', 'admin_systenant_add', null, '1500', '1', '0', '0', '1', '2018-05-15 21:35:18', '2019-05-17 15:36:34', '0'), ('1502', '租户修改', 'admin_systenant_edit', null, '1500', '1', '1', '0', '1', '2018-05-15 21:35:18', '2019-05-17 15:36:53', '0'), ('1503', '租户删除', 'admin_systenant_del', null, '1500', '1', '2', '0', '1', '2018-05-15 21:35:18', '2019-05-17 15:37:00', '0'), ('2000', '系统管理', null, '/admin', '-1', 'icon-xitongguanli', '1', '0', '0', '2017-11-07 20:56:00', '2018-09-28 08:53:18', '0'), ('2100', '日志管理', null, '/admin/log/index', '2000', 'icon-rizhiguanli', '5', '0', '0', '2017-11-20 14:06:22', '2018-09-28 09:01:52', '0'), ('2101', '日志删除', 'sys_log_del', null, '2100', null, null, '0', '1', '2017-11-20 20:37:37', '2018-09-28 09:08:44', '0'), ('2200', '字典管理', null, '/admin/dict/index', '2000', 'icon-navicon-zdgl', '6', '0', '0', '2017-11-29 11:30:52', '2018-09-28 09:01:47', '0'), ('2201', '字典删除', 'sys_dict_del', null, '2200', null, null, '0', '1', '2017-11-29 11:30:11', '2018-09-28 09:09:10', '0'), ('2202', '字典新增', 'sys_dict_add', null, '2200', null, null, '0', '1', '2018-05-11 22:34:55', '2018-09-28 09:09:12', '0'), ('2203', '字典修改', 'sys_dict_edit', null, '2200', null, null, '0', '1', '2018-05-11 22:36:03', '2018-09-28 09:09:16', '0'), ('2210', '参数管理', null, '/admin/param/index', '2000', 'icon-canshu', '7', '1', '0', '2019-04-29 22:16:50', '2019-06-24 14:52:00', '0'), ('2211', '参数新增', 'admin_syspublicparam_add', null, '2210', null, '1', '0', '1', '2019-04-29 22:17:36', null, '0'), ('2212', '参数删除', 'admin_syspublicparam_del', null, '2210', null, '1', '0', '1', '2019-04-29 22:17:55', null, '0'), ('2213', '参数编辑', 'admin_syspublicparam_edit', null, '2210', null, '1', '0', '1', '2019-04-29 22:18:14', '2019-04-29 22:19:25', '0'), ('2300', '代码生成', '', '/gen/index', '2000', 'icon-weibiaoti46', '8', '0', '0', '2018-01-20 13:17:19', '2018-11-24 05:21:01', '0'), ('2400', '终端管理', '', '/admin/client/index', '2000', 'icon-shouji', '9', '0', '0', '2018-01-20 13:17:19', '2018-09-28 09:01:43', '0'), ('2401', '客户端新增', 'sys_client_add', null, '2400', '1', null, '0', '1', '2018-05-15 21:35:18', '2018-09-28 09:10:25', '0'), ('2402', '客户端修改', 'sys_client_edit', null, '2400', null, null, '0', '1', '2018-05-15 21:37:06', '2018-09-28 09:10:27', '0'), ('2403', '客户端删除', 'sys_client_del', null, '2400', null, null, '0', '1', '2018-05-15 21:39:16', '2018-09-28 09:10:30', '0'), ('2500', '密钥管理', '', '/admin/social/index', '2000', 'icon-miyue', '10', '0', '0', '2018-01-20 13:17:19', '2018-09-28 09:01:41', '0'), ('2501', '密钥新增', 'sys_social_details_add', null, '2500', '1', '0', '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:52:18', '0'), ('2502', '密钥修改', 'sys_social_details_edit', null, '2500', '1', '1', '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:51:36', '0'), ('2503', '密钥删除', 'sys_social_details_del', null, '2500', '1', '2', '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:51:30', '0'), ('2600', '令牌管理', null, '/admin/token/index', '2000', 'icon-denglvlingpai', '11', '0', '0', '2018-09-04 05:58:41', '2018-09-28 09:01:38', '0'), ('2601', '令牌删除', 'sys_token_del', null, '2600', null, '1', '0', '1', '2018-09-04 05:59:50', '2018-09-28 09:11:24', '0'), ('2700', '动态路由', null, '/admin/route/index', '2000', 'icon-luyou', '12', '0', '0', '2018-09-04 05:58:41', '2019-06-24 15:14:28', '0'), ('2800', 'Quartz管理', '', '/daemon/job-manage/index', '2000', 'icon-guanwangfangwen', '8', '0', '0', '2018-01-20 13:17:19', '2019-03-25 13:52:14', '0'), ('2810', '任务新增', 'job_sys_job_add', null, '2800', '1', '0', '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:50:23', '0'), ('2820', '任务修改', 'job_sys_job_edit', null, '2800', '1', '0', '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:50:26', '0'), ('2830', '任务删除', 'job_sys_job_del', null, '2800', '1', '0', '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:50:30', '0'), ('2840', '任务暂停', 'job_sys_job_shutdown_job', null, '2800', '1', '0', '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:50:18', '0'), ('2850', '任务开始', 'job_sys_job_start_job', null, '2800', '1', '0', '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:50:35', '0'), ('2860', '任务刷新', 'job_sys_job_refresh_job', null, '2800', '1', '0', '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:50:39', '0'), ('3000', '系统监控', null, '/daemon', '-1', 'icon-msnui-supervise', '2', '0', '0', '2018-07-27 01:13:21', '2018-09-28 08:53:24', '0'), ('3100', '服务监控', null, 'http://127.0.0.1:5001', '3000', 'icon-server', '0', '0', '0', '2018-06-26 10:50:32', '2019-05-01 23:54:05', '0'), ('3110', '缓存监控', null, '/monitor/redis/index', '3000', 'icon-qingchuhuancun', '1', '1', '0', '2019-05-08 23:51:27', '2019-06-24 15:17:45', '0'), ('3200', '接口文档', null, 'http://127.0.0.1:9999/swagger-ui.html', '3000', 'icon-wendang', '1', '0', '0', '2018-06-26 10:50:32', '2019-05-01 23:57:11', '0'), ('3300', '事务监控', null, '/tx/index', '3000', 'icon-gtsquanjushiwufuwuGTS', '5', '0', '0', '2018-08-19 11:02:39', '2019-06-24 15:18:04', '0'), ('3400', '在线事务', null, '/tx/model', '3000', 'icon-online', '6', '0', '0', '2018-08-19 11:32:04', '2019-06-24 15:18:13', '0'), ('3500', '文档扩展', null, 'http://127.0.0.1:9999/doc.html', '3000', 'icon-wendang', '2', '0', '0', '2018-06-26 10:50:32', '2019-05-01 23:57:42', '0'), ('3600', '任务轨迹', '', '/daemon/status-trace-log/index', '3000', 'icon-guiji', '8', '0', '0', '2018-01-20 13:17:19', '2019-06-24 15:18:41', '0'), ('3601', '删除轨迹', 'daemon_status_trace_log_del', null, '3600', '1', '2', '0', '1', '2018-05-15 21:35:18', '2019-03-30 09:31:06', '0'), ('3620', 'Quartz日志', '', '/daemon/joblog/index', '3000', 'icon-gtsquanjushiwufuwuGTS', '8', '0', '0', '2018-01-20 13:17:19', '2019-06-24 15:18:54', '0'), ('3630', '任务日志', '', '/daemon/execution-log/index', '3000', 'icon-wendang', '7', '0', '0', '2018-01-20 13:17:19', '2019-06-24 15:19:07', '0'), ('3631', '删除日志', 'daemon_execution_log_del', null, '3900', '1', '2', '0', '1', '2018-05-15 21:35:18', '2019-03-30 09:30:45', '0'), ('3700', '注册配置', null, '', '3000', 'icon-line', '10', '0', '0', '2018-01-25 11:08:52', '2019-06-24 15:35:10', '1'), ('4000', '协同管理', null, '/activti', '-1', 'icon-kuaisugongzuoliu_o', '3', '0', '0', '2018-09-26 01:38:13', '2018-09-28 08:58:24', '0'), ('4100', '模型管理', null, '/activiti/index', '4000', 'icon-weibiaoti13', '1', '0', '0', '2018-09-26 01:39:07', '2019-06-24 15:20:00', '0'), ('4101', '模型管理', 'act_model_manage', null, '4100', '1', '0', '0', '1', '2018-05-15 21:35:18', '2018-09-28 09:12:07', '0'), ('4200', '流程管理', '/activiti/process', '/activiti/process', '4000', 'icon-liucheng', '2', '0', '0', '2018-09-26 06:41:05', '2019-06-24 08:31:07', '0'), ('4201', '流程管理', 'act_process_manage', null, '4200', '1', '0', '0', '1', '2018-05-15 21:35:18', '2018-09-28 09:12:07', '0'), ('4300', '请假管理', '/activiti/leave', '/activiti/leave', '4000', 'icon-qingjia', '3', '0', '0', '2018-01-20 13:17:19', '2019-06-24 08:31:11', '0'), ('4301', '请假新增', 'act_leavebill_add', null, '4300', '1', '0', '0', '1', '2018-05-15 21:35:18', '2018-09-28 09:12:07', '0'), ('4302', '请假修改', 'act_leavebill_edit', null, '4300', '1', '1', '0', '1', '2018-05-15 21:35:18', '2018-09-28 09:12:09', '0'), ('4303', '请假删除', 'act_leavebill_del', null, '4300', '1', '2', '0', '1', '2018-05-15 21:35:18', '2018-09-28 09:12:14', '0'), ('4400', '待办任务', '/activiti/task', '/activiti/task', '4000', 'icon-renwu', '4', '0', '0', '2018-09-27 09:52:31', '2019-06-24 08:31:18', '0'), ('4401', '流程管理', 'act_task_manage', null, '4400', '1', '0', '0', '1', '2018-05-15 21:35:18', '2018-09-28 09:12:07', '0'), ('5000', '支付管理', null, '/pay', '-1', 'icon-pay6zhifu', '4', '1', '0', '2019-05-30 15:28:03', '2019-06-20 16:13:23', '0'), ('5100', '渠道管理', null, '/pay/paychannel/index', '5000', 'icon-zhifuqudaoguanli', '1', '1', '0', '2019-05-30 15:32:17', '2019-05-30 19:43:27', '0'), ('5110', '增加渠道', 'pay_paychannel_add', null, '5100', null, '1', '0', '1', '2019-05-30 15:46:14', null, '0'), ('5120', '编辑渠道', 'pay_paychannel_edit', null, '5100', null, '1', '0', '1', '2019-05-30 15:46:35', null, '0'), ('5130', '删除渠道', 'pay_paychannel_del', null, '5100', null, '1', '0', '1', '2019-05-30 15:47:08', null, '0'), ('5200', '收银台', null, '/pay/cd/index', '5000', 'icon-shouyintai', '0', '1', '0', '2019-05-30 19:44:00', '2019-05-30 19:45:05', '0'), ('5300', '商品订单', '', '/pay/goods/index', '5000', 'icon-dingdan', '2', '0', '0', '2018-01-20 13:17:19', '2019-06-16 18:02:21', '0'), ('5310', '商品订单新增', 'generator_paygoodsorder_add', null, '5300', '1', '0', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('5320', '商品订单修改', 'generator_paygoodsorder_edit', null, '5300', '1', '1', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('5330', '商品订单删除', 'generator_paygoodsorder_del', null, '5300', '1', '2', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('5400', '支付订单', '', '/pay/orders/index', '5000', 'icon-zhifu', '3', '0', '0', '2018-01-20 13:17:19', '2019-06-16 18:02:06', '0'), ('5410', '支付订单新增', 'generator_paytradeorder_add', null, '5400', '1', '0', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('5420', '支付订单修改', 'generator_paytradeorder_edit', null, '5400', '1', '1', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('5430', '支付订单删除', 'generator_paytradeorder_del', null, '5400', '1', '2', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('5500', '回调记录', '', '/pay/notify/index', '5000', 'icon-huitiao', '4', '0', '0', '2018-01-20 13:17:19', '2019-06-16 18:01:49', '0'), ('5510', '记录新增', 'generator_paynotifyrecord_add', null, '5500', '1', '0', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('5520', '记录修改', 'generator_paynotifyrecord_edit', null, '5500', '1', '1', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('5530', '记录删除', 'generator_paynotifyrecord_del', null, '5500', '1', '2', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('6000', '微信管理', null, '/mp', '-1', 'icon-gongzhonghao', '4', '0', '0', '2018-09-26 01:38:13', '2018-09-28 08:58:24', '0'), ('6100', '账号管理', '', '/mp/wxaccount/index', '6000', 'icon-weixincaidan', '8', '0', '0', '2018-01-20 13:17:19', '2019-06-24 15:24:36', '0'), ('6101', '公众号新增', 'mp_wxaccount_add', '', '6100', '1', '0', '0', '1', '2018-05-15 21:35:18', '2019-06-24 15:24:33', '0'), ('6102', '公众号修改', 'mp_wxaccount_edit', null, '6100', '1', '1', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('6103', '公众号删除', 'mp_wxaccount_del', null, '6100', '1', '2', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('6200', '粉丝管理', '', '/mp/wxaccountfans/index', '6000', 'icon-fensiguanli', '8', '0', '0', '2018-01-20 13:17:19', '2019-06-24 15:24:46', '0'), ('6201', '粉丝新增', 'mp_wxaccountfans_add', null, '6200', '1', '0', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('6202', '粉丝修改', 'mp_wxaccountfans_edit', null, '6200', '1', '1', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('6203', '粉丝删除', 'mp_wxaccountfans_del', null, '6200', '1', '2', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('6300', '消息管理', '', '/mp/wxfansmsg/index', '6000', 'icon-xiaoxiguanli', '8', '0', '0', '2018-01-20 13:17:19', '2019-06-24 15:24:57', '0'), ('6301', '消息新增', 'mp_wxfansmsg_add', null, '6300', '1', '0', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('6302', '消息修改', 'mp_wxfansmsg_edit', null, '6300', '1', '1', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('6303', '消息删除', 'mp_wxfansmsg_del', null, '6300', '1', '2', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('6304', '消息回复', 'mp_wxfansmsgres_add', null, '6300', '1', '3', '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'), ('6305', '回复删除', 'mp_wxfansmsgres_del', null, '6300', null, '1', '0', '1', '2019-03-28 22:53:49', null, '0'), ('6400', '菜单设置', null, '/mp/wxmenu/index', '6000', 'icon-anniu_weixincaidanlianjie', '6', '1', '0', '2019-03-29 15:20:12', '2019-06-24 15:25:07', '0'), ('6401', '保存', 'mp_wxmenu_add', null, '6400', null, '1', '0', '1', '2019-03-29 15:43:22', '2019-03-29 15:43:30', '0'), ('6402', '发布', 'mp_wxmenu_push', null, '6400', null, '1', '0', '1', '2019-03-29 15:43:54', null, '0'), ('6500', '运营数据', null, '/mp/wxstatistics/index', '6000', 'icon-zhexiantu', '7', '1', '0', '2019-04-14 00:15:35', '2019-06-24 15:25:15', '0'), ('9999', '系统官网', null, 'https://pig4cloud.com/#', '-1', 'icon-guanwangfangwen', '9', '0', '0', '2019-01-17 17:05:19', '2019-01-17 17:29:06', '0'), ('10000', '文件管理', null, '/admin/file/index', '2000', 'icon-wenjianguanli', '6', '1', '0', '2019-06-25 12:44:46', null, '0'), ('10001', '删除文件', 'sys_file_del', null, '10000', null, '1', '0', '1', '2019-06-25 13:41:41', null, '0'); +INSERT INTO `sys_menu` VALUES (1000, '权限管理', NULL, '/user', -1, 'icon-quanxianguanli', 0, '0', '0', '2018-09-28 08:29:53', '2018-09-28 08:53:01', '0'); +INSERT INTO `sys_menu` VALUES (1100, '用户管理', NULL, '/admin/user/index', 1000, 'icon-yonghuguanli', 1, '1', '0', '2017-11-02 22:24:37', '2019-06-24 14:36:36', '0'); +INSERT INTO `sys_menu` VALUES (1101, '用户新增', 'sys_user_add', NULL, 1100, NULL, NULL, '0', '1', '2017-11-08 09:52:09', '2018-09-28 09:06:34', '0'); +INSERT INTO `sys_menu` VALUES (1102, '用户修改', 'sys_user_edit', NULL, 1100, NULL, NULL, '0', '1', '2017-11-08 09:52:48', '2018-09-28 09:06:37', '0'); +INSERT INTO `sys_menu` VALUES (1103, '用户删除', 'sys_user_del', NULL, 1100, NULL, NULL, '0', '1', '2017-11-08 09:54:01', '2018-09-28 09:06:42', '0'); +INSERT INTO `sys_menu` VALUES (1200, '菜单管理', NULL, '/admin/menu/index', 1000, 'icon-caidanguanli', 2, '0', '0', '2017-11-08 09:57:27', '2019-06-24 14:42:07', '0'); +INSERT INTO `sys_menu` VALUES (1201, '菜单新增', 'sys_menu_add', NULL, 1200, NULL, NULL, '0', '1', '2017-11-08 10:15:53', '2018-09-28 09:07:16', '0'); +INSERT INTO `sys_menu` VALUES (1202, '菜单修改', 'sys_menu_edit', NULL, 1200, NULL, NULL, '0', '1', '2017-11-08 10:16:23', '2018-09-28 09:07:18', '0'); +INSERT INTO `sys_menu` VALUES (1203, '菜单删除', 'sys_menu_del', NULL, 1200, NULL, NULL, '0', '1', '2017-11-08 10:16:43', '2018-09-28 09:07:22', '0'); +INSERT INTO `sys_menu` VALUES (1300, '角色管理', NULL, '/admin/role/index', 1000, 'icon-jiaoseguanli', 3, '0', '0', '2017-11-08 10:13:37', '2018-09-28 09:00:48', '0'); +INSERT INTO `sys_menu` VALUES (1301, '角色新增', 'sys_role_add', NULL, 1300, NULL, NULL, '0', '1', '2017-11-08 10:14:18', '2018-09-28 09:07:46', '0'); +INSERT INTO `sys_menu` VALUES (1302, '角色修改', 'sys_role_edit', NULL, 1300, NULL, NULL, '0', '1', '2017-11-08 10:14:41', '2018-09-28 09:07:49', '0'); +INSERT INTO `sys_menu` VALUES (1303, '角色删除', 'sys_role_del', NULL, 1300, NULL, NULL, '0', '1', '2017-11-08 10:14:59', '2018-09-28 09:07:53', '0'); +INSERT INTO `sys_menu` VALUES (1304, '分配权限', 'sys_role_perm', NULL, 1300, NULL, NULL, '0', '1', '2018-04-20 07:22:55', '2018-09-28 09:13:23', '0'); +INSERT INTO `sys_menu` VALUES (1400, '部门管理', NULL, '/admin/dept/index', 1000, 'icon-web-icon-', 4, '0', '0', '2018-01-20 13:17:19', '2018-12-09 16:35:12', '0'); +INSERT INTO `sys_menu` VALUES (1401, '部门新增', 'sys_dept_add', NULL, 1400, NULL, NULL, '0', '1', '2018-01-20 14:56:16', '2018-09-28 09:08:13', '0'); +INSERT INTO `sys_menu` VALUES (1402, '部门修改', 'sys_dept_edit', NULL, 1400, NULL, NULL, '0', '1', '2018-01-20 14:56:59', '2018-09-28 09:08:16', '0'); +INSERT INTO `sys_menu` VALUES (1403, '部门删除', 'sys_dept_del', NULL, 1400, NULL, NULL, '0', '1', '2018-01-20 14:57:28', '2018-09-28 09:08:18', '0'); +INSERT INTO `sys_menu` VALUES (1500, '租户管理', '', '/admin/tenant/index', 1000, 'icon-erji-zuhushouye', 5, '0', '0', '2018-01-20 13:17:19', '2019-05-17 15:36:11', '0'); +INSERT INTO `sys_menu` VALUES (1501, '租户新增', 'admin_systenant_add', NULL, 1500, '1', 0, '0', '1', '2018-05-15 21:35:18', '2019-05-17 15:36:34', '0'); +INSERT INTO `sys_menu` VALUES (1502, '租户修改', 'admin_systenant_edit', NULL, 1500, '1', 1, '0', '1', '2018-05-15 21:35:18', '2019-05-17 15:36:53', '0'); +INSERT INTO `sys_menu` VALUES (1503, '租户删除', 'admin_systenant_del', NULL, 1500, '1', 2, '0', '1', '2018-05-15 21:35:18', '2019-05-17 15:37:00', '0'); +INSERT INTO `sys_menu` VALUES (2000, '系统管理', NULL, '/admin', -1, 'icon-xitongguanli', 1, '0', '0', '2017-11-07 20:56:00', '2018-09-28 08:53:18', '0'); +INSERT INTO `sys_menu` VALUES (2100, '日志管理', NULL, '/admin/log/index', 2000, 'icon-rizhiguanli', 5, '0', '0', '2017-11-20 14:06:22', '2018-09-28 09:01:52', '0'); +INSERT INTO `sys_menu` VALUES (2101, '日志删除', 'sys_log_del', NULL, 2100, NULL, NULL, '0', '1', '2017-11-20 20:37:37', '2018-09-28 09:08:44', '0'); +INSERT INTO `sys_menu` VALUES (2200, '字典管理', NULL, '/admin/dict/index', 2000, 'icon-navicon-zdgl', 6, '0', '0', '2017-11-29 11:30:52', '2018-09-28 09:01:47', '0'); +INSERT INTO `sys_menu` VALUES (2201, '字典删除', 'sys_dict_del', NULL, 2200, NULL, NULL, '0', '1', '2017-11-29 11:30:11', '2018-09-28 09:09:10', '0'); +INSERT INTO `sys_menu` VALUES (2202, '字典新增', 'sys_dict_add', NULL, 2200, NULL, NULL, '0', '1', '2018-05-11 22:34:55', '2018-09-28 09:09:12', '0'); +INSERT INTO `sys_menu` VALUES (2203, '字典修改', 'sys_dict_edit', NULL, 2200, NULL, NULL, '0', '1', '2018-05-11 22:36:03', '2018-09-28 09:09:16', '0'); +INSERT INTO `sys_menu` VALUES (2210, '参数管理', NULL, '/admin/param/index', 2000, 'icon-canshu', 7, '1', '0', '2019-04-29 22:16:50', '2019-06-24 14:52:00', '0'); +INSERT INTO `sys_menu` VALUES (2211, '参数新增', 'admin_syspublicparam_add', NULL, 2210, NULL, 1, '0', '1', '2019-04-29 22:17:36', NULL, '0'); +INSERT INTO `sys_menu` VALUES (2212, '参数删除', 'admin_syspublicparam_del', NULL, 2210, NULL, 1, '0', '1', '2019-04-29 22:17:55', NULL, '0'); +INSERT INTO `sys_menu` VALUES (2213, '参数编辑', 'admin_syspublicparam_edit', NULL, 2210, NULL, 1, '0', '1', '2019-04-29 22:18:14', '2019-04-29 22:19:25', '0'); +INSERT INTO `sys_menu` VALUES (2300, '代码生成', '', '/gen/index', 2000, 'icon-weibiaoti46', 8, '0', '0', '2018-01-20 13:17:19', '2018-11-24 05:21:01', '0'); +INSERT INTO `sys_menu` VALUES (2400, '终端管理', '', '/admin/client/index', 2000, 'icon-shouji', 9, '0', '0', '2018-01-20 13:17:19', '2018-09-28 09:01:43', '0'); +INSERT INTO `sys_menu` VALUES (2401, '客户端新增', 'sys_client_add', NULL, 2400, '1', NULL, '0', '1', '2018-05-15 21:35:18', '2018-09-28 09:10:25', '0'); +INSERT INTO `sys_menu` VALUES (2402, '客户端修改', 'sys_client_edit', NULL, 2400, NULL, NULL, '0', '1', '2018-05-15 21:37:06', '2018-09-28 09:10:27', '0'); +INSERT INTO `sys_menu` VALUES (2403, '客户端删除', 'sys_client_del', NULL, 2400, NULL, NULL, '0', '1', '2018-05-15 21:39:16', '2018-09-28 09:10:30', '0'); +INSERT INTO `sys_menu` VALUES (2500, '密钥管理', '', '/admin/social/index', 2000, 'icon-miyue', 10, '0', '0', '2018-01-20 13:17:19', '2018-09-28 09:01:41', '0'); +INSERT INTO `sys_menu` VALUES (2501, '密钥新增', 'sys_social_details_add', NULL, 2500, '1', 0, '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:52:18', '0'); +INSERT INTO `sys_menu` VALUES (2502, '密钥修改', 'sys_social_details_edit', NULL, 2500, '1', 1, '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:51:36', '0'); +INSERT INTO `sys_menu` VALUES (2503, '密钥删除', 'sys_social_details_del', NULL, 2500, '1', 2, '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:51:30', '0'); +INSERT INTO `sys_menu` VALUES (2600, '令牌管理', NULL, '/admin/token/index', 2000, 'icon-denglvlingpai', 11, '0', '0', '2018-09-04 05:58:41', '2018-09-28 09:01:38', '0'); +INSERT INTO `sys_menu` VALUES (2601, '令牌删除', 'sys_token_del', NULL, 2600, NULL, 1, '0', '1', '2018-09-04 05:59:50', '2018-09-28 09:11:24', '0'); +INSERT INTO `sys_menu` VALUES (2700, '动态路由', NULL, '/admin/route/index', 2000, 'icon-luyou', 12, '0', '0', '2018-09-04 05:58:41', '2019-06-24 15:14:28', '0'); +INSERT INTO `sys_menu` VALUES (2800, 'Quartz管理', '', '/daemon/job-manage/index', 2000, 'icon-guanwangfangwen', 8, '0', '0', '2018-01-20 13:17:19', '2019-03-25 13:52:14', '0'); +INSERT INTO `sys_menu` VALUES (2810, '任务新增', 'job_sys_job_add', NULL, 2800, '1', 0, '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:50:23', '0'); +INSERT INTO `sys_menu` VALUES (2820, '任务修改', 'job_sys_job_edit', NULL, 2800, '1', 0, '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:50:26', '0'); +INSERT INTO `sys_menu` VALUES (2830, '任务删除', 'job_sys_job_del', NULL, 2800, '1', 0, '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:50:30', '0'); +INSERT INTO `sys_menu` VALUES (2840, '任务暂停', 'job_sys_job_shutdown_job', NULL, 2800, '1', 0, '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:50:18', '0'); +INSERT INTO `sys_menu` VALUES (2850, '任务开始', 'job_sys_job_start_job', NULL, 2800, '1', 0, '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:50:35', '0'); +INSERT INTO `sys_menu` VALUES (2860, '任务刷新', 'job_sys_job_refresh_job', NULL, 2800, '1', 0, '0', '1', '2018-05-15 21:35:18', '2019-03-25 11:50:39', '0'); +INSERT INTO `sys_menu` VALUES (3000, '系统监控', NULL, '/daemon', -1, 'icon-msnui-supervise', 2, '0', '0', '2018-07-27 01:13:21', '2018-09-28 08:53:24', '0'); +INSERT INTO `sys_menu` VALUES (3100, '服务监控', NULL, 'http://127.0.0.1:5001', 3000, 'icon-server', 0, '0', '0', '2018-06-26 10:50:32', '2019-05-01 23:54:05', '0'); +INSERT INTO `sys_menu` VALUES (3110, '缓存监控', NULL, '/monitor/redis/index', 3000, 'icon-qingchuhuancun', 1, '1', '0', '2019-05-08 23:51:27', '2019-06-24 15:17:45', '0'); +INSERT INTO `sys_menu` VALUES (3200, '接口文档', NULL, 'http://127.0.0.1:9999/swagger-ui.html', 3000, 'icon-wendang', 1, '0', '0', '2018-06-26 10:50:32', '2019-05-01 23:57:11', '0'); +INSERT INTO `sys_menu` VALUES (3300, '事务监控', NULL, '/tx/index', 3000, 'icon-gtsquanjushiwufuwuGTS', 5, '0', '0', '2018-08-19 11:02:39', '2019-06-24 15:18:04', '0'); +INSERT INTO `sys_menu` VALUES (3400, '在线事务', NULL, '/tx/model', 3000, 'icon-online', 6, '0', '0', '2018-08-19 11:32:04', '2019-06-24 15:18:13', '0'); +INSERT INTO `sys_menu` VALUES (3500, '文档扩展', NULL, 'http://127.0.0.1:9999/doc.html', 3000, 'icon-wendang', 2, '0', '0', '2018-06-26 10:50:32', '2019-05-01 23:57:42', '0'); +INSERT INTO `sys_menu` VALUES (3600, '任务轨迹', '', '/daemon/status-trace-log/index', 3000, 'icon-guiji', 8, '0', '0', '2018-01-20 13:17:19', '2019-06-24 15:18:41', '0'); +INSERT INTO `sys_menu` VALUES (3601, '删除轨迹', 'daemon_status_trace_log_del', NULL, 3600, '1', 2, '0', '1', '2018-05-15 21:35:18', '2019-03-30 09:31:06', '0'); +INSERT INTO `sys_menu` VALUES (3620, 'Quartz日志', '', '/daemon/joblog/index', 3000, 'icon-gtsquanjushiwufuwuGTS', 8, '0', '0', '2018-01-20 13:17:19', '2019-06-24 15:18:54', '0'); +INSERT INTO `sys_menu` VALUES (3630, '任务日志', '', '/daemon/execution-log/index', 3000, 'icon-wendang', 7, '0', '0', '2018-01-20 13:17:19', '2019-06-24 15:19:07', '0'); +INSERT INTO `sys_menu` VALUES (3631, '删除日志', 'daemon_execution_log_del', NULL, 3900, '1', 2, '0', '1', '2018-05-15 21:35:18', '2019-03-30 09:30:45', '0'); +INSERT INTO `sys_menu` VALUES (3700, '注册配置', NULL, '', 3000, 'icon-line', 10, '0', '0', '2018-01-25 11:08:52', '2019-06-24 15:35:10', '1'); +INSERT INTO `sys_menu` VALUES (4000, '协同管理', NULL, '/activti', -1, 'icon-kuaisugongzuoliu_o', 3, '0', '0', '2018-09-26 01:38:13', '2018-09-28 08:58:24', '0'); +INSERT INTO `sys_menu` VALUES (4100, '模型管理', NULL, '/activiti/index', 4000, 'icon-weibiaoti13', 1, '0', '0', '2018-09-26 01:39:07', '2019-06-24 15:20:00', '0'); +INSERT INTO `sys_menu` VALUES (4101, '模型管理', 'act_model_manage', NULL, 4100, '1', 0, '0', '1', '2018-05-15 21:35:18', '2018-09-28 09:12:07', '0'); +INSERT INTO `sys_menu` VALUES (4200, '流程管理', '/activiti/process', '/activiti/process', 4000, 'icon-liucheng', 2, '0', '0', '2018-09-26 06:41:05', '2019-06-24 08:31:07', '0'); +INSERT INTO `sys_menu` VALUES (4201, '流程管理', 'act_process_manage', NULL, 4200, '1', 0, '0', '1', '2018-05-15 21:35:18', '2018-09-28 09:12:07', '0'); +INSERT INTO `sys_menu` VALUES (4300, '请假管理', '/activiti/leave', '/activiti/leave', 4000, 'icon-qingjia', 3, '0', '0', '2018-01-20 13:17:19', '2019-06-24 08:31:11', '0'); +INSERT INTO `sys_menu` VALUES (4301, '请假新增', 'act_leavebill_add', NULL, 4300, '1', 0, '0', '1', '2018-05-15 21:35:18', '2018-09-28 09:12:07', '0'); +INSERT INTO `sys_menu` VALUES (4302, '请假修改', 'act_leavebill_edit', NULL, 4300, '1', 1, '0', '1', '2018-05-15 21:35:18', '2018-09-28 09:12:09', '0'); +INSERT INTO `sys_menu` VALUES (4303, '请假删除', 'act_leavebill_del', NULL, 4300, '1', 2, '0', '1', '2018-05-15 21:35:18', '2018-09-28 09:12:14', '0'); +INSERT INTO `sys_menu` VALUES (4400, '待办任务', '/activiti/task', '/activiti/task', 4000, 'icon-renwu', 4, '0', '0', '2018-09-27 09:52:31', '2019-06-24 08:31:18', '0'); +INSERT INTO `sys_menu` VALUES (4401, '流程管理', 'act_task_manage', NULL, 4400, '1', 0, '0', '1', '2018-05-15 21:35:18', '2018-09-28 09:12:07', '0'); +INSERT INTO `sys_menu` VALUES (5000, '支付管理', NULL, '/pay', -1, 'icon-pay6zhifu', 4, '1', '0', '2019-05-30 15:28:03', '2019-06-20 16:13:23', '0'); +INSERT INTO `sys_menu` VALUES (5100, '渠道管理', NULL, '/pay/paychannel/index', 5000, 'icon-zhifuqudaoguanli', 1, '1', '0', '2019-05-30 15:32:17', '2019-05-30 19:43:27', '0'); +INSERT INTO `sys_menu` VALUES (5110, '增加渠道', 'pay_paychannel_add', NULL, 5100, NULL, 1, '0', '1', '2019-05-30 15:46:14', NULL, '0'); +INSERT INTO `sys_menu` VALUES (5120, '编辑渠道', 'pay_paychannel_edit', NULL, 5100, NULL, 1, '0', '1', '2019-05-30 15:46:35', NULL, '0'); +INSERT INTO `sys_menu` VALUES (5130, '删除渠道', 'pay_paychannel_del', NULL, 5100, NULL, 1, '0', '1', '2019-05-30 15:47:08', NULL, '0'); +INSERT INTO `sys_menu` VALUES (5200, '收银台', NULL, '/pay/cd/index', 5000, 'icon-shouyintai', 0, '1', '0', '2019-05-30 19:44:00', '2019-05-30 19:45:05', '0'); +INSERT INTO `sys_menu` VALUES (5300, '商品订单', '', '/pay/goods/index', 5000, 'icon-dingdan', 2, '0', '0', '2018-01-20 13:17:19', '2019-06-16 18:02:21', '0'); +INSERT INTO `sys_menu` VALUES (5310, '商品订单新增', 'generator_paygoodsorder_add', NULL, 5300, '1', 0, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (5320, '商品订单修改', 'generator_paygoodsorder_edit', NULL, 5300, '1', 1, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (5330, '商品订单删除', 'generator_paygoodsorder_del', NULL, 5300, '1', 2, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (5400, '支付订单', '', '/pay/orders/index', 5000, 'icon-zhifu', 3, '0', '0', '2018-01-20 13:17:19', '2019-06-16 18:02:06', '0'); +INSERT INTO `sys_menu` VALUES (5410, '支付订单新增', 'generator_paytradeorder_add', NULL, 5400, '1', 0, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (5420, '支付订单修改', 'generator_paytradeorder_edit', NULL, 5400, '1', 1, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (5430, '支付订单删除', 'generator_paytradeorder_del', NULL, 5400, '1', 2, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (5500, '回调记录', '', '/pay/notify/index', 5000, 'icon-huitiao', 4, '0', '0', '2018-01-20 13:17:19', '2019-06-16 18:01:49', '0'); +INSERT INTO `sys_menu` VALUES (5510, '记录新增', 'generator_paynotifyrecord_add', NULL, 5500, '1', 0, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (5520, '记录修改', 'generator_paynotifyrecord_edit', NULL, 5500, '1', 1, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (5530, '记录删除', 'generator_paynotifyrecord_del', NULL, 5500, '1', 2, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (6000, '微信管理', NULL, '/mp', -1, 'icon-gongzhonghao', 4, '0', '0', '2018-09-26 01:38:13', '2018-09-28 08:58:24', '0'); +INSERT INTO `sys_menu` VALUES (6100, '账号管理', '', '/mp/wxaccount/index', 6000, 'icon-weixincaidan', 8, '0', '0', '2018-01-20 13:17:19', '2019-06-24 15:24:36', '0'); +INSERT INTO `sys_menu` VALUES (6101, '公众号新增', 'mp_wxaccount_add', '', 6100, '1', 0, '0', '1', '2018-05-15 21:35:18', '2019-06-24 15:24:33', '0'); +INSERT INTO `sys_menu` VALUES (6102, '公众号修改', 'mp_wxaccount_edit', NULL, 6100, '1', 1, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (6103, '公众号删除', 'mp_wxaccount_del', NULL, 6100, '1', 2, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (6200, '粉丝管理', '', '/mp/wxaccountfans/index', 6000, 'icon-fensiguanli', 8, '0', '0', '2018-01-20 13:17:19', '2019-06-24 15:24:46', '0'); +INSERT INTO `sys_menu` VALUES (6201, '粉丝新增', 'mp_wxaccountfans_add', NULL, 6200, '1', 0, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (6202, '粉丝修改', 'mp_wxaccountfans_edit', NULL, 6200, '1', 1, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (6203, '粉丝删除', 'mp_wxaccountfans_del', NULL, 6200, '1', 2, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (6300, '消息管理', '', '/mp/wxfansmsg/index', 6000, 'icon-xiaoxiguanli', 8, '0', '0', '2018-01-20 13:17:19', '2019-06-24 15:24:57', '0'); +INSERT INTO `sys_menu` VALUES (6301, '消息新增', 'mp_wxfansmsg_add', NULL, 6300, '1', 0, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (6302, '消息修改', 'mp_wxfansmsg_edit', NULL, 6300, '1', 1, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (6303, '消息删除', 'mp_wxfansmsg_del', NULL, 6300, '1', 2, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (6304, '消息回复', 'mp_wxfansmsgres_add', NULL, 6300, '1', 3, '0', '1', '2018-05-15 21:35:18', '2018-07-29 13:38:59', '0'); +INSERT INTO `sys_menu` VALUES (6305, '回复删除', 'mp_wxfansmsgres_del', NULL, 6300, NULL, 1, '0', '1', '2019-03-28 22:53:49', NULL, '0'); +INSERT INTO `sys_menu` VALUES (6400, '菜单设置', NULL, '/mp/wxmenu/index', 6000, 'icon-anniu_weixincaidanlianjie', 6, '1', '0', '2019-03-29 15:20:12', '2019-06-24 15:25:07', '0'); +INSERT INTO `sys_menu` VALUES (6401, '保存', 'mp_wxmenu_add', NULL, 6400, NULL, 1, '0', '1', '2019-03-29 15:43:22', '2019-03-29 15:43:30', '0'); +INSERT INTO `sys_menu` VALUES (6402, '发布', 'mp_wxmenu_push', NULL, 6400, NULL, 1, '0', '1', '2019-03-29 15:43:54', NULL, '0'); +INSERT INTO `sys_menu` VALUES (6500, '运营数据', NULL, '/mp/wxstatistics/index', 6000, 'icon-zhexiantu', 7, '1', '0', '2019-04-14 00:15:35', '2019-06-24 15:25:15', '0'); +INSERT INTO `sys_menu` VALUES (9999, '系统官网', NULL, 'https://pig4cloud.com/#', -1, 'icon-guanwangfangwen', 9, '0', '0', '2019-01-17 17:05:19', '2019-01-17 17:29:06', '0'); +INSERT INTO `sys_menu` VALUES (10000, '文件管理', NULL, '/admin/file/index', 2000, 'icon-wenjianguanli', 6, '1', '0', '2019-06-25 12:44:46', NULL, '0'); +INSERT INTO `sys_menu` VALUES (10001, '删除文件', 'sys_file_del', NULL, 10000, NULL, 1, '0', '1', '2019-06-25 13:41:41', NULL, '0'); COMMIT; -- ---------------------------- --- Table structure for `sys_oauth_client_details` +-- Table structure for sys_oauth_client_details -- ---------------------------- DROP TABLE IF EXISTS `sys_oauth_client_details`; CREATE TABLE `sys_oauth_client_details` ( - `client_id` varchar(32) NOT NULL, - `resource_ids` varchar(256) DEFAULT NULL, - `client_secret` varchar(256) DEFAULT NULL, - `scope` varchar(256) DEFAULT NULL, - `authorized_grant_types` varchar(256) DEFAULT NULL, - `web_server_redirect_uri` varchar(256) DEFAULT NULL, - `authorities` varchar(256) DEFAULT NULL, - `access_token_validity` int(11) DEFAULT NULL, - `refresh_token_validity` int(11) DEFAULT NULL, - `additional_information` varchar(4096) DEFAULT NULL, - `autoapprove` varchar(256) DEFAULT NULL, - `tenant_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属租户', - PRIMARY KEY (`client_id`) + `client_id` varchar(32) NOT NULL, + `resource_ids` varchar(256) DEFAULT NULL, + `client_secret` varchar(256) DEFAULT NULL, + `scope` varchar(256) DEFAULT NULL, + `authorized_grant_types` varchar(256) DEFAULT NULL, + `web_server_redirect_uri` varchar(256) DEFAULT NULL, + `authorities` varchar(256) DEFAULT NULL, + `access_token_validity` int(11) DEFAULT NULL, + `refresh_token_validity` int(11) DEFAULT NULL, + `additional_information` varchar(4096) DEFAULT NULL, + `autoapprove` varchar(256) DEFAULT NULL, + `tenant_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属租户', + PRIMARY KEY (`client_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='终端信息表'; -- ---------------------------- --- Records of `sys_oauth_client_details` +-- Records of sys_oauth_client_details -- ---------------------------- BEGIN; -INSERT INTO `sys_oauth_client_details` VALUES ('app', null, 'app', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('daemon', null, 'daemon', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('gen', null, 'gen', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('mp', null, 'mp', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'), ('pig', null, 'pig', 'server', 'password,refresh_token,authorization_code,client_credentials', 'http://localhost:4040/sso1/login,http://localhost:4041/sso1/login', null, null, null, null, 'true', '1'), ('test', null, 'test', 'server', 'password,refresh_token', null, null, null, null, null, 'true', '1'); +INSERT INTO `sys_oauth_client_details` VALUES ('app', NULL, 'app', 'server', 'password,refresh_token', NULL, NULL, NULL, NULL, NULL, 'true', 1); +INSERT INTO `sys_oauth_client_details` VALUES ('daemon', NULL, 'daemon', 'server', 'password,refresh_token', NULL, NULL, NULL, NULL, NULL, 'true', 1); +INSERT INTO `sys_oauth_client_details` VALUES ('gen', NULL, 'gen', 'server', 'password,refresh_token', NULL, NULL, NULL, NULL, NULL, 'true', 1); +INSERT INTO `sys_oauth_client_details` VALUES ('mp', NULL, 'mp', 'server', 'password,refresh_token', NULL, NULL, NULL, NULL, NULL, 'true', 1); +INSERT INTO `sys_oauth_client_details` VALUES ('pig', NULL, 'pig', 'server', 'password,refresh_token,authorization_code,client_credentials', 'http://localhost:4040/sso1/login,http://localhost:4041/sso1/login', NULL, NULL, NULL, NULL, 'true', 1); +INSERT INTO `sys_oauth_client_details` VALUES ('test', NULL, 'test', 'server', 'password,refresh_token', NULL, NULL, NULL, NULL, NULL, 'true', 1); COMMIT; -- ---------------------------- --- Table structure for `sys_public_param` +-- Table structure for sys_public_param -- ---------------------------- DROP TABLE IF EXISTS `sys_public_param`; CREATE TABLE `sys_public_param` ( - `public_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号', - `public_name` varchar(128) NOT NULL COMMENT '公共参数名称', - `public_key` varchar(128) NOT NULL COMMENT '键,英文大写+下划线', - `public_value` varchar(128) DEFAULT NULL COMMENT '值', - `status` char(1) DEFAULT '1' COMMENT '状态:1有效;2无效;', - `validate_code` varchar(64) DEFAULT NULL COMMENT '公共参数编码', - `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', - `public_type` char(1) DEFAULT '0' COMMENT '配置类型:0-默认;1-检索;2-原文;3-报表;4-安全;5-文档;6-消息;9-其他', - `system` char(1) NOT NULL DEFAULT '0' COMMENT '是否是系统默认', - `del_flag` char(1) DEFAULT '0' COMMENT '删除状态:0-正常;1-已删除', - `tenant_id` int(11) DEFAULT NULL COMMENT '租户ID', - PRIMARY KEY (`public_id`) + `public_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号', + `public_name` varchar(128) NOT NULL COMMENT '公共参数名称', + `public_key` varchar(128) NOT NULL COMMENT '键,英文大写+下划线', + `public_value` varchar(128) DEFAULT NULL COMMENT '值', + `status` char(1) DEFAULT '1' COMMENT '状态:1有效;2无效;', + `validate_code` varchar(64) DEFAULT NULL COMMENT '公共参数编码', + `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', + `public_type` char(1) DEFAULT '0' COMMENT '配置类型:0-默认;1-检索;2-原文;3-报表;4-安全;5-文档;6-消息;9-其他', + `system` char(1) NOT NULL DEFAULT '0' COMMENT '是否是系统默认', + `del_flag` char(1) DEFAULT '0' COMMENT '删除状态:0-正常;1-已删除', + `tenant_id` int(11) DEFAULT NULL COMMENT '租户ID', + PRIMARY KEY (`public_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='公共参数配置表'; -- ---------------------------- --- Records of `sys_public_param` +-- Records of sys_public_param -- ---------------------------- BEGIN; -INSERT INTO `sys_public_param` VALUES ('1', '系统首页参数配置', 'INDEX_MSG_CONFIG', '运维电话: 18888888888', '0', 'zxc', '2019-04-28 18:24:38', '2019-05-16 21:41:28', '9', '0', '0', '1'), ('2', '版本信息说明', 'VERSION_INSTRUCTIONS', 'PIGX平台3.1版本', '0', null, '2019-04-28 18:24:38', '2019-05-16 21:41:29', '9', '0', '0', '1'), ('3', '办公安全支持文件类型', 'OFFICE_SAFETY_FILETYPE', 'PDF,CEB,CEBX,DOC,DOCX,XLS,XLSX,PPT,PPTX,WPS', '0', null, '2019-04-28 18:24:38', '2019-05-16 21:41:31', '4', '0', '0', '1'); +INSERT INTO `sys_public_param` VALUES (1, '系统首页参数配置', 'INDEX_MSG_CONFIG', '运维电话: 18888888888', '0', 'zxc', '2019-04-28 18:24:38', '2019-05-16 21:41:28', '9', '0', '0', 1); +INSERT INTO `sys_public_param` VALUES (2, '版本信息说明', 'VERSION_INSTRUCTIONS', 'PIGX平台3.1版本', '0', NULL, '2019-04-28 18:24:38', '2019-05-16 21:41:29', '9', '0', '0', 1); +INSERT INTO `sys_public_param` VALUES (3, '办公安全支持文件类型', 'OFFICE_SAFETY_FILETYPE', 'PDF,CEB,CEBX,DOC,DOCX,XLS,XLSX,PPT,PPTX,WPS', '0', NULL, '2019-04-28 18:24:38', '2019-05-16 21:41:31', '4', '0', '0', 1); COMMIT; -- ---------------------------- --- Table structure for `sys_role` +-- Table structure for sys_role -- ---------------------------- DROP TABLE IF EXISTS `sys_role`; CREATE TABLE `sys_role` ( - `role_id` int(11) NOT NULL AUTO_INCREMENT, - `role_name` varchar(64) COLLATE utf8mb4_bin NOT NULL, - `role_code` varchar(64) COLLATE utf8mb4_bin NOT NULL, - `role_desc` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, - `ds_type` char(1) COLLATE utf8mb4_bin NOT NULL DEFAULT '2' COMMENT '数据权限类型', - `ds_scope` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '数据权限范围', - `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, - `del_flag` char(1) COLLATE utf8mb4_bin DEFAULT '0' COMMENT '删除标识(0-正常,1-删除)', - `tenant_id` int(11) DEFAULT NULL, - PRIMARY KEY (`role_id`), - KEY `role_idx1_role_code` (`role_code`) -) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC COMMENT='系统角色表'; + `role_id` int(11) NOT NULL AUTO_INCREMENT, + `role_name` varchar(64) COLLATE utf8mb4_bin NOT NULL, + `role_code` varchar(64) COLLATE utf8mb4_bin NOT NULL, + `role_desc` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, + `ds_type` char(1) COLLATE utf8mb4_bin NOT NULL DEFAULT '2' COMMENT '数据权限类型', + `ds_scope` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '数据权限范围', + `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, + `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, + `del_flag` char(1) COLLATE utf8mb4_bin DEFAULT '0' COMMENT '删除标识(0-正常,1-删除)', + `tenant_id` int(11) DEFAULT NULL, + PRIMARY KEY (`role_id`), + KEY `role_idx1_role_code` (`role_code`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC COMMENT='系统角色表'; -- ---------------------------- --- Records of `sys_role` +-- Records of sys_role -- ---------------------------- BEGIN; -INSERT INTO `sys_role` VALUES ('1', '管理员', 'ROLE_ADMIN', '管理员', '0', '2', '2017-10-29 15:45:51', '2018-12-26 14:09:11', '0', '1'), ('3', '租户默认角色', 'ROLE_admin', null, '2', null, '2019-06-06 15:01:06', null, '0', '3'); +INSERT INTO `sys_role` VALUES (1, '管理员', 'ROLE_ADMIN', '管理员', '0', '2', '2017-10-29 15:45:51', '2018-12-26 14:09:11', '0', 1); +INSERT INTO `sys_role` VALUES (3, '租户默认角色', 'ROLE_admin', NULL, '2', NULL, '2019-06-06 15:01:06', NULL, '0', 3); COMMIT; -- ---------------------------- --- Table structure for `sys_role_menu` +-- Table structure for sys_role_menu -- ---------------------------- DROP TABLE IF EXISTS `sys_role_menu`; CREATE TABLE `sys_role_menu` ( - `role_id` int(11) NOT NULL COMMENT '角色ID', - `menu_id` int(11) NOT NULL COMMENT '菜单ID', - PRIMARY KEY (`role_id`,`menu_id`) + `role_id` int(11) NOT NULL COMMENT '角色ID', + `menu_id` int(11) NOT NULL COMMENT '菜单ID', + PRIMARY KEY (`role_id`,`menu_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='角色菜单表'; -- ---------------------------- --- Records of `sys_role_menu` +-- Records of sys_role_menu -- ---------------------------- BEGIN; -INSERT INTO `sys_role_menu` VALUES ('1', '1000'), ('1', '1100'), ('1', '1101'), ('1', '1102'), ('1', '1103'), ('1', '1200'), ('1', '1201'), ('1', '1202'), ('1', '1203'), ('1', '1300'), ('1', '1301'), ('1', '1302'), ('1', '1303'), ('1', '1304'), ('1', '1400'), ('1', '1401'), ('1', '1402'), ('1', '1403'), ('1', '1500'), ('1', '1501'), ('1', '1502'), ('1', '1503'), ('1', '2000'), ('1', '2100'), ('1', '2101'), ('1', '2200'), ('1', '2201'), ('1', '2202'), ('1', '2203'), ('1', '2210'), ('1', '2211'), ('1', '2212'), ('1', '2213'), ('1', '2300'), ('1', '2400'), ('1', '2401'), ('1', '2402'), ('1', '2403'), ('1', '2500'), ('1', '2501'), ('1', '2502'), ('1', '2503'), ('1', '2600'), ('1', '2601'), ('1', '2700'), ('1', '2800'), ('1', '2810'), ('1', '2820'), ('1', '2830'), ('1', '2840'), ('1', '2850'), ('1', '2860'), ('1', '3000'), ('1', '3100'), ('1', '3110'), ('1', '3200'), ('1', '3300'), ('1', '3400'), ('1', '3500'), ('1', '3600'), ('1', '3601'), ('1', '3620'), ('1', '3630'), ('1', '4000'), ('1', '4100'), ('1', '4101'), ('1', '4200'), ('1', '4201'), ('1', '4300'), ('1', '4301'), ('1', '4302'), ('1', '4303'), ('1', '4400'), ('1', '4401'), ('1', '5000'), ('1', '5100'), ('1', '5110'), ('1', '5120'), ('1', '5130'), ('1', '5200'), ('1', '5300'), ('1', '5310'), ('1', '5320'), ('1', '5330'), ('1', '5400'), ('1', '5410'), ('1', '5420'), ('1', '5430'), ('1', '5500'), ('1', '5510'), ('1', '5520'), ('1', '5530'), ('1', '6000'), ('1', '6100'), ('1', '6101'), ('1', '6102'), ('1', '6103'), ('1', '6200'), ('1', '6201'), ('1', '6202'), ('1', '6203'), ('1', '6300'), ('1', '6301'), ('1', '6302'), ('1', '6303'), ('1', '6304'), ('1', '6305'), ('1', '6400'), ('1', '6401'), ('1', '6402'), ('1', '6500'), ('1', '9999'), ('1', '10000'), ('1', '10001'), ('2', '1000'), ('2', '1100'), ('2', '1101'), ('2', '1102'), ('2', '1103'), ('2', '1200'), ('2', '1201'), ('2', '1202'), ('2', '1203'), ('2', '1300'), ('2', '1301'), ('2', '1302'), ('2', '1303'), ('2', '1304'), ('2', '1400'), ('2', '1401'), ('2', '1402'), ('2', '1403'), ('3', '1000'), ('3', '1100'), ('3', '1101'), ('3', '1102'), ('3', '1103'), ('3', '1200'), ('3', '1201'), ('3', '1202'), ('3', '1203'), ('3', '1300'), ('3', '1301'), ('3', '1302'), ('3', '1303'), ('3', '1304'), ('3', '1400'), ('3', '1401'), ('3', '1402'), ('3', '1403'), ('3', '1500'), ('3', '1501'), ('3', '1502'), ('3', '1503'), ('3', '2000'), ('3', '2100'), ('3', '2101'), ('3', '2200'), ('3', '2201'), ('3', '2202'), ('3', '2203'), ('3', '2210'), ('3', '2211'), ('3', '2212'), ('3', '2213'), ('3', '2300'), ('3', '2400'), ('3', '2401'), ('3', '2402'), ('3', '2403'), ('3', '2500'), ('3', '2501'), ('3', '2502'), ('3', '2503'), ('3', '2600'), ('3', '2601'), ('3', '2700'), ('3', '2800'), ('3', '2810'), ('3', '2820'), ('3', '2830'), ('3', '2840'), ('3', '2850'), ('3', '2860'), ('3', '3000'), ('3', '3100'), ('3', '3110'), ('3', '3200'), ('3', '3300'), ('3', '3400'), ('3', '3500'), ('3', '3600'), ('3', '3601'), ('3', '3620'), ('3', '3630'), ('3', '3631'), ('3', '4000'), ('3', '4100'), ('3', '4101'), ('3', '4200'), ('3', '4201'), ('3', '4300'), ('3', '4301'), ('3', '4302'), ('3', '4303'), ('3', '4400'), ('3', '4401'), ('3', '5000'), ('3', '5100'), ('3', '5110'), ('3', '5120'), ('3', '5130'), ('3', '5200'), ('3', '6000'), ('3', '6100'), ('3', '6101'), ('3', '6102'), ('3', '6103'), ('3', '6200'), ('3', '6201'), ('3', '6202'), ('3', '6203'), ('3', '6300'), ('3', '6301'), ('3', '6302'), ('3', '6303'), ('3', '6304'), ('3', '6305'), ('3', '6400'), ('3', '6401'), ('3', '6402'), ('3', '6500'), ('3', '9999'); +INSERT INTO `sys_role_menu` VALUES (1, 1000); +INSERT INTO `sys_role_menu` VALUES (1, 1100); +INSERT INTO `sys_role_menu` VALUES (1, 1101); +INSERT INTO `sys_role_menu` VALUES (1, 1102); +INSERT INTO `sys_role_menu` VALUES (1, 1103); +INSERT INTO `sys_role_menu` VALUES (1, 1200); +INSERT INTO `sys_role_menu` VALUES (1, 1201); +INSERT INTO `sys_role_menu` VALUES (1, 1202); +INSERT INTO `sys_role_menu` VALUES (1, 1203); +INSERT INTO `sys_role_menu` VALUES (1, 1300); +INSERT INTO `sys_role_menu` VALUES (1, 1301); +INSERT INTO `sys_role_menu` VALUES (1, 1302); +INSERT INTO `sys_role_menu` VALUES (1, 1303); +INSERT INTO `sys_role_menu` VALUES (1, 1304); +INSERT INTO `sys_role_menu` VALUES (1, 1400); +INSERT INTO `sys_role_menu` VALUES (1, 1401); +INSERT INTO `sys_role_menu` VALUES (1, 1402); +INSERT INTO `sys_role_menu` VALUES (1, 1403); +INSERT INTO `sys_role_menu` VALUES (1, 1500); +INSERT INTO `sys_role_menu` VALUES (1, 1501); +INSERT INTO `sys_role_menu` VALUES (1, 1502); +INSERT INTO `sys_role_menu` VALUES (1, 1503); +INSERT INTO `sys_role_menu` VALUES (1, 2000); +INSERT INTO `sys_role_menu` VALUES (1, 2100); +INSERT INTO `sys_role_menu` VALUES (1, 2101); +INSERT INTO `sys_role_menu` VALUES (1, 2200); +INSERT INTO `sys_role_menu` VALUES (1, 2201); +INSERT INTO `sys_role_menu` VALUES (1, 2202); +INSERT INTO `sys_role_menu` VALUES (1, 2203); +INSERT INTO `sys_role_menu` VALUES (1, 2210); +INSERT INTO `sys_role_menu` VALUES (1, 2211); +INSERT INTO `sys_role_menu` VALUES (1, 2212); +INSERT INTO `sys_role_menu` VALUES (1, 2213); +INSERT INTO `sys_role_menu` VALUES (1, 2300); +INSERT INTO `sys_role_menu` VALUES (1, 2400); +INSERT INTO `sys_role_menu` VALUES (1, 2401); +INSERT INTO `sys_role_menu` VALUES (1, 2402); +INSERT INTO `sys_role_menu` VALUES (1, 2403); +INSERT INTO `sys_role_menu` VALUES (1, 2500); +INSERT INTO `sys_role_menu` VALUES (1, 2501); +INSERT INTO `sys_role_menu` VALUES (1, 2502); +INSERT INTO `sys_role_menu` VALUES (1, 2503); +INSERT INTO `sys_role_menu` VALUES (1, 2600); +INSERT INTO `sys_role_menu` VALUES (1, 2601); +INSERT INTO `sys_role_menu` VALUES (1, 2700); +INSERT INTO `sys_role_menu` VALUES (1, 2800); +INSERT INTO `sys_role_menu` VALUES (1, 2810); +INSERT INTO `sys_role_menu` VALUES (1, 2820); +INSERT INTO `sys_role_menu` VALUES (1, 2830); +INSERT INTO `sys_role_menu` VALUES (1, 2840); +INSERT INTO `sys_role_menu` VALUES (1, 2850); +INSERT INTO `sys_role_menu` VALUES (1, 2860); +INSERT INTO `sys_role_menu` VALUES (1, 3000); +INSERT INTO `sys_role_menu` VALUES (1, 3100); +INSERT INTO `sys_role_menu` VALUES (1, 3110); +INSERT INTO `sys_role_menu` VALUES (1, 3200); +INSERT INTO `sys_role_menu` VALUES (1, 3300); +INSERT INTO `sys_role_menu` VALUES (1, 3400); +INSERT INTO `sys_role_menu` VALUES (1, 3500); +INSERT INTO `sys_role_menu` VALUES (1, 3600); +INSERT INTO `sys_role_menu` VALUES (1, 3601); +INSERT INTO `sys_role_menu` VALUES (1, 3620); +INSERT INTO `sys_role_menu` VALUES (1, 3630); +INSERT INTO `sys_role_menu` VALUES (1, 4000); +INSERT INTO `sys_role_menu` VALUES (1, 4100); +INSERT INTO `sys_role_menu` VALUES (1, 4101); +INSERT INTO `sys_role_menu` VALUES (1, 4200); +INSERT INTO `sys_role_menu` VALUES (1, 4201); +INSERT INTO `sys_role_menu` VALUES (1, 4300); +INSERT INTO `sys_role_menu` VALUES (1, 4301); +INSERT INTO `sys_role_menu` VALUES (1, 4302); +INSERT INTO `sys_role_menu` VALUES (1, 4303); +INSERT INTO `sys_role_menu` VALUES (1, 4400); +INSERT INTO `sys_role_menu` VALUES (1, 4401); +INSERT INTO `sys_role_menu` VALUES (1, 5000); +INSERT INTO `sys_role_menu` VALUES (1, 5100); +INSERT INTO `sys_role_menu` VALUES (1, 5110); +INSERT INTO `sys_role_menu` VALUES (1, 5120); +INSERT INTO `sys_role_menu` VALUES (1, 5130); +INSERT INTO `sys_role_menu` VALUES (1, 5200); +INSERT INTO `sys_role_menu` VALUES (1, 5300); +INSERT INTO `sys_role_menu` VALUES (1, 5310); +INSERT INTO `sys_role_menu` VALUES (1, 5320); +INSERT INTO `sys_role_menu` VALUES (1, 5330); +INSERT INTO `sys_role_menu` VALUES (1, 5400); +INSERT INTO `sys_role_menu` VALUES (1, 5410); +INSERT INTO `sys_role_menu` VALUES (1, 5420); +INSERT INTO `sys_role_menu` VALUES (1, 5430); +INSERT INTO `sys_role_menu` VALUES (1, 5500); +INSERT INTO `sys_role_menu` VALUES (1, 5510); +INSERT INTO `sys_role_menu` VALUES (1, 5520); +INSERT INTO `sys_role_menu` VALUES (1, 5530); +INSERT INTO `sys_role_menu` VALUES (1, 6000); +INSERT INTO `sys_role_menu` VALUES (1, 6100); +INSERT INTO `sys_role_menu` VALUES (1, 6101); +INSERT INTO `sys_role_menu` VALUES (1, 6102); +INSERT INTO `sys_role_menu` VALUES (1, 6103); +INSERT INTO `sys_role_menu` VALUES (1, 6200); +INSERT INTO `sys_role_menu` VALUES (1, 6201); +INSERT INTO `sys_role_menu` VALUES (1, 6202); +INSERT INTO `sys_role_menu` VALUES (1, 6203); +INSERT INTO `sys_role_menu` VALUES (1, 6300); +INSERT INTO `sys_role_menu` VALUES (1, 6301); +INSERT INTO `sys_role_menu` VALUES (1, 6302); +INSERT INTO `sys_role_menu` VALUES (1, 6303); +INSERT INTO `sys_role_menu` VALUES (1, 6304); +INSERT INTO `sys_role_menu` VALUES (1, 6305); +INSERT INTO `sys_role_menu` VALUES (1, 6400); +INSERT INTO `sys_role_menu` VALUES (1, 6401); +INSERT INTO `sys_role_menu` VALUES (1, 6402); +INSERT INTO `sys_role_menu` VALUES (1, 6500); +INSERT INTO `sys_role_menu` VALUES (1, 9999); +INSERT INTO `sys_role_menu` VALUES (1, 10000); +INSERT INTO `sys_role_menu` VALUES (1, 10001); +INSERT INTO `sys_role_menu` VALUES (2, 1000); +INSERT INTO `sys_role_menu` VALUES (2, 1100); +INSERT INTO `sys_role_menu` VALUES (2, 1101); +INSERT INTO `sys_role_menu` VALUES (2, 1102); +INSERT INTO `sys_role_menu` VALUES (2, 1103); +INSERT INTO `sys_role_menu` VALUES (2, 1200); +INSERT INTO `sys_role_menu` VALUES (2, 1201); +INSERT INTO `sys_role_menu` VALUES (2, 1202); +INSERT INTO `sys_role_menu` VALUES (2, 1203); +INSERT INTO `sys_role_menu` VALUES (2, 1300); +INSERT INTO `sys_role_menu` VALUES (2, 1301); +INSERT INTO `sys_role_menu` VALUES (2, 1302); +INSERT INTO `sys_role_menu` VALUES (2, 1303); +INSERT INTO `sys_role_menu` VALUES (2, 1304); +INSERT INTO `sys_role_menu` VALUES (2, 1400); +INSERT INTO `sys_role_menu` VALUES (2, 1401); +INSERT INTO `sys_role_menu` VALUES (2, 1402); +INSERT INTO `sys_role_menu` VALUES (2, 1403); +INSERT INTO `sys_role_menu` VALUES (3, 1000); +INSERT INTO `sys_role_menu` VALUES (3, 1100); +INSERT INTO `sys_role_menu` VALUES (3, 1101); +INSERT INTO `sys_role_menu` VALUES (3, 1102); +INSERT INTO `sys_role_menu` VALUES (3, 1103); +INSERT INTO `sys_role_menu` VALUES (3, 1200); +INSERT INTO `sys_role_menu` VALUES (3, 1201); +INSERT INTO `sys_role_menu` VALUES (3, 1202); +INSERT INTO `sys_role_menu` VALUES (3, 1203); +INSERT INTO `sys_role_menu` VALUES (3, 1300); +INSERT INTO `sys_role_menu` VALUES (3, 1301); +INSERT INTO `sys_role_menu` VALUES (3, 1302); +INSERT INTO `sys_role_menu` VALUES (3, 1303); +INSERT INTO `sys_role_menu` VALUES (3, 1304); +INSERT INTO `sys_role_menu` VALUES (3, 1400); +INSERT INTO `sys_role_menu` VALUES (3, 1401); +INSERT INTO `sys_role_menu` VALUES (3, 1402); +INSERT INTO `sys_role_menu` VALUES (3, 1403); +INSERT INTO `sys_role_menu` VALUES (3, 1500); +INSERT INTO `sys_role_menu` VALUES (3, 1501); +INSERT INTO `sys_role_menu` VALUES (3, 1502); +INSERT INTO `sys_role_menu` VALUES (3, 1503); +INSERT INTO `sys_role_menu` VALUES (3, 2000); +INSERT INTO `sys_role_menu` VALUES (3, 2100); +INSERT INTO `sys_role_menu` VALUES (3, 2101); +INSERT INTO `sys_role_menu` VALUES (3, 2200); +INSERT INTO `sys_role_menu` VALUES (3, 2201); +INSERT INTO `sys_role_menu` VALUES (3, 2202); +INSERT INTO `sys_role_menu` VALUES (3, 2203); +INSERT INTO `sys_role_menu` VALUES (3, 2210); +INSERT INTO `sys_role_menu` VALUES (3, 2211); +INSERT INTO `sys_role_menu` VALUES (3, 2212); +INSERT INTO `sys_role_menu` VALUES (3, 2213); +INSERT INTO `sys_role_menu` VALUES (3, 2300); +INSERT INTO `sys_role_menu` VALUES (3, 2400); +INSERT INTO `sys_role_menu` VALUES (3, 2401); +INSERT INTO `sys_role_menu` VALUES (3, 2402); +INSERT INTO `sys_role_menu` VALUES (3, 2403); +INSERT INTO `sys_role_menu` VALUES (3, 2500); +INSERT INTO `sys_role_menu` VALUES (3, 2501); +INSERT INTO `sys_role_menu` VALUES (3, 2502); +INSERT INTO `sys_role_menu` VALUES (3, 2503); +INSERT INTO `sys_role_menu` VALUES (3, 2600); +INSERT INTO `sys_role_menu` VALUES (3, 2601); +INSERT INTO `sys_role_menu` VALUES (3, 2700); +INSERT INTO `sys_role_menu` VALUES (3, 2800); +INSERT INTO `sys_role_menu` VALUES (3, 2810); +INSERT INTO `sys_role_menu` VALUES (3, 2820); +INSERT INTO `sys_role_menu` VALUES (3, 2830); +INSERT INTO `sys_role_menu` VALUES (3, 2840); +INSERT INTO `sys_role_menu` VALUES (3, 2850); +INSERT INTO `sys_role_menu` VALUES (3, 2860); +INSERT INTO `sys_role_menu` VALUES (3, 3000); +INSERT INTO `sys_role_menu` VALUES (3, 3100); +INSERT INTO `sys_role_menu` VALUES (3, 3110); +INSERT INTO `sys_role_menu` VALUES (3, 3200); +INSERT INTO `sys_role_menu` VALUES (3, 3300); +INSERT INTO `sys_role_menu` VALUES (3, 3400); +INSERT INTO `sys_role_menu` VALUES (3, 3500); +INSERT INTO `sys_role_menu` VALUES (3, 3600); +INSERT INTO `sys_role_menu` VALUES (3, 3601); +INSERT INTO `sys_role_menu` VALUES (3, 3620); +INSERT INTO `sys_role_menu` VALUES (3, 3630); +INSERT INTO `sys_role_menu` VALUES (3, 3631); +INSERT INTO `sys_role_menu` VALUES (3, 4000); +INSERT INTO `sys_role_menu` VALUES (3, 4100); +INSERT INTO `sys_role_menu` VALUES (3, 4101); +INSERT INTO `sys_role_menu` VALUES (3, 4200); +INSERT INTO `sys_role_menu` VALUES (3, 4201); +INSERT INTO `sys_role_menu` VALUES (3, 4300); +INSERT INTO `sys_role_menu` VALUES (3, 4301); +INSERT INTO `sys_role_menu` VALUES (3, 4302); +INSERT INTO `sys_role_menu` VALUES (3, 4303); +INSERT INTO `sys_role_menu` VALUES (3, 4400); +INSERT INTO `sys_role_menu` VALUES (3, 4401); +INSERT INTO `sys_role_menu` VALUES (3, 5000); +INSERT INTO `sys_role_menu` VALUES (3, 5100); +INSERT INTO `sys_role_menu` VALUES (3, 5110); +INSERT INTO `sys_role_menu` VALUES (3, 5120); +INSERT INTO `sys_role_menu` VALUES (3, 5130); +INSERT INTO `sys_role_menu` VALUES (3, 5200); +INSERT INTO `sys_role_menu` VALUES (3, 6000); +INSERT INTO `sys_role_menu` VALUES (3, 6100); +INSERT INTO `sys_role_menu` VALUES (3, 6101); +INSERT INTO `sys_role_menu` VALUES (3, 6102); +INSERT INTO `sys_role_menu` VALUES (3, 6103); +INSERT INTO `sys_role_menu` VALUES (3, 6200); +INSERT INTO `sys_role_menu` VALUES (3, 6201); +INSERT INTO `sys_role_menu` VALUES (3, 6202); +INSERT INTO `sys_role_menu` VALUES (3, 6203); +INSERT INTO `sys_role_menu` VALUES (3, 6300); +INSERT INTO `sys_role_menu` VALUES (3, 6301); +INSERT INTO `sys_role_menu` VALUES (3, 6302); +INSERT INTO `sys_role_menu` VALUES (3, 6303); +INSERT INTO `sys_role_menu` VALUES (3, 6304); +INSERT INTO `sys_role_menu` VALUES (3, 6305); +INSERT INTO `sys_role_menu` VALUES (3, 6400); +INSERT INTO `sys_role_menu` VALUES (3, 6401); +INSERT INTO `sys_role_menu` VALUES (3, 6402); +INSERT INTO `sys_role_menu` VALUES (3, 6500); +INSERT INTO `sys_role_menu` VALUES (3, 9999); COMMIT; -- ---------------------------- --- Table structure for `sys_route_conf` +-- Table structure for sys_route_conf -- ---------------------------- DROP TABLE IF EXISTS `sys_route_conf`; CREATE TABLE `sys_route_conf` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', - `route_name` varchar(30) DEFAULT NULL COMMENT '路由名称', - `route_id` varchar(30) NOT NULL DEFAULT '' COMMENT '路由ID', - `predicates` json DEFAULT NULL COMMENT '断言', - `filters` json DEFAULT NULL COMMENT '过滤器', - `uri` varchar(50) DEFAULT NULL, - `order` int(2) DEFAULT '0' COMMENT '排序', - `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', - `del_flag` char(1) DEFAULT '0' COMMENT '删除标记', - PRIMARY KEY (`id`) + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', + `route_name` varchar(30) DEFAULT NULL COMMENT '路由名称', + `route_id` varchar(30) NOT NULL DEFAULT '' COMMENT '路由ID', + `predicates` json DEFAULT NULL COMMENT '断言', + `filters` json DEFAULT NULL COMMENT '过滤器', + `uri` varchar(50) DEFAULT NULL, + `order` int(2) DEFAULT '0' COMMENT '排序', + `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', + `del_flag` char(1) DEFAULT '0' COMMENT '删除标记', + PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='路由配置表'; -- ---------------------------- --- Records of `sys_route_conf` +-- Records of sys_route_conf -- ---------------------------- BEGIN; -INSERT INTO `sys_route_conf` VALUES ('1', '工作流管理模块', 'pigx-activiti', '[{\"args\": {\"_genkey_0\": \"/act/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-activiti', '0', '2019-05-09 00:23:08', '2019-05-30 15:35:18', '1'), ('2', '认证中心', 'pigx-auth', '[{\"args\": {\"_genkey_0\": \"/auth/**\"}, \"name\": \"Path\"}]', '[{\"args\": {}, \"name\": \"ValidateCodeGatewayFilter\"}, {\"args\": {}, \"name\": \"PasswordDecoderFilter\"}]', 'lb://pigx-auth', '0', '2019-05-09 00:23:08', '2019-05-30 15:35:18', '1'), ('3', '代码生成模块', 'pigx-codegen', '[{\"args\": {\"_genkey_0\": \"/gen/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-codegen', '0', '2019-05-09 00:23:08', '2019-05-30 15:35:18', '1'), ('4', 'elastic-job定时任务模块', 'pigx-daemon-elastic-job', '[{\"args\": {\"_genkey_0\": \"/daemon/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-daemon-elastic-job', '0', '2019-05-09 00:23:08', '2019-05-30 15:35:18', '1'), ('5', 'quartz定时任务模块', 'pigx-daemon-quartz', '[{\"args\": {\"_genkey_0\": \"/job/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-daemon-quartz', '0', '2019-05-09 00:23:08', '2019-05-30 15:35:18', '1'), ('6', '分布式事务模块', 'pigx-tx-manager', '[{\"args\": {\"_genkey_0\": \"/tx/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-tx-manager', '0', '2019-05-09 00:23:08', '2019-05-30 15:35:18', '1'), ('7', '通用权限模块', 'pigx-upms-biz', '[{\"args\": {\"_genkey_0\": \"/admin/**\"}, \"name\": \"Path\"}]', '[{\"args\": {\"key-resolver\": \"#{@remoteAddrKeyResolver}\", \"redis-rate-limiter.burstCapacity\": \"20\", \"redis-rate-limiter.replenishRate\": \"10\"}, \"name\": \"RequestRateLimiter\"}, {\"args\": {\"name\": \"default\", \"fallbackUri\": \"forward:/fallback\"}, \"name\": \"Hystrix\"}]', 'lb://pigx-upms-biz', '0', '2019-05-09 00:23:08', '2019-05-30 15:35:18', '1'), ('8', '工作流长链接支持1', 'pigx-activiti-ws-1', '[{\"args\": {\"_genkey_0\": \"/act/ws/info/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-activiti', '0', '2019-05-09 00:23:08', '2019-05-30 15:35:18', '1'), ('9', '工作流长链接支持2', 'pigx-activiti-ws-2', '[{\"args\": {\"_genkey_0\": \"/act/ws/**\"}, \"name\": \"Path\"}]', '[]', 'lb:ws://pigx-activiti', '100', '2019-05-09 00:23:08', '2019-05-30 15:35:18', '1'), ('10', '微信公众号管理', 'pigx-mp-manager', '[{\"args\": {\"_genkey_0\": \"/mp/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-mp-manager', '0', '2019-05-09 00:23:08', '2019-05-30 15:35:18', '1'), ('11', '监控管理', 'pigx-monitor', '[{\"args\": {\"_genkey_0\": \"/monitor/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-monitor', '0', '2019-05-09 00:23:08', '2019-05-30 15:35:18', '1'), ('12', '工作流管理模块', 'pigx-activiti', '[{\"args\": {\"_genkey_0\": \"/act/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-activiti', '0', '2019-05-30 15:35:18', null, '0'), ('13', '认证中心', 'pigx-auth', '[{\"args\": {\"_genkey_0\": \"/auth/**\"}, \"name\": \"Path\"}]', '[{\"args\": {}, \"name\": \"ValidateCodeGatewayFilter\"}, {\"args\": {}, \"name\": \"PasswordDecoderFilter\"}]', 'lb://pigx-auth', '0', '2019-05-30 15:35:18', null, '0'), ('14', '代码生成模块', 'pigx-codegen', '[{\"args\": {\"_genkey_0\": \"/gen/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-codegen', '0', '2019-05-30 15:35:18', null, '0'), ('15', 'elastic-job定时任务模块', 'pigx-daemon-elastic-job', '[{\"args\": {\"_genkey_0\": \"/daemon/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-daemon-elastic-job', '0', '2019-05-30 15:35:18', null, '0'), ('16', 'quartz定时任务模块', 'pigx-daemon-quartz', '[{\"args\": {\"_genkey_0\": \"/job/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-daemon-quartz', '0', '2019-05-30 15:35:18', null, '0'), ('17', '分布式事务模块', 'pigx-tx-manager', '[{\"args\": {\"_genkey_0\": \"/tx/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-tx-manager', '0', '2019-05-30 15:35:18', null, '0'), ('18', '通用权限模块', 'pigx-upms-biz', '[{\"args\": {\"_genkey_0\": \"/admin/**\"}, \"name\": \"Path\"}]', '[{\"args\": {\"key-resolver\": \"#{@remoteAddrKeyResolver}\", \"redis-rate-limiter.burstCapacity\": \"20\", \"redis-rate-limiter.replenishRate\": \"10\"}, \"name\": \"RequestRateLimiter\"}, {\"args\": {\"name\": \"default\", \"fallbackUri\": \"forward:/fallback\"}, \"name\": \"Hystrix\"}]', 'lb://pigx-upms-biz', '0', '2019-05-30 15:35:18', null, '0'), ('19', '工作流长链接支持1', 'pigx-activiti-ws-1', '[{\"args\": {\"_genkey_0\": \"/act/ws/info/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-activiti', '0', '2019-05-30 15:35:18', null, '0'), ('20', '工作流长链接支持2', 'pigx-activiti-ws-2', '[{\"args\": {\"_genkey_0\": \"/act/ws/**\"}, \"name\": \"Path\"}]', '[]', 'lb:ws://pigx-activiti', '100', '2019-05-30 15:35:18', null, '0'), ('21', '微信公众号管理', 'pigx-mp-manager', '[{\"args\": {\"_genkey_0\": \"/mp/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-mp-manager', '0', '2019-05-30 15:35:18', null, '0'), ('22', '支付管理', 'pigx-pay', '[{\"args\": {\"_genkey_0\": \"/pay/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-pay', '0', '2019-05-30 15:35:18', null, '0'), ('23', '监控管理', 'pigx-monitor', '[{\"args\": {\"_genkey_0\": \"/monitor/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-monitor', '0', '2019-05-30 15:35:18', null, '0'); +INSERT INTO `sys_route_conf` VALUES (1, '工作流管理模块', 'pigx-activiti', '[{\"args\": {\"_genkey_0\": \"/act/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-activiti', 0, '2019-05-30 15:35:18', '2019-07-20 14:53:11', '0'); +INSERT INTO `sys_route_conf` VALUES (2, '认证中心', 'pigx-auth', '[{\"args\": {\"_genkey_0\": \"/auth/**\"}, \"name\": \"Path\"}]', '[{\"args\": {}, \"name\": \"ValidateCodeGatewayFilter\"}, {\"args\": {}, \"name\": \"PasswordDecoderFilter\"}]', 'lb://pigx-auth', 0, '2019-05-30 15:35:18', '2019-07-20 14:53:13', '0'); +INSERT INTO `sys_route_conf` VALUES (3, '代码生成模块', 'pigx-codegen', '[{\"args\": {\"_genkey_0\": \"/gen/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-codegen', 0, '2019-05-30 15:35:18', '2019-07-20 14:53:15', '0'); +INSERT INTO `sys_route_conf` VALUES (4, 'elastic-job定时任务模块', 'pigx-daemon-elastic-job', '[{\"args\": {\"_genkey_0\": \"/daemon/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-daemon-elastic-job', 0, '2019-05-30 15:35:18', '2019-07-20 14:53:16', '0'); +INSERT INTO `sys_route_conf` VALUES (5, 'quartz定时任务模块', 'pigx-daemon-quartz', '[{\"args\": {\"_genkey_0\": \"/job/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-daemon-quartz', 0, '2019-05-30 15:35:18', '2019-07-20 14:53:18', '0'); +INSERT INTO `sys_route_conf` VALUES (6, '分布式事务模块', 'pigx-tx-manager', '[{\"args\": {\"_genkey_0\": \"/tx/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-tx-manager', 0, '2019-05-30 15:35:18', '2019-07-20 14:53:19', '0'); +INSERT INTO `sys_route_conf` VALUES (7, '通用权限模块', 'pigx-upms-biz', '[{\"args\": {\"_genkey_0\": \"/admin/**\"}, \"name\": \"Path\"}]', '[{\"args\": {\"key-resolver\": \"#{@remoteAddrKeyResolver}\", \"redis-rate-limiter.burstCapacity\": \"20\", \"redis-rate-limiter.replenishRate\": \"10\"}, \"name\": \"RequestRateLimiter\"}, {\"args\": {\"name\": \"default\", \"fallbackUri\": \"forward:/fallback\"}, \"name\": \"Hystrix\"}]', 'lb://pigx-upms-biz', 0, '2019-05-30 15:35:18', '2019-07-20 14:53:21', '0'); +INSERT INTO `sys_route_conf` VALUES (8, '工作流长链接支持1', 'pigx-activiti-ws-1', '[{\"args\": {\"_genkey_0\": \"/act/ws/info/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-activiti', 0, '2019-05-30 15:35:18', '2019-07-20 14:53:23', '0'); +INSERT INTO `sys_route_conf` VALUES (9, '工作流长链接支持2', 'pigx-activiti-ws-2', '[{\"args\": {\"_genkey_0\": \"/act/ws/**\"}, \"name\": \"Path\"}]', '[]', 'lb:ws://pigx-activiti', 100, '2019-05-30 15:35:18', '2019-07-20 14:53:28', '0'); +INSERT INTO `sys_route_conf` VALUES (10, '微信公众号管理', 'pigx-mp-manager', '[{\"args\": {\"_genkey_0\": \"/mp/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-mp-manager', 0, '2019-05-30 15:35:18', '2019-07-20 14:53:31', '0'); +INSERT INTO `sys_route_conf` VALUES (11, '支付管理', 'pigx-pay', '[{\"args\": {\"_genkey_0\": \"/pay/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-pay', 0, '2019-05-30 15:35:18', '2019-07-20 14:53:33', '0'); +INSERT INTO `sys_route_conf` VALUES (12, '监控管理', 'pigx-monitor', '[{\"args\": {\"_genkey_0\": \"/monitor/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-monitor', 0, '2019-05-30 15:35:18', '2019-07-20 14:53:36', '0'); COMMIT; -- ---------------------------- --- Table structure for `sys_social_details` +-- Table structure for sys_social_details -- ---------------------------- DROP TABLE IF EXISTS `sys_social_details`; CREATE TABLE `sys_social_details` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主鍵', - `type` varchar(16) NOT NULL COMMENT '类型', - `remark` varchar(64) DEFAULT NULL COMMENT '描述', - `app_id` varchar(64) NOT NULL COMMENT 'appid', - `app_secret` varchar(64) NOT NULL COMMENT 'app_secret', - `redirect_url` varchar(128) DEFAULT NULL COMMENT '回调地址', - `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', - `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标记', - `tenant_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属租户', - PRIMARY KEY (`id`) + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主鍵', + `type` varchar(16) NOT NULL COMMENT '类型', + `remark` varchar(64) DEFAULT NULL COMMENT '描述', + `app_id` varchar(64) NOT NULL COMMENT 'appid', + `app_secret` varchar(64) NOT NULL COMMENT 'app_secret', + `redirect_url` varchar(128) DEFAULT NULL COMMENT '回调地址', + `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + `del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标记', + `tenant_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属租户', + PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='系统社交登录账号表'; -- ---------------------------- --- Records of `sys_social_details` +-- Records of sys_social_details -- ---------------------------- BEGIN; -INSERT INTO `sys_social_details` VALUES ('1', 'WX', '微信互联参数', 'wxd1678d3f83b1d83a', '6ddb043f94da5d2172926abe8533504f', 'daoweicloud.com', '2018-08-16 14:24:25', '2019-03-02 09:43:13', '0', '1'), ('2', 'GITEE', '码云登录', '8fc54e0e76e7842cf767c3ae3b9fdc48c03cefed27aa565ff7b2a39d142d9892', 'c544469ce78a67d9fcf9b28cd9f310b73f5cbc46a1b993e0802ad61517deb221', 'http://gitee.huaxiadaowei.com/#/authredirect', '2019-06-28 09:59:55', '2019-06-28 09:59:55', '0', '1'), ('3', 'OSC', '开源中国', 'neIIqlwGsjsfsA6uxNqD', 'aOPhRuOOJNXV1x7JrTJ9qIyRCAPXoO0l', 'http://gitee.huaxiadaowei.com/#/authredirect', '2019-06-28 10:05:37', '2019-06-28 10:05:37', '0', '1'); +INSERT INTO `sys_social_details` VALUES (1, 'WX', '微信互联参数', 'wxd1678d3f83b1d83a', '6ddb043f94da5d2172926abe8533504f', 'daoweicloud.com', '2018-08-16 14:24:25', '2019-03-02 09:43:13', '0', 1); +INSERT INTO `sys_social_details` VALUES (2, 'GITEE', '码云登录', '8fc54e0e76e7842cf767c3ae3b9fdc48c03cefed27aa565ff7b2a39d142d9892', 'c544469ce78a67d9fcf9b28cd9f310b73f5cbc46a1b993e0802ad61517deb221', 'http://gitee.huaxiadaowei.com/#/authredirect', '2019-06-28 09:59:55', '2019-06-28 09:59:55', '0', 1); +INSERT INTO `sys_social_details` VALUES (3, 'OSC', '开源中国', 'neIIqlwGsjsfsA6uxNqD', 'aOPhRuOOJNXV1x7JrTJ9qIyRCAPXoO0l', 'http://gitee.huaxiadaowei.com/#/authredirect', '2019-06-28 10:05:37', '2019-06-28 10:05:37', '0', 1); COMMIT; -- ---------------------------- --- Table structure for `sys_tenant` +-- Table structure for sys_tenant -- ---------------------------- DROP TABLE IF EXISTS `sys_tenant`; CREATE TABLE `sys_tenant` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '租户id', - `name` varchar(255) DEFAULT NULL COMMENT '租户名称', - `code` varchar(64) DEFAULT NULL COMMENT '租户编号', - `start_time` timestamp NULL DEFAULT NULL COMMENT '开始时间', - `end_time` timestamp NULL DEFAULT NULL COMMENT '结束时间', - `status` char(1) NOT NULL DEFAULT '0' COMMENT '0正常 9-冻结', - `del_flag` char(1) DEFAULT '0' COMMENT '删除标记', - `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建', - `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', - PRIMARY KEY (`id`) + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '租户id', + `name` varchar(255) DEFAULT NULL COMMENT '租户名称', + `code` varchar(64) DEFAULT NULL COMMENT '租户编号', + `start_time` timestamp NULL DEFAULT NULL COMMENT '开始时间', + `end_time` timestamp NULL DEFAULT NULL COMMENT '结束时间', + `status` char(1) NOT NULL DEFAULT '0' COMMENT '0正常 9-冻结', + `del_flag` char(1) DEFAULT '0' COMMENT '删除标记', + `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建', + `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='租户表'; -- ---------------------------- --- Records of `sys_tenant` +-- Records of sys_tenant -- ---------------------------- BEGIN; -INSERT INTO `sys_tenant` VALUES ('1', '北京分公司', '1', '2019-05-15 00:00:00', '2020-05-15 00:00:00', '0', '0', '2019-05-15 15:44:57', '2019-05-18 14:47:30'), ('3', '上海分公司', '0527', '2019-06-06 00:00:00', '2019-06-27 00:00:00', '0', '0', '2019-06-06 15:01:06', '2019-06-06 15:01:06'); +INSERT INTO `sys_tenant` VALUES (1, '北京分公司', '1', '2019-05-15 00:00:00', '2020-05-15 00:00:00', '0', '0', '2019-05-15 15:44:57', '2019-05-18 14:47:30'); +INSERT INTO `sys_tenant` VALUES (3, '上海分公司', '0527', '2019-06-06 00:00:00', '2019-06-27 00:00:00', '0', '0', '2019-06-06 15:01:06', '2019-06-06 15:01:06'); COMMIT; -- ---------------------------- --- Table structure for `sys_user` +-- Table structure for sys_user -- ---------------------------- DROP TABLE IF EXISTS `sys_user`; CREATE TABLE `sys_user` ( - `user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', - `username` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '用户名', - `password` varchar(255) COLLATE utf8mb4_bin NOT NULL, - `salt` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '随机盐', - `phone` varchar(20) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '简介', - `avatar` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '头像', - `dept_id` int(11) DEFAULT NULL COMMENT '部门ID', - `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', - `lock_flag` char(1) COLLATE utf8mb4_bin DEFAULT '0' COMMENT '0-正常,9-锁定', - `del_flag` char(1) COLLATE utf8mb4_bin DEFAULT '0' COMMENT '0-正常,1-删除', - `wx_openid` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '微信openid', - `qq_openid` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'QQ openid', - `gitee_login` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL, - `osc_id` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL, - `tenant_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属租户', - PRIMARY KEY (`user_id`), - KEY `user_wx_openid` (`wx_openid`), - KEY `user_qq_openid` (`qq_openid`), - KEY `user_idx1_username` (`username`) + `user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `username` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '用户名', + `password` varchar(255) COLLATE utf8mb4_bin NOT NULL, + `salt` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '随机盐', + `phone` varchar(20) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '简介', + `avatar` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '头像', + `dept_id` int(11) DEFAULT NULL COMMENT '部门ID', + `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', + `lock_flag` char(1) COLLATE utf8mb4_bin DEFAULT '0' COMMENT '0-正常,9-锁定', + `del_flag` char(1) COLLATE utf8mb4_bin DEFAULT '0' COMMENT '0-正常,1-删除', + `wx_openid` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '微信openid', + `qq_openid` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'QQ openid', + `gitee_login` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL, + `osc_id` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL, + `tenant_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属租户', + PRIMARY KEY (`user_id`), + KEY `user_wx_openid` (`wx_openid`), + KEY `user_qq_openid` (`qq_openid`), + KEY `user_idx1_username` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC COMMENT='用户表'; -- ---------------------------- --- Records of `sys_user` +-- Records of sys_user -- ---------------------------- BEGIN; -INSERT INTO `sys_user` VALUES ('1', 'admin', '$2a$10$QOfWxxFyAMmEEmnuw9UI/..1s4B4eF/u9PzE2ZaGO.ij9YfmcUy.u', '', '17034642889', 'lengleng-adda7133c97c4790997acb0729d0ea2b.jpg', '1', '2018-04-20 07:15:18', '2019-07-08 13:45:17', '0', '0', 'o_0FT0uyg_H1vVy2H0JpSwlVGhWQ', null, 'log4j', '2303656', '1'), ('3', 'admin', '$2a$10$SRTb3yxf6fvHHh6nWBfNz.nqsUwh9nxQLBpd.TuBFASUfePRoEWbe', null, null, null, '14', '2019-06-06 15:01:06', null, '0', '0', null, null, null, null, '3'); +INSERT INTO `sys_user` VALUES (1, 'admin', '$2a$10$QOfWxxFyAMmEEmnuw9UI/..1s4B4eF/u9PzE2ZaGO.ij9YfmcUy.u', '', '17034642889', 'lengleng-52328736c020449b8c18a474b5689d5b.jpg', 1, '2018-04-20 07:15:18', '2019-07-20 15:14:27', '0', '0', 'o_0FT0uyg_H1vVy2H0JpSwlVGhWQ', NULL, 'log4j', '2303656', 1); +INSERT INTO `sys_user` VALUES (3, 'admin', '$2a$10$SRTb3yxf6fvHHh6nWBfNz.nqsUwh9nxQLBpd.TuBFASUfePRoEWbe', NULL, NULL, NULL, 14, '2019-06-06 15:01:06', NULL, '0', '0', NULL, NULL, NULL, NULL, 3); COMMIT; -- ---------------------------- --- Table structure for `sys_user_role` +-- Table structure for sys_user_role -- ---------------------------- DROP TABLE IF EXISTS `sys_user_role`; CREATE TABLE `sys_user_role` ( - `user_id` int(11) NOT NULL COMMENT '用户ID', - `role_id` int(11) NOT NULL COMMENT '角色ID', - PRIMARY KEY (`user_id`,`role_id`) + `user_id` int(11) NOT NULL COMMENT '用户ID', + `role_id` int(11) NOT NULL COMMENT '角色ID', + PRIMARY KEY (`user_id`,`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户角色表'; -- ---------------------------- --- Records of `sys_user_role` +-- Records of sys_user_role -- ---------------------------- BEGIN; -INSERT INTO `sys_user_role` VALUES ('1', '1'), ('1', '4'), ('3', '3'); +INSERT INTO `sys_user_role` VALUES (1, 1); +INSERT INTO `sys_user_role` VALUES (1, 4); +INSERT INTO `sys_user_role` VALUES (3, 3); COMMIT; SET FOREIGN_KEY_CHECKS = 1; \ No newline at end of file diff --git a/db/6pigxx_config.sql b/db/6pigxx_config.sql index d40bfbe59..e134e3daf 100644 --- a/db/6pigxx_config.sql +++ b/db/6pigxx_config.sql @@ -1,25 +1,11 @@ -/* - Navicat Premium Data Transfer - - Source Server : localhost - Source Server Type : MySQL - Source Server Version : 50723 - Source Host : localhost - Source Database : pigxx_config - - Target Server Type : MySQL - Target Server Version : 50723 - File Encoding : utf-8 - - Date: 05/18/2019 15:19:14 PM -*/ USE pigxx_config; -SET NAMES utf8; + +SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- --- Table structure for `config_info` +-- Table structure for config_info -- ---------------------------- DROP TABLE IF EXISTS `config_info`; CREATE TABLE `config_info` ( @@ -41,17 +27,28 @@ CREATE TABLE `config_info` ( `c_schema` text COLLATE utf8_bin, PRIMARY KEY (`id`), UNIQUE KEY `uk_configinfo_datagrouptenant` (`data_id`,`group_id`,`tenant_id`) -) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='config_info'; +) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='config_info'; -- ---------------------------- --- Records of `config_info` +-- Records of config_info -- ---------------------------- BEGIN; -INSERT INTO `config_info` VALUES ('1', 'application-dev.yml', 'DEFAULT_GROUP', 'jasypt:\n encryptor:\n password: pigx\n\nspring:\n redis:\n host: ${REDIS-HOST:pigx-redis}\n password: \n servlet:\n multipart:\n max-file-size: 100MB\n max-request-size: 100MB\n \nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n\nfeign:\n hystrix:\n enabled: true\n okhttp:\n enabled: true\n httpclient:\n enabled: false\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n response:\n enabled: true\n# hystrix If you need to use ThreadLocal bound variables in your RequestInterceptor`s\n# you will need to either set the thread isolation strategy for Hystrix to `SEMAPHORE or disable Hystrix in Feign.\nhystrix:\n command:\n default:\n execution:\n isolation:\n strategy: SEMAPHORE\n thread:\n timeoutInMilliseconds: 60000\n shareSecurityContext: true\n\n\nribbon:\n ReadTimeout: 10000\n ConnectTimeout: 10000\n\n\nmybatis-plus:\n tenant-enable: ture\n mapper-locations: classpath:/mapper/*Mapper.xml\n global-config:\n banner: false\n db-config:\n id-type: auto\n field-strategy: NOT_EMPTY\n\nswagger:\n title: PigX Swagger API\n license: Powered By PigX\n licenseUrl: https://pig4cloud.com/\n terms-of-service-url: https://pig4cloud.com/\n contact:\n email: wangiegie@gmail.com\n url: https://pig4cloud.com/about.html\n authorization:\n name: pigX OAuth\n auth-regex: ^.*$\n authorization-scope-list:\n - scope: server\n description: server all\n token-url-list:\n - http://${GATEWAY-HOST:pigx-gateway}:${GATEWAY-PORT:9999}/auth/oauth/token\n\nsecurity:\n oauth2:\n client:\n ignore-urls:\n - /actuator/**\n - /v2/api-docs\n resource:\n loadBalanced: true\n token-info-uri: http://${AUTH-HOST:pigx-auth}/oauth/check_token\n', 'c78818aa2409983e8abe761c3e9fe570', '2019-04-18 02:10:20', '2019-07-12 11:54:37', null, '172.16.1.3', '', '', '通用配置文件', null, null, 'yaml', null), ('2', 'pigx-activiti-dev.yml', 'DEFAULT_GROUP', '## spring security 配置\nsecurity:\n oauth2:\n client:\n client-id: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)\n client-secret: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)\n scope: server\n ignore-urls:\n - \'/actuator/**\'\n - \'/v2/api-docs\'\n - \'/editor-app/**\'\n - \'/modeler.html\'\n - \'/ws/**\'\nspring:\n autoconfigure:\n exclude: org.activiti.spring.boot.SecurityAutoConfiguration\n activiti:\n check-process-definitions: false\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx_ac}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n\n# 租户表维护\npigx:\n tenant:\n column: tenant_id\n tables:\n - oa_leave_bill', 'f9ae6f353c354f3a398373a6fe93e543', '2019-04-18 02:10:56', '2019-05-14 15:14:56', null, '127.0.0.1', '', '', '工作流配置文件', null, null, 'yaml', null), ('3', 'pigx-auth-dev.yml', 'DEFAULT_GROUP', '# 数据源\nspring:\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n freemarker:\n allow-request-override: false\n allow-session-override: false\n cache: true\n charset: UTF-8\n check-template-location: true\n content-type: text/html\n enabled: true\n expose-request-attributes: false\n expose-session-attributes: false\n expose-spring-macro-helpers: true\n prefer-file-system-access: true\n suffix: .ftl\n template-loader-path: classpath:/templates/', '7065ac5cb6d799bfd290ad3eaf19d838', '2019-04-18 02:11:32', '2019-05-28 18:14:28', null, '0:0:0:0:0:0:0:1', '', '', '认证中心配置文件', null, null, 'yaml', null), ('4', 'pigx-codegen-dev.yml', 'DEFAULT_GROUP', '## spring security 配置\nsecurity:\n oauth2:\n client:\n client-id: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)\n client-secret: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)\n scope: server\n# 数据源\nspring:\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n resources:\n static-locations: classpath:/static/,classpath:/views/\n\npigx:\n tenant:\n column: tenant_id\n tables:\n - sys_datasource_conf', '8ce46741c2060c7b2a9e7e968efc65fe', '2019-04-18 02:12:10', '2019-05-15 12:13:11', null, '127.0.0.1', '', '', '代码生成', null, null, 'yaml', null), ('5', 'pigx-daemon-elastic-job-dev.yml', 'DEFAULT_GROUP', '## spring security 配置\nsecurity:\n oauth2:\n client:\n client-id: ENC(tz2NM4GcmnE7sNJTYL8ZSg==)\n client-secret: ENC(tz2NM4GcmnE7sNJTYL8ZSg==)\n scope: server\n## 定时任务\n# 数据源\nspring:\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx_job}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n elasticjob:\n # 分布式任务协调依赖zookeeper\n zookeeper:\n server-lists: ${ZOOKEEPER-HOST:pigx-zookeeper}:${ZOOKEEPER-PORT:2181}\n namespace: pigx-daemon\n # 普通任务\n simples:\n spring-simple-job:\n job-class: com.pig4cloud.pigx.daemon.elastic.job.PigxSimpleJob\n cron: 0 0 0/1 * * ?\n sharding-total-count: 3\n sharding-item-parameters: 0=service1,1=service2,2=service3\n eventTraceRdbDataSource: \'dataSource\'\n listener:\n listener-class: com.pig4cloud.pigx.daemon.elastic.listener.PigxElasticJobListener\n spring-simple-job2:\n job-class: com.pig4cloud.pigx.daemon.elastic.job.PigxSimpleJob2\n cron: 0 0 0/1 * * ?\n sharding-total-count: 3\n sharding-item-parameters: 0=service1,1=service2,2=service3\n eventTraceRdbDataSource: \'dataSource\'\n listener:\n listener-class: com.pig4cloud.pigx.daemon.elastic.listener.PigxElasticJobListener\n # 简单任务\n dataflows:\n spring-dataflow-job:\n job-class: com.pig4cloud.pigx.daemon.elastic.job.PigxDataflowJob\n cron: 0 0 0/1 * * ?\n sharding-total-count: 3\n sharding-item-parameters: 0=service1,1=service2,2=service3\n streaming-process: true\n eventTraceRdbDataSource: \'dataSource\'\n listener:\n distributed-listener-class: com.pig4cloud.pigx.daemon.elastic.listener.PigxDistributeElasticJobListener\n started-timeout-milliseconds: 5000\n completed-timeout-milliseconds: 10000', 'a66ba457dd1fc231ce95e9aaebe57dfc', '2019-04-18 02:12:57', '2019-05-14 15:16:32', null, '127.0.0.1', '', '', '定时任务-elastic-job配置', null, null, 'yaml', null), ('7', 'pigx-gateway-dev.yml', 'DEFAULT_GROUP', 'security:\n encode:\n key: \'pigxpigxpigxpigx\'\n\nignore:\n clients:\n - test\n swagger-providers:\n - ${AUTH-HOST:pigx-auth}\n - ${TX-MGR-HOST:pigx-tx-manager}\n\nribbon:\n rule:\n gray-enabled: true', '37c3e9b507c963697af7f41a9b13add3', '2019-04-18 02:13:52', '2019-07-12 13:30:51', null, '172.16.1.3', '', '', '网关配置文件', null, null, 'yaml', null), ('8', 'pigx-monitor-dev.yml', 'DEFAULT_GROUP', 'spring:\n # 安全配置\n security:\n user:\n name: ENC(rZHA4LW5hHmhLAAzJoFNag==) # pigx\n password: ENC(bjeyh+Aeii3kHXkoo00ZUw==) # pigx\n boot:\n admin:\n ui:\n resource-locations: \'classpath:/ui/,classpath:/static/\'\n template-location: \'classpath:/ui/\'\n title: \'pigx 服务状态监控\'\n brand: \'pigx 服务状态监控\'', 'd4caef8a7cad3d357ad2fcb9f57e9982', '2019-04-18 02:14:17', '2019-04-18 02:14:17', null, '127.0.0.1', '', '', '监控配置文件', null, null, 'yaml', null), ('14', 'pigx-upms-biz-dev.yml', 'DEFAULT_GROUP', '## spring security 配置\nsecurity:\n oauth2:\n client:\n client-id: ENC(ltJPpR50wT0oIY9kfOe1Iw==)\n client-secret: ENC(ltJPpR50wT0oIY9kfOe1Iw==)\n scope: server\n ignore-urls:\n - /druid/**\n - /actuator/**\n - /v2/api-docs\n\n# 数据源\nspring:\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n stat-view-servlet:\n enabled: true\n url-pattern: /druid/*\n #login-username: admin\n #login-password: admin\n filter:\n stat:\n enabled: true\n log-slow-sql: true\n slow-sql-millis: 10000\n merge-sql: false\n wall:\n config:\n multi-statement-allow: true\n\n# 文件系统 (提供测试环境,不要乱传)\nminio:\n url: http://192.168.0.18:9000\n access-key: lengleng\n secret-key: lengleng\n\n# Logger Config\nlogging:\n level:\n com.pig4cloud.pigx.admin.mapper: debug\n\n# 租户表维护\npigx:\n tenant:\n column: tenant_id\n tables:\n - sys_user\n - sys_role\n - sys_dept\n - sys_log\n - sys_social_details\n - sys_dict\n - sys_dict_item\n - sys_public_param\n - sys_log\n - sys_file', '096e7c44aa28a4721fc4275073aa939a', '2019-04-18 02:32:44', '2019-06-29 13:12:54', null, '10.1.1.240', '', '', 'admin 服务配置', null, null, 'yaml', null), ('15', 'pigx-tx-manager-dev.yml', 'DEFAULT_GROUP', '# 页面配置\nspring:\n mvc:\n static-path-pattern: /**\n resources:\n static-locations: classpath:/static/\n\n\n# LCN 配置\ntm:\n transaction:\n netty:\n delaytime: 5 # 客户端链接最大通讯时间 (秒)\n hearttime: 15 # 客户端心跳时间 (秒)\n redis:\n savemaxtime: 30 # redis 保存时间 (秒)\n socket:\n port: 9998 # 通讯端口\n maxconnection: 1000 #最大链接数\n compensate:\n auto: false #是否自动补偿\n notifyUrl: http://ip:port/path #补偿结果通知(配消息总线里面)\n tryTime: 30 # z再次重试时间间隔\n maxWaitTime: 5000 # 请求超时的最大时间 (毫秒)', '885f5c125f2df7a08692929ccce154be', '2019-04-18 02:54:03', '2019-04-18 02:54:03', null, '127.0.0.1', '', '', '分布式事务协调模块', null, null, 'yaml', null), ('17', 'pigx-mp-manager-dev.yml', 'DEFAULT_GROUP', '## spring security 配置\nsecurity:\n oauth2:\n client:\n client-id: ENC(vW+Nup9LaTfIFwgufUBsYg==)\n client-secret: ENC(vW+Nup9LaTfIFwgufUBsYg==)\n scope: server\n# 数据源\nspring:\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx_mp}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n resources:\n static-locations: classpath:/static/,classpath:/views/\n\n\n# 租户表维护\npigx:\n tenant:\n column: tenant_id\n tables:\n - wx_menu\n - wx_account\n - wx_account_fans\n - wx_fans_msg_res', '1516b4bae5c4a38c39ba4a9d205929f3', '2019-04-18 03:00:10', '2019-05-14 15:17:45', null, '127.0.0.1', '', '', '公众号管理模块', null, null, 'yaml', null), ('18', 'pigx-daemon-quartz-dev.yml', 'DEFAULT_GROUP', '## spring security 配置\nsecurity:\n oauth2:\n client:\n client-id: ENC(tz2NM4GcmnE7sNJTYL8ZSg==)\n client-secret: ENC(tz2NM4GcmnE7sNJTYL8ZSg==)\n scope: server\n\n# 数据源\nspring:\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx_job}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n resources:\n static-locations: classpath:/static/,classpath:/views/\n quartz:\n #相关属性配置\n properties:\n org:\n quartz:\n scheduler:\n instanceName: clusteredScheduler\n instanceId: AUTO\n jobStore:\n class: org.quartz.impl.jdbcjobstore.JobStoreTX\n driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate\n tablePrefix: QRTZ_\n isClustered: true\n clusterCheckinInterval: 10000\n useProperties: false\n threadPool:\n class: org.quartz.simpl.SimpleThreadPool\n threadCount: 50\n threadPriority: 5\n threadsInheritContextClassLoaderOfInitializingThread: true\n #数据库方式\n job-store-type: jdbc\n #初始化表结构\n #jdbc:\n #initialize-schema: never\n\n', 'aa30eacf6be9e3638d9f977c703089a2', '2019-04-18 03:08:34', '2019-05-14 15:18:28', null, '127.0.0.1', '', '', 'quartz 配置文件', null, null, 'yaml', null), ('19', 'pigx-pay-dev.yml', 'DEFAULT_GROUP', '## spring security 配置\nsecurity:\n oauth2:\n client:\n client-id: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)\n client-secret: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)\n scope: server\n# 数据源\nspring:\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx_pay}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n\n# 租户表维护\npigx:\n pay:\n test: lengleng\n aliPayConfig:\n expire-time: 30\n return-url: http://pig4cloud.com\n notify-url: http://pigx.huaxiadaowei.com/pay/notify/ali/callbak\n wxPayConfig:\n notify-url: http://pigx.huaxiadaowei.com/pay/notify/wx/callbak\n xsequence: #发号器相关配置\n db:\n retry-times: 3\n table-name: pay_sequence\n tenant:\n column: tenant_id\n tables:\n - pay_channel\n - pay_trade_order\n - pay_goods_order\n - pay_notify_record', '6dec22a38eee06ae08bb73b84f07ef31', '2019-05-28 11:46:27', '2019-07-02 09:55:07', null, '172.16.1.3', '', '', '支付模块配置', null, null, 'yaml', null); +INSERT INTO `config_info` VALUES (1, 'application-dev.yml', 'DEFAULT_GROUP', 'jasypt:\n encryptor:\n password: pigx\n\nspring:\n redis:\n host: pigx-redis\n servlet:\n multipart:\n max-file-size: 100MB\n max-request-size: 100MB\n \nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n\nfeign:\n hystrix:\n enabled: true\n okhttp:\n enabled: true\n httpclient:\n enabled: false\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n response:\n enabled: true\n# hystrix If you need to use ThreadLocal bound variables in your RequestInterceptor`s\n# you will need to either set the thread isolation strategy for Hystrix to `SEMAPHORE or disable Hystrix in Feign.\nhystrix:\n command:\n default:\n execution:\n isolation:\n strategy: SEMAPHORE\n thread:\n timeoutInMilliseconds: 60000\n shareSecurityContext: true\n\n\nribbon:\n ReadTimeout: 10000\n ConnectTimeout: 10000\n\n\nmybatis-plus:\n tenant-enable: ture\n mapper-locations: classpath:/mapper/*Mapper.xml\n global-config:\n banner: false\n db-config:\n id-type: auto\n field-strategy: NOT_EMPTY\n\nswagger:\n title: PigX Swagger API\n license: Powered By PigX\n licenseUrl: https://pig4cloud.com/\n terms-of-service-url: https://pig4cloud.com/\n contact:\n email: wangiegie@gmail.com\n url: https://pig4cloud.com/about.html\n authorization:\n name: pigX OAuth\n auth-regex: ^.*$\n authorization-scope-list:\n - scope: server\n description: server all\n token-url-list:\n - http://${GATEWAY-HOST:pigx-gateway}:${GATEWAY-PORT:9999}/auth/oauth/token\n\nsecurity:\n oauth2:\n client:\n ignore-urls:\n - /actuator/**\n - /v2/api-docs\n resource:\n loadBalanced: true\n token-info-uri: http://${AUTH-HOST:pigx-auth}/oauth/check_token\n\n#dsdsa来电二中文呀', 'ca13daa103a02604d5cca96b63a404f1', '2019-04-18 02:10:20', '2019-07-15 17:07:46', NULL, '127.0.0.1', '', '', '通用配置文件', NULL, NULL, 'yaml', NULL); +INSERT INTO `config_info` VALUES (2, 'pigx-activiti-dev.yml', 'DEFAULT_GROUP', '## spring security 配置\nsecurity:\n oauth2:\n client:\n client-id: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)\n client-secret: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)\n scope: server\n ignore-urls:\n - \'/actuator/**\'\n - \'/v2/api-docs\'\n - \'/editor-app/**\'\n - \'/modeler.html\'\n - \'/ws/**\'\nspring:\n autoconfigure:\n exclude: org.activiti.spring.boot.SecurityAutoConfiguration\n activiti:\n check-process-definitions: false\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx_ac}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n\n# 租户表维护\npigx:\n tenant:\n column: tenant_id\n tables:\n - oa_leave_bill', 'f9ae6f353c354f3a398373a6fe93e543', '2019-04-18 02:10:56', '2019-05-14 15:14:56', NULL, '127.0.0.1', '', '', '工作流配置文件', NULL, NULL, 'yaml', NULL); +INSERT INTO `config_info` VALUES (3, 'pigx-auth-dev.yml', 'DEFAULT_GROUP', '# 数据源\nspring:\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n freemarker:\n allow-request-override: false\n allow-session-override: false\n cache: true\n charset: UTF-8\n check-template-location: true\n content-type: text/html\n enabled: true\n expose-request-attributes: false\n expose-session-attributes: false\n expose-spring-macro-helpers: true\n prefer-file-system-access: true\n suffix: .ftl\n template-loader-path: classpath:/templates/', '7065ac5cb6d799bfd290ad3eaf19d838', '2019-04-18 02:11:32', '2019-05-28 18:14:28', NULL, '0:0:0:0:0:0:0:1', '', '', '认证中心配置文件', NULL, NULL, 'yaml', NULL); +INSERT INTO `config_info` VALUES (4, 'pigx-codegen-dev.yml', 'DEFAULT_GROUP', '## spring security 配置\nsecurity:\n oauth2:\n client:\n client-id: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)\n client-secret: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)\n scope: server\n# 数据源\nspring:\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n resources:\n static-locations: classpath:/static/,classpath:/views/\n\npigx:\n tenant:\n column: tenant_id\n tables:\n - sys_datasource_conf', '8ce46741c2060c7b2a9e7e968efc65fe', '2019-04-18 02:12:10', '2019-05-15 12:13:11', NULL, '127.0.0.1', '', '', '代码生成', NULL, NULL, 'yaml', NULL); +INSERT INTO `config_info` VALUES (5, 'pigx-daemon-elastic-job-dev.yml', 'DEFAULT_GROUP', '## spring security 配置\nsecurity:\n oauth2:\n client:\n client-id: ENC(tz2NM4GcmnE7sNJTYL8ZSg==)\n client-secret: ENC(tz2NM4GcmnE7sNJTYL8ZSg==)\n scope: server\n## 定时任务\n# 数据源\nspring:\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx_job}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n elasticjob:\n # 分布式任务协调依赖zookeeper\n zookeeper:\n server-lists: ${ZOOKEEPER-HOST:pigx-zookeeper}:${ZOOKEEPER-PORT:2181}\n namespace: pigx-daemon\n # 普通任务\n simples:\n spring-simple-job:\n job-class: com.pig4cloud.pigx.daemon.elastic.job.PigxSimpleJob\n cron: 0 0 0/1 * * ?\n sharding-total-count: 3\n sharding-item-parameters: 0=service1,1=service2,2=service3\n eventTraceRdbDataSource: \'dataSource\'\n listener:\n listener-class: com.pig4cloud.pigx.daemon.elastic.listener.PigxElasticJobListener\n spring-simple-job2:\n job-class: com.pig4cloud.pigx.daemon.elastic.job.PigxSimpleJob2\n cron: 0 0 0/1 * * ?\n sharding-total-count: 3\n sharding-item-parameters: 0=service1,1=service2,2=service3\n eventTraceRdbDataSource: \'dataSource\'\n listener:\n listener-class: com.pig4cloud.pigx.daemon.elastic.listener.PigxElasticJobListener\n # 简单任务\n dataflows:\n spring-dataflow-job:\n job-class: com.pig4cloud.pigx.daemon.elastic.job.PigxDataflowJob\n cron: 0 0 0/1 * * ?\n sharding-total-count: 3\n sharding-item-parameters: 0=service1,1=service2,2=service3\n streaming-process: true\n eventTraceRdbDataSource: \'dataSource\'\n listener:\n distributed-listener-class: com.pig4cloud.pigx.daemon.elastic.listener.PigxDistributeElasticJobListener\n started-timeout-milliseconds: 5000\n completed-timeout-milliseconds: 10000', 'a66ba457dd1fc231ce95e9aaebe57dfc', '2019-04-18 02:12:57', '2019-05-14 15:16:32', NULL, '127.0.0.1', '', '', '定时任务-elastic-job配置', NULL, NULL, 'yaml', NULL); +INSERT INTO `config_info` VALUES (7, 'pigx-gateway-dev.yml', 'DEFAULT_GROUP', 'security:\n encode:\n key: \'pigxpigxpigxpigx\'\n\nignore:\n clients:\n - test\n swagger-providers:\n - ${AUTH-HOST:pigx-auth}\n - ${TX-MGR-HOST:pigx-tx-manager}\n\nribbon:\n rule:\n gray-enabled: true', '37c3e9b507c963697af7f41a9b13add3', '2019-04-18 02:13:52', '2019-07-02 15:13:23', NULL, '172.16.1.3', '', '', '网关配置文件', NULL, NULL, 'yaml', NULL); +INSERT INTO `config_info` VALUES (8, 'pigx-monitor-dev.yml', 'DEFAULT_GROUP', 'spring:\n # 安全配置\n security:\n user:\n name: ENC(rZHA4LW5hHmhLAAzJoFNag==) # pigx\n password: ENC(bjeyh+Aeii3kHXkoo00ZUw==) # pigx\n boot:\n admin:\n ui:\n resource-locations: \'classpath:/ui/,classpath:/static/\'\n template-location: \'classpath:/ui/\'\n title: \'pigx 服务状态监控\'\n brand: \'pigx 服务状态监控\'', 'd4caef8a7cad3d357ad2fcb9f57e9982', '2019-04-18 02:14:17', '2019-04-18 02:14:17', NULL, '127.0.0.1', '', '', '监控配置文件', NULL, NULL, 'yaml', NULL); +INSERT INTO `config_info` VALUES (14, 'pigx-upms-biz-dev.yml', 'DEFAULT_GROUP', '## spring security 配置\nsecurity:\n oauth2:\n client:\n client-id: ENC(ltJPpR50wT0oIY9kfOe1Iw==)\n client-secret: ENC(ltJPpR50wT0oIY9kfOe1Iw==)\n scope: server\n ignore-urls:\n - /druid/**\n - /actuator/**\n - /v2/api-docs\n\n# 数据源\nspring:\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n stat-view-servlet:\n enabled: true\n url-pattern: /druid/*\n #login-username: admin\n #login-password: admin\n filter:\n stat:\n enabled: true\n log-slow-sql: true\n slow-sql-millis: 10000\n merge-sql: false\n wall:\n config:\n multi-statement-allow: true\n\n# 文件系统 (提供测试环境,不要乱传)\nminio:\n url: http://minio.pig4cloud.com\n access-key: lengleng\n secret-key: lengleng\n\n# Logger Config\nlogging:\n level:\n com.pig4cloud.pigx.admin.mapper: debug\n\n# 租户表维护\npigx:\n tenant:\n column: tenant_id\n tables:\n - sys_user\n - sys_role\n - sys_dept\n - sys_log\n - sys_social_details\n - sys_dict\n - sys_dict_item\n - sys_public_param\n - sys_log\n - sys_file', '096e7c44aa28a4721fc4275073aa939a', '2019-04-18 02:32:44', '2019-06-29 13:12:54', NULL, '10.1.1.240', '', '', 'admin 服务配置', NULL, NULL, 'yaml', NULL); +INSERT INTO `config_info` VALUES (15, 'pigx-tx-manager-dev.yml', 'DEFAULT_GROUP', '# 页面配置\nspring:\n mvc:\n static-path-pattern: /**\n resources:\n static-locations: classpath:/static/\n\n\n# LCN 配置\ntm:\n transaction:\n netty:\n delaytime: 5 # 客户端链接最大通讯时间 (秒)\n hearttime: 15 # 客户端心跳时间 (秒)\n redis:\n savemaxtime: 30 # redis 保存时间 (秒)\n socket:\n port: 9998 # 通讯端口\n maxconnection: 1000 #最大链接数\n compensate:\n auto: false #是否自动补偿\n notifyUrl: http://ip:port/path #补偿结果通知(配消息总线里面)\n tryTime: 30 # z再次重试时间间隔\n maxWaitTime: 5000 # 请求超时的最大时间 (毫秒)', '885f5c125f2df7a08692929ccce154be', '2019-04-18 02:54:03', '2019-04-18 02:54:03', NULL, '127.0.0.1', '', '', '分布式事务协调模块', NULL, NULL, 'yaml', NULL); +INSERT INTO `config_info` VALUES (17, 'pigx-mp-manager-dev.yml', 'DEFAULT_GROUP', '## spring security 配置\nsecurity:\n oauth2:\n client:\n client-id: ENC(vW+Nup9LaTfIFwgufUBsYg==)\n client-secret: ENC(vW+Nup9LaTfIFwgufUBsYg==)\n scope: server\n# 数据源\nspring:\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx_mp}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n resources:\n static-locations: classpath:/static/,classpath:/views/\n\n\n# 租户表维护\npigx:\n tenant:\n column: tenant_id\n tables:\n - wx_menu\n - wx_account\n - wx_account_fans\n - wx_fans_msg_res', '1516b4bae5c4a38c39ba4a9d205929f3', '2019-04-18 03:00:10', '2019-05-14 15:17:45', NULL, '127.0.0.1', '', '', '公众号管理模块', NULL, NULL, 'yaml', NULL); +INSERT INTO `config_info` VALUES (18, 'pigx-daemon-quartz-dev.yml', 'DEFAULT_GROUP', '## spring security 配置\nsecurity:\n oauth2:\n client:\n client-id: ENC(tz2NM4GcmnE7sNJTYL8ZSg==)\n client-secret: ENC(tz2NM4GcmnE7sNJTYL8ZSg==)\n scope: server\n\n# 数据源\nspring:\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx_job}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n resources:\n static-locations: classpath:/static/,classpath:/views/\n quartz:\n #相关属性配置\n properties:\n org:\n quartz:\n scheduler:\n instanceName: clusteredScheduler\n instanceId: AUTO\n jobStore:\n class: org.quartz.impl.jdbcjobstore.JobStoreTX\n driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate\n tablePrefix: QRTZ_\n isClustered: true\n clusterCheckinInterval: 10000\n useProperties: false\n threadPool:\n class: org.quartz.simpl.SimpleThreadPool\n threadCount: 50\n threadPriority: 5\n threadsInheritContextClassLoaderOfInitializingThread: true\n #数据库方式\n job-store-type: jdbc\n #初始化表结构\n #jdbc:\n #initialize-schema: never\n\n', 'aa30eacf6be9e3638d9f977c703089a2', '2019-04-18 03:08:34', '2019-05-14 15:18:28', NULL, '127.0.0.1', '', '', 'quartz 配置文件', NULL, NULL, 'yaml', NULL); +INSERT INTO `config_info` VALUES (19, 'pigx-pay-dev.yml', 'DEFAULT_GROUP', '## spring security 配置\nsecurity:\n oauth2:\n client:\n client-id: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)\n client-secret: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)\n scope: server\n# 数据源\nspring:\n datasource:\n type: com.alibaba.druid.pool.DruidDataSource\n druid:\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: ${MYSQL-USER:root}\n password: ${MYSQL-PWD:root}\n url: jdbc:mysql://${MYSQL-HOST:pigx-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:pigxx_pay}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true\n\n# 租户表维护\npigx:\n pay:\n test: lengleng\n aliPayConfig:\n expire-time: 30\n return-url: http://pig4cloud.com\n notify-url: http://pigx.huaxiadaowei.com/pay/notify/ali/callbak\n wxPayConfig:\n notify-url: http://pigx.huaxiadaowei.com/pay/notify/wx/callbak\n xsequence: #发号器相关配置\n db:\n retry-times: 3\n table-name: pay_sequence\n tenant:\n column: tenant_id\n tables:\n - pay_channel\n - pay_trade_order\n - pay_goods_order\n - pay_notify_record', '6dec22a38eee06ae08bb73b84f07ef31', '2019-05-28 11:46:27', '2019-07-02 09:55:07', NULL, '172.16.1.3', '', '', '支付模块配置', NULL, NULL, 'yaml', NULL); COMMIT; -- ---------------------------- --- Table structure for `config_info_aggr` +-- Table structure for config_info_aggr -- ---------------------------- DROP TABLE IF EXISTS `config_info_aggr`; CREATE TABLE `config_info_aggr` ( @@ -68,7 +65,7 @@ CREATE TABLE `config_info_aggr` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='增加租户字段'; -- ---------------------------- --- Table structure for `config_info_beta` +-- Table structure for config_info_beta -- ---------------------------- DROP TABLE IF EXISTS `config_info_beta`; CREATE TABLE `config_info_beta` ( @@ -89,7 +86,7 @@ CREATE TABLE `config_info_beta` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='config_info_beta'; -- ---------------------------- --- Table structure for `config_info_tag` +-- Table structure for config_info_tag -- ---------------------------- DROP TABLE IF EXISTS `config_info_tag`; CREATE TABLE `config_info_tag` ( @@ -110,7 +107,7 @@ CREATE TABLE `config_info_tag` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='config_info_tag'; -- ---------------------------- --- Table structure for `config_tags_relation` +-- Table structure for config_tags_relation -- ---------------------------- DROP TABLE IF EXISTS `config_tags_relation`; CREATE TABLE `config_tags_relation` ( @@ -127,7 +124,7 @@ CREATE TABLE `config_tags_relation` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='config_tag_relation'; -- ---------------------------- --- Table structure for `group_capacity` +-- Table structure for group_capacity -- ---------------------------- DROP TABLE IF EXISTS `group_capacity`; CREATE TABLE `group_capacity` ( @@ -146,7 +143,7 @@ CREATE TABLE `group_capacity` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='集群、各Group容量信息表'; -- ---------------------------- --- Table structure for `his_config_info` +-- Table structure for his_config_info -- ---------------------------- DROP TABLE IF EXISTS `his_config_info`; CREATE TABLE `his_config_info` ( @@ -170,7 +167,7 @@ CREATE TABLE `his_config_info` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='多租户改造'; -- ---------------------------- --- Table structure for `roles` +-- Table structure for roles -- ---------------------------- DROP TABLE IF EXISTS `roles`; CREATE TABLE `roles` ( @@ -179,7 +176,7 @@ CREATE TABLE `roles` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; -- ---------------------------- --- Table structure for `tenant_capacity` +-- Table structure for tenant_capacity -- ---------------------------- DROP TABLE IF EXISTS `tenant_capacity`; CREATE TABLE `tenant_capacity` ( @@ -198,7 +195,7 @@ CREATE TABLE `tenant_capacity` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='租户容量信息表'; -- ---------------------------- --- Table structure for `tenant_info` +-- Table structure for tenant_info -- ---------------------------- DROP TABLE IF EXISTS `tenant_info`; CREATE TABLE `tenant_info` ( @@ -216,7 +213,7 @@ CREATE TABLE `tenant_info` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC COMMENT='tenant_info'; -- ---------------------------- --- Table structure for `users` +-- Table structure for users -- ---------------------------- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( @@ -227,10 +224,10 @@ CREATE TABLE `users` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; -- ---------------------------- --- Records of `users` +-- Records of users -- ---------------------------- BEGIN; -INSERT INTO `users` VALUES ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu', '1'); +INSERT INTO `users` VALUES ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu', 1); COMMIT; SET FOREIGN_KEY_CHECKS = 1; \ No newline at end of file diff --git a/db/7pigxx_pay.sql b/db/7pigxx_pay.sql index 6d71ecc52..b4b353d85 100644 --- a/db/7pigxx_pay.sql +++ b/db/7pigxx_pay.sql @@ -1,33 +1,18 @@ -/* - Navicat Premium Data Transfer - - Source Server : pigx-dev - Source Server Type : MySQL - Source Server Version : 50726 - Source Host : 192.168.0.33 - Source Database : pigxx_pay - - Target Server Type : MySQL - Target Server Version : 50726 - File Encoding : utf-8 - - Date: 07/12/2019 16:20:58 PM -*/ USE pigxx_pay; -SET NAMES utf8; +SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- --- Table structure for `pay_channel` +-- Table structure for pay_channel -- ---------------------------- DROP TABLE IF EXISTS `pay_channel`; CREATE TABLE `pay_channel` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '渠道主键ID', - `app_id` varchar(32) NOT NULL COMMENT '应用ID', + `mch_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '内部商户号', `channel_id` varchar(24) NOT NULL COMMENT '渠道ID', `channel_name` varchar(30) NOT NULL COMMENT '渠道名称,如:alipay,wechat', - `channel_mch_id` varchar(32) NOT NULL COMMENT '渠道商户ID', + `channel_mch_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '渠道商户ID', `state` char(1) NOT NULL DEFAULT '0' COMMENT '渠道状态', `param` text NOT NULL COMMENT '配置参数,json字符串', `remark` varchar(128) DEFAULT NULL COMMENT '备注', @@ -35,87 +20,20 @@ CREATE TABLE `pay_channel` ( `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `tenant_id` int(11) DEFAULT NULL COMMENT '租户ID', + `app_id` varchar(64) NOT NULL COMMENT 'appid', PRIMARY KEY (`id`), - UNIQUE KEY `IDX_MchId_MchOrderNo` (`channel_id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='支付渠道表'; + UNIQUE KEY `IDX_MchId_MchOrderNo` (`channel_id`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='支付渠道表'; -- ---------------------------- --- Records of `pay_channel` +-- Records of pay_channel -- ---------------------------- BEGIN; -INSERT INTO `pay_channel` VALUES ('1', '2016102000727659', 'ALIPAY_WAP', '支付宝WAP支付', '2016102000727659', '0', '{\n \"privateKey\":\"MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCkejVpiLJlece9KLb8gG/+WODkpe5SRfr65n3aUAvRPoouDUp/URBAtt24mzHFdGkaU/Il7ZxG7KUjLaFNTfq8t/bHEF7HBt7MZidpEjVaDxeG/hkA+xc+X2ePAJXVhy7v1tH+XRrxuggTj+d4q7vVGD7r1mtgX4d5hK9TTKnyhO6IUcthPOUSn07wx+5wlbv4/51ggj4Ku4AWCGaCWiebDFy4VZ/FmOMP5u3O7TocCGSy5UtaFZaVMM1nH603DG6NJ8fG+zKum9IvrdQMMmBWPT8rpy0U9ztchcd+0gTNrTfE/NOCgl/RF6z7Qic7NiTKjLxkGRq73XPzfJx0hyfpAgMBAAECggEAa2/sndAN/90JjNUgmlVnUnRKCvEceJ9/rw6KXOV2oqrAZg6GgB26iRsqP6EYZMuCsBDvlrjcITQJNq5is/Vg+I8OYr+duVISjN+ZlLexI+/BxYsLWCmr6DE3myCdvwn7rezb5NR6ejWzetvALoG3Qx4AU9sO7rfX7ZevUrE8Pc5pa/rTCHOIec9P7Hfm4xrXd0DPmbAwFvUQ4spcC9xjcBhLJ3tfmkoEU11jC6Y/J7N0/TZZxqNC+HcYftSNEmbO3vxYfz/9mbabx7Uzp8xs4qHPJACmaP5tcWOCf1qJVOwP53Cd3H9J9Be9cAvlxKfT48s1ghoxLn7QB27p0UwntQKBgQDzTpCCFDoUH328B3iGTkwZq24DOUh5ZwhMG6VIFPLHwJYK6HVM473SX0nJWkbiBYFG4WiQWUZnOhz/qjTH1vvE/nzJwQ79zZahren2b8XulXKM6S/mafiBAHKl/FArcr14iAWkh+scZKWFKrNf6Hp8rQ6zu0fWdwzUOlaQFaSnTwKBgQCtDtpIagRPyNj0J39uMRJqsaY0TdJ53TD4bflf5UiFhNFH2Dikgw/uX8Pom2qtIvf3xnO2bzmJW2+OSkF7U0fL+UXkAaBHW+7YVcs8pWARSd5LWBXGWysV2wUALwynZSdwtgpgrzMQnuzklQ3hNR9LBSEGN7yJwkU83ZRWPzbvRwKBgQDU3E8g/oExSbu+3Opc1fNOIeTFfUAitjlUHHulbG5aw+qA8I5vDm/rtOHg/tI0u4w2bs4EO5aUiQsFwesbSsJJvjt+ZyCue0blfDnMGE2aRbVKAlidxOhcNAAZp3ycBm4tHROStjbDSGpm7syvg7xlhyHtrFNVFiJrKf7BX64FkQKBgCA8lAzJMuRp1YAlm2c7XOLjFMLJfFuXCHg+hCWI4Gl+xD1N2b9LarxMuoGp8cUurmJJZWSmc2FS1wT6cBg4+zbTyGEgrGqehW9nC+TQKYUO7Ym7btL0SKJZmiTenszP2vjz8Bryh+CguiAaY+t/qcSfv/cYitZeiec8n1UxkVohAoGAa8YwnzkEGBgz0TpdrGFxVBCqMIriMH4PQs2tWZ1nEBk6A7GrODRcRL0FQnRpHyf3mY5N/iEiNQ5GhQ5p1lifTvolTkVkdHpTGFhVfnYegaEAOznigi7dWJPoYlloN36AROxirGJKRIm+Od2bsybM/dNPJfoTDBDPFWGBH/klEBs=\",\n \"publicKey\":\"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuPkP2VJMR6vWCX8RwSFqNIa3klCdvRFJbuS1PN1anzQeeL9eOwtU7kGdI85yxb0dcdPzOYlG+jf9go8W9hBlgjxSRoXxLx03Yfl7cLmzJO9l9vIM1+HmNF0Ctm+el4Yi9dGs/P6q7lcHPUqs/RXGfeLrg33GMVwJbLmRcDZYeIcqPAA1OVF/4SHYr+f+O7glDOd60z+veOOexyoHmvUzYWlEz5+R4kOCNM/Z0w7KGgEYvHbZopexuTuFgUWy/9tYlNrnX+cZUWXVTskLUgD1UGWM1dS5+qfriqY9MPEwJjetcPJkoCK7A4IReE4q1DffUY9KS50/1ML+7na3R/p/UQIDAQAB\",\n \"serviceUrl\":\"https://openapi.alipaydev.com/gateway.do\"\n}', '沙箱密码111111/11111', '0', '2019-06-19 03:01:21', '2019-06-19 03:01:21', '1'), ('2', 'wx35c5d0711cbdcd01', 'WEIXIN_MP', '微信支付', '1517442541', '0', '{\n\"secret\":\"a6025f38ce4a3115e53bf7980c761f48\",\n\"token\":\"oat\",\n\"paternerKey\":\"4054e1e1f4f1decc0055acbbe04a70ae\",\n\"subMchId\":\"1531309091\"\n}', '微信服务商模式', '0', '2019-06-19 03:59:18', '2019-06-19 08:02:34', '1'); +INSERT INTO `pay_channel` VALUES (1, NULL, 'ALIPAY_WAP', '支付宝WAP支付', '2016102000727659', '0', '{\n \"privateKey\":\"MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCkejVpiLJlece9KLb8gG/+WODkpe5SRfr65n3aUAvRPoouDUp/URBAtt24mzHFdGkaU/Il7ZxG7KUjLaFNTfq8t/bHEF7HBt7MZidpEjVaDxeG/hkA+xc+X2ePAJXVhy7v1tH+XRrxuggTj+d4q7vVGD7r1mtgX4d5hK9TTKnyhO6IUcthPOUSn07wx+5wlbv4/51ggj4Ku4AWCGaCWiebDFy4VZ/FmOMP5u3O7TocCGSy5UtaFZaVMM1nH603DG6NJ8fG+zKum9IvrdQMMmBWPT8rpy0U9ztchcd+0gTNrTfE/NOCgl/RF6z7Qic7NiTKjLxkGRq73XPzfJx0hyfpAgMBAAECggEAa2/sndAN/90JjNUgmlVnUnRKCvEceJ9/rw6KXOV2oqrAZg6GgB26iRsqP6EYZMuCsBDvlrjcITQJNq5is/Vg+I8OYr+duVISjN+ZlLexI+/BxYsLWCmr6DE3myCdvwn7rezb5NR6ejWzetvALoG3Qx4AU9sO7rfX7ZevUrE8Pc5pa/rTCHOIec9P7Hfm4xrXd0DPmbAwFvUQ4spcC9xjcBhLJ3tfmkoEU11jC6Y/J7N0/TZZxqNC+HcYftSNEmbO3vxYfz/9mbabx7Uzp8xs4qHPJACmaP5tcWOCf1qJVOwP53Cd3H9J9Be9cAvlxKfT48s1ghoxLn7QB27p0UwntQKBgQDzTpCCFDoUH328B3iGTkwZq24DOUh5ZwhMG6VIFPLHwJYK6HVM473SX0nJWkbiBYFG4WiQWUZnOhz/qjTH1vvE/nzJwQ79zZahren2b8XulXKM6S/mafiBAHKl/FArcr14iAWkh+scZKWFKrNf6Hp8rQ6zu0fWdwzUOlaQFaSnTwKBgQCtDtpIagRPyNj0J39uMRJqsaY0TdJ53TD4bflf5UiFhNFH2Dikgw/uX8Pom2qtIvf3xnO2bzmJW2+OSkF7U0fL+UXkAaBHW+7YVcs8pWARSd5LWBXGWysV2wUALwynZSdwtgpgrzMQnuzklQ3hNR9LBSEGN7yJwkU83ZRWPzbvRwKBgQDU3E8g/oExSbu+3Opc1fNOIeTFfUAitjlUHHulbG5aw+qA8I5vDm/rtOHg/tI0u4w2bs4EO5aUiQsFwesbSsJJvjt+ZyCue0blfDnMGE2aRbVKAlidxOhcNAAZp3ycBm4tHROStjbDSGpm7syvg7xlhyHtrFNVFiJrKf7BX64FkQKBgCA8lAzJMuRp1YAlm2c7XOLjFMLJfFuXCHg+hCWI4Gl+xD1N2b9LarxMuoGp8cUurmJJZWSmc2FS1wT6cBg4+zbTyGEgrGqehW9nC+TQKYUO7Ym7btL0SKJZmiTenszP2vjz8Bryh+CguiAaY+t/qcSfv/cYitZeiec8n1UxkVohAoGAa8YwnzkEGBgz0TpdrGFxVBCqMIriMH4PQs2tWZ1nEBk6A7GrODRcRL0FQnRpHyf3mY5N/iEiNQ5GhQ5p1lifTvolTkVkdHpTGFhVfnYegaEAOznigi7dWJPoYlloN36AROxirGJKRIm+Od2bsybM/dNPJfoTDBDPFWGBH/klEBs=\",\n \"publicKey\":\"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuPkP2VJMR6vWCX8RwSFqNIa3klCdvRFJbuS1PN1anzQeeL9eOwtU7kGdI85yxb0dcdPzOYlG+jf9go8W9hBlgjxSRoXxLx03Yfl7cLmzJO9l9vIM1+HmNF0Ctm+el4Yi9dGs/P6q7lcHPUqs/RXGfeLrg33GMVwJbLmRcDZYeIcqPAA1OVF/4SHYr+f+O7glDOd60z+veOOexyoHmvUzYWlEz5+R4kOCNM/Z0w7KGgEYvHbZopexuTuFgUWy/9tYlNrnX+cZUWXVTskLUgD1UGWM1dS5+qfriqY9MPEwJjetcPJkoCK7A4IReE4q1DffUY9KS50/1ML+7na3R/p/UQIDAQAB\",\n \"serviceUrl\":\"https://openapi.alipaydev.com/gateway.do\"\n}', '沙箱密码111111/11111', '0', '2019-06-19 03:01:21', '2019-06-19 03:01:21', 1, '2016102000727659'); COMMIT; -- ---------------------------- --- Table structure for `pay_check_batch` --- ---------------------------- -DROP TABLE IF EXISTS `pay_check_batch`; -CREATE TABLE `pay_check_batch` ( - `id` bigint(50) NOT NULL AUTO_INCREMENT, - `status` varchar(30) NOT NULL, - `remark` varchar(500) DEFAULT NULL, - `batch_no` varchar(30) NOT NULL, - `bill_date` date NOT NULL, - `bill_type` varchar(30) DEFAULT NULL, - `handle_status` varchar(10) DEFAULT NULL, - `bank_type` varchar(30) DEFAULT NULL, - `mistake_count` int(8) DEFAULT NULL, - `unhandle_mistake_count` int(8) DEFAULT NULL, - `trade_count` int(8) DEFAULT NULL, - `bank_trade_count` int(8) DEFAULT NULL, - `trade_amount` decimal(20,6) DEFAULT NULL, - `bank_trade_amount` decimal(20,6) DEFAULT NULL, - `refund_amount` decimal(20,6) DEFAULT NULL, - `bank_refund_amount` decimal(20,6) DEFAULT NULL, - `bank_fee` decimal(20,6) DEFAULT NULL, - `org_check_file_path` varchar(500) DEFAULT NULL, - `release_check_file_path` varchar(500) DEFAULT NULL, - `release_status` varchar(15) DEFAULT NULL, - `check_fail_msg` varchar(300) DEFAULT NULL, - `bank_err_msg` varchar(300) DEFAULT NULL, - `del_flag` char(1) DEFAULT '0', - `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, - `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `tenant_id` int(11) DEFAULT NULL COMMENT '租户ID', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC COMMENT='对账批次表'; - --- ---------------------------- --- Table structure for `pay_check_mistake` --- ---------------------------- -DROP TABLE IF EXISTS `pay_check_mistake`; -CREATE TABLE `pay_check_mistake` ( - `id` bigint(50) NOT NULL AUTO_INCREMENT, - `product_name` varchar(50) DEFAULT NULL COMMENT '商品名称', - `order_no` varchar(30) NOT NULL COMMENT '订单号', - `trx_no` char(20) NOT NULL COMMENT '支付流水号', - `bank_order_no` char(20) DEFAULT NULL COMMENT '银行订单号', - `bank_trx_no` varchar(30) DEFAULT NULL COMMENT '银行流水号', - `order_amount` decimal(20,6) DEFAULT '0.000000' COMMENT '订单金额', - `plat_income` decimal(20,6) DEFAULT NULL COMMENT '平台收入', - `fee_rate` decimal(20,6) DEFAULT NULL COMMENT '费率', - `plat_cost` decimal(20,6) DEFAULT NULL COMMENT '平台成本', - `plat_profit` decimal(20,6) DEFAULT NULL COMMENT '平台利润', - `status` varchar(30) DEFAULT NULL COMMENT '状态(参考枚举:paymentrecordstatusenum)', - `pay_way_code` varchar(50) DEFAULT NULL COMMENT '支付通道编号', - `pay_way_name` varchar(100) DEFAULT NULL COMMENT '支付通道名称', - `pay_success_time` datetime DEFAULT NULL COMMENT '支付成功时间', - `complete_time` datetime DEFAULT NULL COMMENT '完成时间', - `is_refund` varchar(30) DEFAULT '101' COMMENT '是否退款(100:是,101:否,默认值为:101)', - `refund_times` smallint(6) DEFAULT '0' COMMENT '退款次数(默认值为:0)', - `success_refund_amount` decimal(20,6) DEFAULT NULL COMMENT '成功退款总金额', - `remark` varchar(500) DEFAULT NULL COMMENT '备注', - `batch_no` varchar(50) DEFAULT NULL, - `bill_date` datetime DEFAULT NULL, - `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, - `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `del_flag` char(1) DEFAULT '0', - `tenant_id` int(11) DEFAULT NULL COMMENT '租户ID', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC COMMENT='差错暂存池'; - --- ---------------------------- --- Table structure for `pay_goods_order` +-- Table structure for pay_goods_order -- ---------------------------- DROP TABLE IF EXISTS `pay_goods_order`; CREATE TABLE `pay_goods_order` ( @@ -132,28 +50,28 @@ CREATE TABLE `pay_goods_order` ( `tenant_id` int(11) DEFAULT NULL COMMENT '租户ID', PRIMARY KEY (`goods_order_id`), UNIQUE KEY `IDX_PayOrderId` (`pay_order_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='商品订单表'; +) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COMMENT='商品订单表'; -- ---------------------------- --- Table structure for `pay_notify_record` +-- Table structure for pay_notify_record -- ---------------------------- DROP TABLE IF EXISTS `pay_notify_record`; CREATE TABLE `pay_notify_record` ( `id` bigint(50) NOT NULL AUTO_INCREMENT COMMENT 'ID', - `notify_id` varchar(50) CHARACTER SET latin1 DEFAULT NULL COMMENT '响应ID', - `request` varchar(2000) DEFAULT NULL COMMENT '请求报文', - `response` varchar(2000) DEFAULT NULL COMMENT '响应报文', - `order_no` varchar(50) CHARACTER SET latin1 DEFAULT NULL COMMENT '系统订单号', - `http_status` varchar(50) CHARACTER SET latin1 DEFAULT NULL COMMENT 'http状态', - `del_flag` char(1) CHARACTER SET latin1 DEFAULT '0' COMMENT '删除标记', - `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `notify_id` varchar(50) NOT NULL COMMENT '响应ID', + `request` varchar(2000) NOT NULL COMMENT '请求报文', + `response` varchar(2000) NOT NULL COMMENT '响应报文', + `order_no` varchar(50) NOT NULL COMMENT '系统订单号', + `http_status` varchar(50) DEFAULT NULL COMMENT 'http状态', + `del_flag` char(1) DEFAULT '0' COMMENT '删除标记', + `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `tenant_id` int(11) DEFAULT NULL COMMENT '租户ID', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='通知记录日志表'; +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='通知记录日志表'; -- ---------------------------- --- Table structure for `pay_refund_order` +-- Table structure for pay_refund_order -- ---------------------------- DROP TABLE IF EXISTS `pay_refund_order`; CREATE TABLE `pay_refund_order` ( @@ -166,8 +84,8 @@ CREATE TABLE `pay_refund_order` ( `pay_amount` varchar(20) NOT NULL COMMENT '支付金额,单位元', `refund_amount` bigint(20) NOT NULL COMMENT '退款金额,单位分', `currency` varchar(3) NOT NULL DEFAULT 'cny' COMMENT '三位货币代码,人民币:cny', - `status` char(6) NOT NULL DEFAULT '0' COMMENT '退款状态:0-订单生成,1-退款中,2-退款成功,3-退款失败,4-业务处理完成', - `result` char(6) NOT NULL DEFAULT '0' COMMENT '退款结果:0-不确认结果,1-等待手动处理,2-确认成功,3-确认失败', + `status` tinyint(6) NOT NULL DEFAULT '0' COMMENT '退款状态:0-订单生成,1-退款中,2-退款成功,3-退款失败,4-业务处理完成', + `result` tinyint(6) NOT NULL DEFAULT '0' COMMENT '退款结果:0-不确认结果,1-等待手动处理,2-确认成功,3-确认失败', `client_ip` varchar(32) DEFAULT NULL COMMENT '客户端IP', `device` varchar(64) DEFAULT NULL COMMENT '设备', `remark` varchar(256) DEFAULT NULL COMMENT '备注', @@ -189,10 +107,10 @@ CREATE TABLE `pay_refund_order` ( `tenant_id` int(11) DEFAULT NULL COMMENT '租户ID', PRIMARY KEY (`refund_order_id`), UNIQUE KEY `IDX_MchId_MchOrderNo` (`mch_id`,`mch_refund_no`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='退款订单表'; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='退款订单表'; -- ---------------------------- --- Table structure for `pay_sequence` +-- Table structure for pay_sequence -- ---------------------------- DROP TABLE IF EXISTS `pay_sequence`; CREATE TABLE `pay_sequence` ( @@ -203,10 +121,10 @@ CREATE TABLE `pay_sequence` ( `gmt_modified` datetime NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uk_name` (`name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='发号器表'; -- ---------------------------- --- Table structure for `pay_trade_order` +-- Table structure for pay_trade_order -- ---------------------------- DROP TABLE IF EXISTS `pay_trade_order`; CREATE TABLE `pay_trade_order` ( @@ -214,7 +132,7 @@ CREATE TABLE `pay_trade_order` ( `channel_id` varchar(24) NOT NULL COMMENT '渠道ID', `amount` varchar(20) NOT NULL COMMENT '支付金额,单位分', `currency` varchar(3) NOT NULL DEFAULT 'cny' COMMENT '三位货币代码,人民币:cny', - `status` char(1) NOT NULL DEFAULT '0' COMMENT '支付状态,0-订单生成,1-支付中(目前未使用),2-支付成功,3-业务处理完成', + `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '支付状态,0-订单生成,1-支付中(目前未使用),2-支付成功,3-业务处理完成', `client_ip` varchar(32) DEFAULT NULL COMMENT '客户端IP', `device` varchar(64) DEFAULT NULL COMMENT '设备', `subject` varchar(64) DEFAULT NULL COMMENT '商品标题', @@ -233,9 +151,8 @@ CREATE TABLE `pay_trade_order` ( `pay_succ_time` bigint(20) DEFAULT NULL COMMENT '订单支付成功时间', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', - `del_flag` char(1) DEFAULT '0' COMMENT '删除标记', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '0' COMMENT '删除标记', `tenant_id` int(11) DEFAULT NULL COMMENT '租户ID', PRIMARY KEY (`order_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='支付订单表'; - +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='支付订单表'; SET FOREIGN_KEY_CHECKS = 1; \ No newline at end of file diff --git a/db/Dockerfile b/db/Dockerfile index bf0a0998d..2a5c36622 100644 --- a/db/Dockerfile +++ b/db/Dockerfile @@ -1,4 +1,4 @@ -FROM mysql:5.7 +FROM mysql:8.0.16 MAINTAINER lengleng(wangiegie@gmail.com) diff --git a/pigx-register/src/main/resources/static/console-fe/public/img/favicon.ico b/pigx-register/src/main/resources/static/console-fe/public/img/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..0439e0caeab0a42f71c4d80fc1beb09ae57c0a40 GIT binary patch literal 4286 zcmeHJF>-@25IiOYB~)oc>1XH(egd^#!4v!h%9MFRp5Q0w2`bZFv>{;Q(Q%R{6J`?d zoNbQV-MiHwAgaQr>j>ZU+7dkz(J4eokqLqPaU2dD4s1AJ`An9tAy^3`vRF0>7TnM{ zuQ)7^2{>RcD_raZHTn$T8o%I{`-FPG)WYqI0=K> \ No newline at end of file diff --git a/pigx-register/src/main/resources/static/console-fe/src/components/ShowCodeing/ShowServiceCodeing.js b/pigx-register/src/main/resources/static/console-fe/src/components/ShowCodeing/ShowServiceCodeing.js new file mode 100644 index 000000000..a0e07951c --- /dev/null +++ b/pigx-register/src/main/resources/static/console-fe/src/components/ShowCodeing/ShowServiceCodeing.js @@ -0,0 +1,491 @@ +/* + * Copyright 1999-2018 Alibaba Group Holding Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import React from 'react'; +import PropTypes from 'prop-types'; +import { getParams } from '../../globalLib'; +import { ConfigProvider, Dialog, Loading, Tab } from '@alifd/next'; + +import './index.scss'; + +const TabPane = Tab.Item; + +/** + * + * Service Registration Sample Code Show Window + * @author yongchao9 #2019年05月18日 下午4:26:19 + * + */ +@ConfigProvider.config +class ShowServiceCodeing extends React.Component { + static displayName = 'ShowServiceCodeing'; + + static propTypes = { + locale: PropTypes.object, + }; + + constructor(props) { + super(props); + this.state = { + dialogvisible: false, + loading: false, + }; + this.defaultCode = ''; + this.nodejsCode = 'TODO'; + this.cppCode = 'TODO'; + this.shellCode = 'TODO'; + this.pythonCode = 'TODO'; + this.record = {}; + this.springCode = 'TODO'; + this.sprigbootCode = 'TODO'; + this.sprigcloudCode = 'TODO'; + } + + componentDidMount() { + } + + openLoading() { + this.setState({ + loading: true, + }); + } + + closeLoading() { + this.setState({ + loading: false, + }); + } + + getData() { + const namespace = getParams('namespace'); // 获取ak,sk + const obj = { + group: this.record.group || '', + dataId: this.record.dataId || '', + namespace, + inEdas: window.globalConfig.isParentEdas(), + }; + this.defaultCode = this.getJavaCode(obj); + this.createCodeMirror('text/x-java', this.defaultCode); + this.springCode = this.getSpringCode(obj); + this.sprigbootCode = this.getSpringBootCode(obj); + this.sprigcloudCode = this.getSpringCloudCode(obj); + this.nodejsCode = this.getNodejsCode(obj); + this.cppCode = this.getCppCode(obj); + this.shellCode = this.getShellCode(obj); + this.pythonCode = this.getPythonCode(obj); + this.forceUpdate(); + } + + getJavaCode(data) { + return `/* Refer to document: https://github.com/alibaba/nacos/blob/master/example/src/main/java/com/alibaba/nacos/example +* pom.xml + + com.alibaba.nacos + nacos-client + $\{latest.version} + +*/ +package com.alibaba.nacos.example; + +import java.util.Properties; + +import com.alibaba.nacos.api.exception.NacosException; +import com.alibaba.nacos.api.naming.NamingFactory; +import com.alibaba.nacos.api.naming.NamingService; +import com.alibaba.nacos.api.naming.listener.Event; +import com.alibaba.nacos.api.naming.listener.EventListener; +import com.alibaba.nacos.api.naming.listener.NamingEvent; + +/** + * @author nkorange + */ +public class NamingExample { + + public static void main(String[] args) throws NacosException { + + Properties properties = new Properties(); + properties.setProperty("serverAddr", System.getProperty("serverAddr")); + properties.setProperty("namespace", System.getProperty("namespace")); + + NamingService naming = NamingFactory.createNamingService(properties); + + naming.registerInstance("${this.record.name}", "11.11.11.11", 8888, "TEST1"); + + naming.registerInstance("${this.record.name}", "2.2.2.2", 9999, "DEFAULT"); + + System.out.println(naming.getAllInstances("${this.record.name}")); + + naming.deregisterInstance("${this.record.name}", "2.2.2.2", 9999, "DEFAULT"); + + System.out.println(naming.getAllInstances("${this.record.name}")); + + naming.subscribe("${this.record.name}", new EventListener() { + @Override + public void onEvent(Event event) { + System.out.println(((NamingEvent)event).getServiceName()); + System.out.println(((NamingEvent)event).getInstances()); + } + }); + } +}`; + } + + getSpringCode(data) { + return `/* Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-example/nacos-spring-discovery-example +* pom.xml + + com.alibaba.nacos + nacos-spring-context + \${latest.version} + +*/ + +// Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-example/nacos-spring-discovery-example/src/main/java/com/alibaba/nacos/example/spring +package com.alibaba.nacos.example.spring; + +import com.alibaba.nacos.api.annotation.NacosProperties; +import com.alibaba.nacos.spring.context.annotation.discovery.EnableNacosDiscovery; +import org.springframework.context.annotation.Configuration; + +@Configuration +@EnableNacosDiscovery(globalProperties = @NacosProperties(serverAddr = "127.0.0.1:8848")) +public class NacosConfiguration { + +} + +// Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-example/nacos-spring-discovery-example/src/main/java/com/alibaba/nacos/example/spring/controller +package com.alibaba.nacos.example.spring.controller; + +import com.alibaba.nacos.api.annotation.NacosInjected; +import com.alibaba.nacos.api.exception.NacosException; +import com.alibaba.nacos.api.naming.NamingService; +import com.alibaba.nacos.api.naming.pojo.Instance; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.List; + +import static org.springframework.web.bind.annotation.RequestMethod.GET; + +@Controller +@RequestMapping("discovery") +public class DiscoveryController { + + @NacosInjected + private NamingService namingService; + + @RequestMapping(value = "/get", method = GET) + @ResponseBody + public List get(@RequestParam String serviceName) throws NacosException { + return namingService.getAllInstances(serviceName); + } +}`; + } + + getSpringBootCode(data) { + return `/* Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example +* pom.xml + + com.alibaba.boot + nacos-discovery-spring-boot-starter + \${latest.version} + +*/ +/* Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example/src/main/resources +* application.properties + nacos.discovery.server-addr=127.0.0.1:8848 +*/ +// Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example/src/main/java/com/alibaba/nacos/example/spring/boot/controller + +package com.alibaba.nacos.example.spring.boot.controller; + +import com.alibaba.nacos.api.annotation.NacosInjected; +import com.alibaba.nacos.api.exception.NacosException; +import com.alibaba.nacos.api.naming.NamingService; +import com.alibaba.nacos.api.naming.pojo.Instance; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.List; + +import static org.springframework.web.bind.annotation.RequestMethod.GET; + +@Controller +@RequestMapping("discovery") +public class DiscoveryController { + + @NacosInjected + private NamingService namingService; + + @RequestMapping(value = "/get", method = GET) + @ResponseBody + public List get(@RequestParam String serviceName) throws NacosException { + return namingService.getAllInstances(serviceName); + } +}`; + } + + getSpringCloudCode(data) { + return `/* Refer to document: https://github.com/nacos-group/nacos-examples/blob/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/ +* pom.xml + + org.springframework.cloud + spring-cloud-starter-alibaba-nacos-discovery + \${latest.version} + +*/ + +// nacos-spring-cloud-provider-example + +/* Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-provider-example/src/main/resources +* application.properties +server.port=18080 +spring.application.name=${this.record.name} +spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848 +*/ + +// Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-provider-example/src/main/java/com/alibaba/nacos/example/spring/cloud +package com.alibaba.nacos.example.spring.cloud; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +/** + * @author xiaojing + */ +@SpringBootApplication +@EnableDiscoveryClient +public class NacosProviderApplication { + + public static void main(String[] args) { + SpringApplication.run(NacosProviderApplication.class, args); +} + + @RestController + class EchoController { + @RequestMapping(value = "/echo/{string}", method = RequestMethod.GET) + public String echo(@PathVariable String string) { + return "Hello Nacos Discovery " + string; + } + } +} + +// nacos-spring-cloud-consumer-example + +/* Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-consumer-example/src/main/resources +* application.properties +spring.application.name=micro-service-oauth2 +spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848 +*/ + +// Refer to document: https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-cloud-example/nacos-spring-cloud-discovery-example/nacos-spring-cloud-consumer-example/src/main/java/com/alibaba/nacos/example/spring/cloud +package com.alibaba.nacos.example.spring.cloud; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.cloud.client.loadbalancer.LoadBalanced; +import org.springframework.context.annotation.Bean; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.client.RestTemplate; + +/** + * @author xiaojing + */ +@SpringBootApplication +@EnableDiscoveryClient +public class NacosConsumerApplication { + + @LoadBalanced + @Bean + public RestTemplate restTemplate() { + return new RestTemplate(); + } + + public static void main(String[] args) { + SpringApplication.run(NacosConsumerApplication.class, args); + } + + @RestController + public class TestController { + + private final RestTemplate restTemplate; + + @Autowired + public TestController(RestTemplate restTemplate) {this.restTemplate = restTemplate;} + + @RequestMapping(value = "/echo/{str}", method = RequestMethod.GET) + public String echo(@PathVariable String str) { + return restTemplate.getForObject("http://service-provider/echo/" + str, String.class); + } + } +}`; + } + + getNodejsCode(data) { + return 'TODO'; + } + + getCppCode(data) { + return 'TODO'; + } + + getShellCode(data) { + return 'TODO'; + } + + getPythonCode(data) { + return 'TODO'; + } + + openDialog(record) { + this.setState({ + dialogvisible: true, + }); + this.record = record; + setTimeout(() => { + this.getData(); // 获取数据 + }); + } + + closeDialog() { + this.setState({ + dialogvisible: false, + }); + } + + createCodeMirror(mode, value) { + const commontarget = this.refs.codepreview; + if (commontarget) { + commontarget.innerHTML = ''; + this.cm = window.CodeMirror(commontarget, { + value, + mode, + height: 400, + width: 500, + lineNumbers: true, + theme: 'xq-light', + lint: true, + tabMode: 'indent', + autoMatchParens: true, + textWrapping: true, + gutters: ['CodeMirror-lint-markers'], + extraKeys: { + F1(cm) { + cm.setOption('fullScreen', !cm.getOption('fullScreen')); + }, + Esc(cm) { + if (cm.getOption('fullScreen')) cm.setOption('fullScreen', false); + }, + }, + }); + // this.cm.setSize('300px',height:'222px'); + this.cm.setSize('auto', '490px'); + } + + // this.cm.setSize(window.innerWidth*0.8-10,400);//设置宽高 + } + + changeTab(key, code) { + setTimeout(() => { + this[key] = true; + + this.createCodeMirror('text/javascript', code); + }); + } + + render() { + const { locale = {} } = this.props; + const footer =
; + return ( +
+ +
+ + + + + + + + + + + + + + + + {} + +
+ +
+
+
+ ); + } +} + +export default ShowServiceCodeing; diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ClusterManagement/ClusterNodeList/ClusterNodeList.js b/pigx-register/src/main/resources/static/console-fe/src/pages/ClusterManagement/ClusterNodeList/ClusterNodeList.js new file mode 100644 index 000000000..fb2470f82 --- /dev/null +++ b/pigx-register/src/main/resources/static/console-fe/src/pages/ClusterManagement/ClusterNodeList/ClusterNodeList.js @@ -0,0 +1,200 @@ +/* + * Copyright 1999-2018 Alibaba Group Holding Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import React from 'react'; +import PropTypes from 'prop-types'; +import { + Button, + Field, + Form, + Grid, + Input, + Loading, + Pagination, + Table, + ConfigProvider, +} from '@alifd/next'; +import { request } from '../../../globalLib'; +import RegionGroup from '../../../components/RegionGroup'; + +import './ClusterNodeList.scss'; + +const FormItem = Form.Item; +const { Row, Col } = Grid; +const { Column } = Table; + +@ConfigProvider.config +class ClusterNodeList extends React.Component { + static displayName = 'ClusterNodeList'; + + static propTypes = { + locale: PropTypes.object, + }; + + constructor(props) { + super(props); + this.state = { + loading: false, + total: 0, + pageSize: 10, + currentPage: 1, + keyword: '', + dataSource: [], + }; + this.field = new Field(this); + } + + openLoading() { + this.setState({ loading: true }); + } + + closeLoading() { + this.setState({ loading: false }); + } + + openEditServiceDialog() { + try { + this.editServiceDialog.current.getInstance().show(this.state.service); + } catch (error) {} + } + + queryClusterStateList() { + const { currentPage, pageSize, keyword, withInstances = false } = this.state; + const parameter = [ + `withInstances=${withInstances}`, + `pageNo=${currentPage}`, + `pageSize=${pageSize}`, + `keyword=${keyword}`, + ]; + request({ + url: `v1/ns/operator/cluster/states?${parameter.join('&')}`, + beforeSend: () => this.openLoading(), + success: ({ count = 0, clusterStateList = [] } = {}) => { + this.setState({ + dataSource: clusterStateList, + total: count, + }); + }, + error: () => + this.setState({ + dataSource: [], + total: 0, + currentPage: 0, + }), + complete: () => this.closeLoading(), + }); + } + + getQueryLater = () => { + setTimeout(() => this.queryClusterStateList()); + }; + + setNowNameSpace = (nowNamespaceName, nowNamespaceId) => + this.setState({ + nowNamespaceName, + nowNamespaceId, + }); + + rowColor = row => ({ className: !row.voteFor ? '' : '' }); + + render() { + const { locale = {} } = this.props; + const { pubNoData, clusterNodeList, nodeIp, nodeIpPlaceholder, query } = locale; + const { keyword, nowNamespaceName, nowNamespaceId } = this.state; + const { init, getValue } = this.field; + this.init = init; + this.getValue = getValue; + + return ( +
+ +
+ +
+

+ {clusterNodeList} + | + {nowNamespaceName} + {nowNamespaceId} +

+ + +
+ + this.setState({ keyword })} + onPressEnter={() => + this.setState({ currentPage: 1 }, () => this.queryClusterStateList()) + } + /> + + + + +
+ +
+ + + this.rowColor(row)} + > + + + + + +
+ +
+ {this.state.total > this.state.pageSize && ( +
+ + this.setState({ currentPage }, () => this.queryClusterStateList()) + } + /> +
+ )} +
+
+ ); + } +} + +export default ClusterNodeList; diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ClusterManagement/ClusterNodeList/ClusterNodeList.scss b/pigx-register/src/main/resources/static/console-fe/src/pages/ClusterManagement/ClusterNodeList/ClusterNodeList.scss new file mode 100644 index 000000000..1052ee91e --- /dev/null +++ b/pigx-register/src/main/resources/static/console-fe/src/pages/ClusterManagement/ClusterNodeList/ClusterNodeList.scss @@ -0,0 +1,29 @@ +/* + * Copyright 1999-2018 Alibaba Group Holding Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +.cluster-management { + .page-title { + height: 30px; + width: 100%; + line-height: 30px; + margin: 0 0 20px; + padding: 0 0 0 10px; + border-left: 3px solid #09c; + color: #ccc; + } + .title-item { + font-size: 14px; + color: #000; + margin-right: 8px; + } +} diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ClusterManagement/ClusterNodeList/index.js b/pigx-register/src/main/resources/static/console-fe/src/pages/ClusterManagement/ClusterNodeList/index.js new file mode 100644 index 000000000..b93591b74 --- /dev/null +++ b/pigx-register/src/main/resources/static/console-fe/src/pages/ClusterManagement/ClusterNodeList/index.js @@ -0,0 +1,16 @@ +/* + * Copyright 1999-2018 Alibaba Group Holding Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ClusterNodeList from './ClusterNodeList'; + +export default ClusterNodeList; diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/NewConfigEditor.js b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/NewConfigEditor.js new file mode 100644 index 000000000..c30050871 --- /dev/null +++ b/pigx-register/src/main/resources/static/console-fe/src/pages/ConfigurationManagement/ConfigEditor/NewConfigEditor.js @@ -0,0 +1,596 @@ +/* + * Copyright 1999-2018 Alibaba Group Holding Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import React from 'react'; +import PropTypes from 'prop-types'; +import { getParams } from '../../../globalLib'; +import request from '../../../utils/request'; +import validateContent from 'utils/validateContent'; +import SuccessDialog from '../../../components/SuccessDialog'; +import DiffEditorDialog from '../../../components/DiffEditorDialog'; +import './index.scss'; +import { + Balloon, + Button, + Dialog, + Field, + Form, + Checkbox, + Icon, + Input, + Loading, + Radio, + Switch, + Select, + Tab, + Message, + Grid, + ConfigProvider, +} from '@alifd/next'; +import { resolve } from 'url'; + +const { Row, Col } = Grid; + +const LANGUAGE_LIST = [ + { value: 'text', label: 'TEXT' }, + { value: 'json', label: 'JSON' }, + { value: 'xml', label: 'XML' }, + { value: 'yaml', label: 'YAML' }, + { value: 'html', label: 'HTML' }, + { value: 'properties', label: 'Properties' }, +]; + +const TAB_LIST = ['production', 'beta']; + +@ConfigProvider.config +class ConfigEditor extends React.Component { + static displayName = 'ConfigEditor'; + + static propTypes = { + locale: PropTypes.object, + history: PropTypes.object, + }; + + constructor(props) { + super(props); + this.state = { + loading: false, + isBeta: false, + isNewConfig: true, + betaPublishSuccess: false, + betaIps: '', + tabActiveKey: '', + form: { + dataId: '', // 配置 ID + group: '', // 分组 + content: '', // 配置内容 + appName: '', // 应用名 + desc: '', // 描述 + config_tags: [], + type: 'text', // 配置格式 + }, + tagDataSource: [], + openAdvancedSettings: false, + }; + this.successDialog = React.createRef(); + this.diffEditorDialog = React.createRef(); + } + + componentDidMount() { + const isNewConfig = !getParams('dataId'); + const group = getParams('group').trim(); + this.setState({ isNewConfig }, () => { + if (!isNewConfig) { + this.changeForm( + { + dataId: getParams('dataId').trim(), + group, + }, + () => + this.getConfig(true).then(res => { + if (!res) { + this.getConfig(); + return; + } + this.setState({ + isBeta: true, + tabActiveKey: 'beta', + betaPublishSuccess: true, + }); + }) + ); + } else { + if (group) { + this.setState({ group }); + } + this.initMoacoEditor('text', ''); + } + }); + } + + initMoacoEditor(language, value) { + const container = document.getElementById('container'); + container.innerHTML = ''; + this.monacoEditor = null; + const options = { + value, + language: this.state.configType, + codeLens: true, + selectOnLineNumbers: true, + roundedSelection: false, + readOnly: false, + lineNumbersMinChars: true, + theme: 'vs-dark', + wordWrapColumn: 120, + folding: false, + showFoldingControls: 'always', + wordWrap: 'wordWrapColumn', + cursorStyle: 'line', + automaticLayout: true, + }; + if (!window.monaco) { + window.importEditor(() => { + this.monacoEditor = window.monaco.editor.create(container, options); + }); + } else { + this.monacoEditor = window.monaco.editor.create(container, options); + } + } + + createDiffCodeMirror(leftCode, rightCode) { + const target = this.diffEditorDialog.current.getInstance(); + target.innerHTML = ''; + this.diffeditor = window.CodeMirror.MergeView(target, { + value: leftCode || '', + origLeft: null, + orig: rightCode || '', + lineNumbers: true, + mode: this.mode, + theme: 'xq-light', + highlightDifferences: true, + connect: 'align', + collapseIdentical: false, + }); + } + + openDiff(cbName) { + this.diffcb = cbName; + let leftvalue = this.monacoEditor.getValue(); + let rightvalue = this.codeVal || ''; + leftvalue = leftvalue.replace(/\r\n/g, '\n').replace(/\n/g, '\r\n'); + rightvalue = rightvalue.replace(/\r\n/g, '\n').replace(/\n/g, '\r\n'); + this.diffEditorDialog.current.getInstance().openDialog(leftvalue, rightvalue); + } + + clickTab(tabActiveKey) { + console.log('tabActiveKey', tabActiveKey, tabActiveKey === 'beta'); + this.setState({ tabActiveKey }, () => this.getConfig(tabActiveKey === 'beta')); + } + + getCodeVal() { + const { locale = {} } = this.props; + const { type, content } = this.state.form; + const codeVal = this.monacoEditor ? this.monacoEditor.getValue() : content; + if (!codeVal) { + Message.error({ + content: locale.submitFailed, + align: 'cc cc', + }); + return false; + } + return codeVal; + } + + publish() { + const { locale = {} } = this.props; + const { type } = this.state.form; + if (this.state.isNewConfig) { + this.validation(); + } + const content = this.getCodeVal(); + if (!content) { + return; + } + if (validateContent.validate({ content, type })) { + return this._publishConfig(); + } else { + return new Promise((resolve, reject) => { + Dialog.confirm({ + content: locale.codeValErrorPrompt, + onOk: () => resolve(this._publishConfig()), + onCancel: () => resolve(false), + }); + }); + } + } + + _publishConfig(beta = false) { + const { locale } = this.props; + const { betaIps, isNewConfig } = this.state; + const headers = { 'Content-Type': 'application/x-www-form-urlencoded' }; + if (beta) { + headers.betaIps = betaIps; + } + const data = { ...this.state.form, content: this.getCodeVal() }; + return request({ + url: 'v1/cs/configs', + method: 'post', + data, + transformRequest: [ + function(data) { + let ret = ''; + for (let it in data) { + ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'; + } + return ret; + }, + ], + headers, + }).then(res => { + if (res) { + if (isNewConfig) { + this.setState({ isNewConfig: false }); + } + this.getConfig(beta); + } + return res; + }); + } + + publishBeta() { + return this._publishConfig(true).then(res => { + if (res) { + this.setState({ + betaPublishSuccess: true, + tabActiveKey: 'beta', + }); + return res; + } + }); + } + + stopBeta() { + const { locale } = this.props; + const { dataId, group } = this.state.form; + return request + .delete('v1/cs/configs', { + params: { + beta: true, + dataId, + group, + }, + }) + .then(res => { + if (res.data) { + this.setState( + { + isBeta: false, + betaPublishSuccess: false, + tabActiveKey: '', + }, + () => this.getConfig() + ); + } + return res; + }); + } + + changeForm(item, cb) { + const { form } = this.state; + this.setState({ form: { ...form, ...item } }, () => { + if (cb) { + cb(); + } + }); + } + + setConfigTags(tags) { + const { tagDataSource } = this.state; + const lastTag = tags[tags.length - 1]; + if (tagDataSource.indexOf(lastTag) < 0) { + this.setState({ tagDataSource: [...tagDataSource, lastTag] }); + } + if (tags.length > 5) { + tags.pop(); + } + tags.forEach((v, i) => { + if (v.indexOf(',') !== -1 || v.indexOf('=') !== -1) { + tags.splice(i, 1); + } + }); + this.changeForm({ config_tags: tags }); + } + + goBack() { + const serverId = getParams('serverId') || ''; + const tenant = getParams('namespace'); + const searchGroup = getParams('searchGroup') || ''; + const searchDataId = getParams('searchDataId') || ''; + this.props.history.push( + `/configurationManagement?serverId=${serverId}&group=${searchGroup}&dataId=${searchDataId}&namespace=${tenant}` + ); + } + + getConfig(beta = false, decide = false) { + const namespace = getParams('namespace'); + const { dataId, group } = this.state.form; + const params = { + dataId, + group, + namespaceId: namespace, + tenant: namespace, + }; + if (beta) { + params.beta = true; + } + if (!beta) { + params.show = 'all'; + } + return request.get('v1/cs/configs', { params }).then(res => { + const form = beta ? res.data : res; + if (!form) return false; + const { type, content, configTags, betaIps } = form; + this.setState({ betaIps }); + this.changeForm({ ...form, config_tags: configTags ? configTags.split(',') : [] }); + this.initMoacoEditor(type, content); + this.codeVal = content; + return res; + }); + } + + validation() { + const { locale } = this.props; + const { form } = this.state; + const { dataId, group } = form; + if (!dataId) { + this.setState({ + dataIdError: { + validateState: 'error', + help: locale.recipientFrom, + }, + }); + return false; + } + if (!group) { + this.setState({ + groupError: { + validateState: 'error', + help: locale.homeApplication, + }, + }); + return false; + } + return true; + } + + render() { + const { + loading, + betaIps, + openAdvancedSettings, + isBeta, + isNewConfig, + betaPublishSuccess, + form, + tagDataSource, + tabActiveKey, + dataIdError = {}, + groupError = {}, + } = this.state; + const { locale = {} } = this.props; + + return ( +
+ +

+
{locale.toedit}
+

+ {betaPublishSuccess && ( + this.clickTab(key)}> + {TAB_LIST.map(key => ( + + {locale[key]} + + ))} + + )} +
+ + + this.changeForm({ dataId }, () => this.setState({ dataIdError: {} })) + } + disabled={!isNewConfig} + /> + + + + this.changeForm({ group }, () => this.setState({ groupError: {} })) + } + disabled={!isNewConfig} + /> + + +
this.setState({ openAdvancedSettings: !openAdvancedSettings })} + > + {openAdvancedSettings ? locale.collapse : locale.groupNotEmpty} +
+
+ {openAdvancedSettings && ( + <> + + this.changeForm({ appName })} /> + + + )} + + this.changeForm({ desc })} + /> + + {!isNewConfig && tabActiveKey !== 'production' && ( + + {!betaPublishSuccess && ( + this.setState({ isBeta })}> + {locale.betaSwitchPrompt} + + )} + {isBeta && ( + this.setState({ betaIps })} + /> + )} + + )} + + { + this.initMoacoEditor(type, form.content); + this.changeForm({ type }); + }} + > + {LANGUAGE_LIST.map(item => ( + + {item.label} + + ))} + + + + {locale.configcontent} + } + align="t" + style={{ marginRight: 5 }} + triggerType="hover" + > +

{locale.escExit}

+

{locale.releaseBeta}

+
+ : +
+ } + > +
+ + + + + {isBeta && betaPublishSuccess && tabActiveKey !== 'production' && ( + + )} + {isBeta && tabActiveKey !== 'production' && ( + + )} + + + + + { + const res = this[this.diffcb](); + res.then(res => { + if (!res) { + return; + } + let title = locale.toedit; + if (isNewConfig) { + title = locale.newConfigEditor; + } + if (this.diffcb === 'publishBeta') { + title = locale.betaPublish; + } + if (this.diffcb === 'publish' && tabActiveKey === 'beta') { + title = locale.stopPublishBeta; + this.stopBeta(); + } + this.successDialog.current.getInstance().openDialog({ + title:
{title}
, + isok: true, + ...form, + }); + }); + }} + /> + + +
+ ); + } +} + +export default ConfigEditor; diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/SubscriberList/SubscriberList.js b/pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/SubscriberList/SubscriberList.js new file mode 100644 index 000000000..0058bb09c --- /dev/null +++ b/pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/SubscriberList/SubscriberList.js @@ -0,0 +1,217 @@ +/* + * Copyright 1999-2018 Alibaba Group Holding Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import React from 'react'; +import PropTypes from 'prop-types'; +import { + Button, + Field, + Form, + Grid, + Input, + Loading, + Pagination, + Table, + Dialog, + Message, + ConfigProvider, +} from '@alifd/next'; +import { connect } from 'react-redux'; +import { getSubscribers, removeSubscribers } from '../../../reducers/subscribers'; +import { request } from '../../../globalLib'; +import RegionGroup from '../../../components/RegionGroup'; + +import './SubscriberList.scss'; + +const FormItem = Form.Item; +const { Row, Col } = Grid; +const { Column } = Table; + +@connect( + state => ({ subscriberData: state.subscribers }), + { getSubscribers, removeSubscribers } +) +@ConfigProvider.config +class SubscriberList extends React.Component { + static displayName = 'SubscriberList'; + + static propTypes = { + locale: PropTypes.object, + getSubscribers: PropTypes.func, + removeSubscribers: PropTypes.func, + subscriberData: PropTypes.object, + }; + + constructor(props) { + super(props); + this.state = { + loading: false, + total: 0, + pageSize: 10, + pageNo: 1, + search: { + serviceName: '', + groupName: '', + }, + }; + this.field = new Field(this); + } + + openLoading() { + this.setState({ loading: true }); + } + + closeLoading() { + this.setState({ loading: false }); + } + + querySubscriberList() { + const { searchServiceNamePrompt } = this.props.locale; + const { search, pageSize, pageNo, nowNamespaceId = '' } = this.state; + if (!search.serviceName) { + Message.error(searchServiceNamePrompt); + return; + } + this.props.getSubscribers({ + ...search, + pageSize, + pageNo, + namespaceId: nowNamespaceId, + }); + } + + switchNamespace = () => { + this.setState({ search: { serviceName: '', groupName: '' } }); + this.props.removeSubscribers(); + }; + + setNowNameSpace = (nowNamespaceName, nowNamespaceId) => + this.setState({ + nowNamespaceName, + nowNamespaceId, + }); + + render() { + const { locale = {}, subscriberData = {} } = this.props; + const { count = 0, subscribers = [] } = subscriberData; + const { + pubNoData, + subscriberList, + serviceName, + serviceNamePlaceholder, + groupName, + groupNamePlaceholder, + query, + } = locale; + const { search, nowNamespaceName, nowNamespaceId } = this.state; + const { init, getValue } = this.field; + this.init = init; + this.getValue = getValue; + return ( +
+ +
+ +
+

+ {subscriberList} + | + {nowNamespaceName} + {nowNamespaceId} +

+ + +
+ + this.setState({ search: { ...search, serviceName } })} + onPressEnter={() => + this.setState({ pageNo: 1 }, () => this.querySubscriberList()) + } + /> + + + this.setState({ search: { ...search, groupName } })} + onPressEnter={() => + this.setState({ pageNo: 1 }, () => this.querySubscriberList()) + } + /> + + + + +
+ +
+ + + + + + +
+ +
+ {count > this.state.pageSize && ( +
+ this.setState({ pageNo }, () => this.querySubscriberList())} + /> +
+ )} +
+
+ ); + } +} + +export default SubscriberList; diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/SubscriberList/SubscriberList.scss b/pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/SubscriberList/SubscriberList.scss new file mode 100644 index 000000000..6e451a35b --- /dev/null +++ b/pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/SubscriberList/SubscriberList.scss @@ -0,0 +1,30 @@ + +/* + * Copyright 1999-2018 Alibaba Group Holding Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +.subscriber-list { + .page-title { + height: 30px; + width: 100%; + line-height: 30px; + margin: 0 0 20px; + padding: 0 0 0 10px; + border-left: 3px solid #09c; + color: #ccc; + } + .title-item { + font-size: 14px; + color: #000; + margin-right: 8px; + } +} diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/SubscriberList/index.js b/pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/SubscriberList/index.js new file mode 100644 index 000000000..b36e2ed9e --- /dev/null +++ b/pigx-register/src/main/resources/static/console-fe/src/pages/ServiceManagement/SubscriberList/index.js @@ -0,0 +1,16 @@ +/* + * Copyright 1999-2018 Alibaba Group Holding Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import SubscriberList from './SubscriberList'; + +export default SubscriberList; diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/Welcome/Welcome.js b/pigx-register/src/main/resources/static/console-fe/src/pages/Welcome/Welcome.js new file mode 100644 index 000000000..f5326f68f --- /dev/null +++ b/pigx-register/src/main/resources/static/console-fe/src/pages/Welcome/Welcome.js @@ -0,0 +1,39 @@ +/* + * Copyright 1999-2018 Alibaba Group Holding Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import React from 'react'; +import PropTypes from 'prop-types'; +import { connect } from 'react-redux'; +import { Redirect } from 'react-router-dom'; + +@connect(state => ({ ...state.base })) +class Welcome extends React.Component { + static propTypes = { + functionMode: PropTypes.string, + }; + + render() { + const { functionMode } = this.props; + return ( +
+ {functionMode !== '' && ( + + )} +
+ ); + } +} + +export default Welcome; diff --git a/pigx-register/src/main/resources/static/console-fe/src/pages/Welcome/index.js b/pigx-register/src/main/resources/static/console-fe/src/pages/Welcome/index.js new file mode 100644 index 000000000..c6daa48f1 --- /dev/null +++ b/pigx-register/src/main/resources/static/console-fe/src/pages/Welcome/index.js @@ -0,0 +1,16 @@ +/* + * Copyright 1999-2018 Alibaba Group Holding Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import Welcome from './Welcome'; + +export default Welcome; diff --git a/pigx-register/src/main/resources/static/console-fe/src/reducers/subscribers.js b/pigx-register/src/main/resources/static/console-fe/src/reducers/subscribers.js new file mode 100644 index 000000000..89c4e812e --- /dev/null +++ b/pigx-register/src/main/resources/static/console-fe/src/reducers/subscribers.js @@ -0,0 +1,41 @@ +/* + * Copyright 1999-2018 Alibaba Group Holding Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import request from '../utils/request'; +import { GET_SUBSCRIBERS, REMOVE_SUBSCRIBERS } from '../constants'; + +const initialState = { + subscribers: {}, +}; + +const getSubscribers = params => dispatch => + request.get('v1/ns/service/subscribers', { params }).then(data => { + dispatch({ + type: GET_SUBSCRIBERS, + data, + }); + }); +const removeSubscribers = () => dispatch => dispatch({ type: REMOVE_SUBSCRIBERS }); + +export default (state = initialState, action) => { + switch (action.type) { + case GET_SUBSCRIBERS: + return { ...state, ...action.data }; + case REMOVE_SUBSCRIBERS: + return { ...state, subscribers: {} }; + default: + return state; + } +}; + +export { getSubscribers, removeSubscribers }; diff --git a/pigx-register/src/main/resources/static/img/logo-2000-390.svg b/pigx-register/src/main/resources/static/img/logo-2000-390.svg new file mode 100644 index 000000000..8264c1aea --- /dev/null +++ b/pigx-register/src/main/resources/static/img/logo-2000-390.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/pigx-visual/pigx-codegen/src/main/resources/template/menu.sql.vm b/pigx-visual/pigx-codegen/src/main/resources/template/menu.sql.vm index 2abaf43e8..c8a353d2a 100644 --- a/pigx-visual/pigx-codegen/src/main/resources/template/menu.sql.vm +++ b/pigx-visual/pigx-codegen/src/main/resources/template/menu.sql.vm @@ -1,16 +1,16 @@ -- 该脚本不要直接执行, 注意维护菜单的父节点ID 默认 父节点1000 -- 菜单SQL -insert into `sys_menu` ( `parent_id`, `component`, `permission`, `type`, `path`, `icon`, `del_flag`, `create_time`, `sort`, `update_time`, `name`) - values ( '1000', 'views/${moduleName}/${pathName}/index', '', '0', '${pathName}', 'icon-bangzhushouji', '0', '2018-01-20 13:17:19', '8', '2018-07-29 13:38:19', '${comments}管理'); +insert into `sys_menu` ( `parent_id`, `path`, `permission`, `type`, `icon`, `del_flag`, `create_time`, `sort`, `update_time`, `name`) + values ( '1000', '/${moduleName}/${pathName}/index', '', '0', 'icon-bangzhushouji', '0', '2018-01-20 13:17:19', '8', '2018-07-29 13:38:19', '${comments}管理'); -- 按钮父菜单ID set @parentId = @@identity; -- 菜单对应按钮SQL -insert into `sys_menu` ( `parent_id`, `component`, `permission`, `type`, `path`, `icon`, `del_flag`, `create_time`, `sort`, `update_time`, `name`) - SELECT @parentId, null, '${moduleName}_${pathName}_add', '1', null, '1', '0', '2018-05-15 21:35:18', '0', '2018-07-29 13:38:59', '${comments}新增'; -insert into `sys_menu` ( `parent_id`, `component`, `permission`, `type`, `path`, `icon`, `del_flag`, `create_time`, `sort`, `update_time`, `name`) - SELECT @parentId, null, '${moduleName}_${pathName}_edit', '1', null, '1', '0', '2018-05-15 21:35:18', '1', '2018-07-29 13:38:59', '${comments}修改'; -insert into `sys_menu` ( `parent_id`, `component`, `permission`, `type`, `path`, `icon`, `del_flag`, `create_time`, `sort`, `update_time`, `name`) - SELECT @parentId, null, '${moduleName}_${pathName}_del', '1', null, '1', '0', '2018-05-15 21:35:18', '2', '2018-07-29 13:38:59', '${comments}删除'; +insert into `sys_menu` ( `parent_id`, `permission`, `type`, `path`, `icon`, `del_flag`, `create_time`, `sort`, `update_time`, `name`) + SELECT @parentId, '${moduleName}_${pathName}_add', '1', null, '1', '0', '2018-05-15 21:35:18', '0', '2018-07-29 13:38:59', '${comments}新增'; +insert into `sys_menu` ( `parent_id`, `permission`, `type`, `path`, `icon`, `del_flag`, `create_time`, `sort`, `update_time`, `name`) + SELECT @parentId, '${moduleName}_${pathName}_edit', '1', null, '1', '0', '2018-05-15 21:35:18', '1', '2018-07-29 13:38:59', '${comments}修改'; +insert into `sys_menu` ( `parent_id`, `permission`, `type`, `path`, `icon`, `del_flag`, `create_time`, `sort`, `update_time`, `name`) + SELECT @parentId, '${moduleName}_${pathName}_del', '1', null, '1', '0', '2018-05-15 21:35:18', '2', '2018-07-29 13:38:59', '${comments}删除'; diff --git a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/controller/PayCheckBatchController.java b/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/controller/PayCheckBatchController.java deleted file mode 100755 index 6dad14c97..000000000 --- a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/controller/PayCheckBatchController.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ - -package com.pig4cloud.pigx.pay.controller; - -import com.baomidou.mybatisplus.core.toolkit.Wrappers; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.pig4cloud.pigx.common.core.util.R; -import com.pig4cloud.pigx.common.log.annotation.SysLog; -import com.pig4cloud.pigx.pay.entity.PayCheckBatch; -import com.pig4cloud.pigx.pay.service.PayCheckBatchService; -import org.springframework.security.access.prepost.PreAuthorize; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import io.swagger.annotations.ApiParam; -import lombok.AllArgsConstructor; -import org.springframework.web.bind.annotation.*; - - -/** - * 批量对账 - * - * @author lengleng - * @date 2019-05-28 23:57:38 - */ -@RestController -@AllArgsConstructor -@RequestMapping("/paycheckbatch" ) -@Api(value = "paycheckbatch", tags = "paycheckbatch管理") -public class PayCheckBatchController { - - private final PayCheckBatchService payCheckBatchService; - - /** - * 分页查询 - * @param page 分页对象 - * @param payCheckBatch 批量对账 - * @return - */ - @GetMapping("/page" ) - public R getPayCheckBatchPage(Page page, PayCheckBatch payCheckBatch) { - return R.ok(payCheckBatchService.page(page, Wrappers.query(payCheckBatch))); - } - - - /** - * 通过id查询批量对账 - * @param id id - * @return R - */ - @GetMapping("/{id}" ) - public R getById(@PathVariable("id" ) Long id) { - return R.ok(payCheckBatchService.getById(id)); - } - - /** - * 新增批量对账 - * @param payCheckBatch 批量对账 - * @return R - */ - @SysLog("新增批量对账" ) - @PostMapping - @PreAuthorize("@pms.hasPermission('pay_paycheckbatch_add')" ) - public R save(@RequestBody PayCheckBatch payCheckBatch) { - return R.ok(payCheckBatchService.save(payCheckBatch)); - } - - /** - * 修改批量对账 - * @param payCheckBatch 批量对账 - * @return R - */ - @SysLog("修改批量对账" ) - @PutMapping - @PreAuthorize("@pms.hasPermission('pay_paycheckbatch_edit')" ) - public R updateById(@RequestBody PayCheckBatch payCheckBatch) { - return R.ok(payCheckBatchService.updateById(payCheckBatch)); - } - - /** - * 通过id删除批量对账 - * @param id id - * @return R - */ - @SysLog("删除批量对账" ) - @DeleteMapping("/{id}" ) - @PreAuthorize("@pms.hasPermission('pay_paycheckbatch_del')" ) - public R removeById(@PathVariable Long id) { - return R.ok(payCheckBatchService.removeById(id)); - } - -} diff --git a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/controller/PayCheckMistakeController.java b/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/controller/PayCheckMistakeController.java deleted file mode 100755 index 080842960..000000000 --- a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/controller/PayCheckMistakeController.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ - -package com.pig4cloud.pigx.pay.controller; - -import com.baomidou.mybatisplus.core.toolkit.Wrappers; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.pig4cloud.pigx.common.core.util.R; -import com.pig4cloud.pigx.common.log.annotation.SysLog; -import com.pig4cloud.pigx.pay.entity.PayCheckMistake; -import com.pig4cloud.pigx.pay.service.PayCheckMistakeService; -import org.springframework.security.access.prepost.PreAuthorize; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import io.swagger.annotations.ApiParam; -import lombok.AllArgsConstructor; -import org.springframework.web.bind.annotation.*; - - -/** - * 差错 - * - * @author lengleng - * @date 2019-05-28 23:57:50 - */ -@RestController -@AllArgsConstructor -@RequestMapping("/paycheckmistake" ) -@Api(value = "paycheckmistake", tags = "paycheckmistake管理") -public class PayCheckMistakeController { - - private final PayCheckMistakeService payCheckMistakeService; - - /** - * 分页查询 - * @param page 分页对象 - * @param payCheckMistake 差错 - * @return - */ - @GetMapping("/page" ) - public R getPayCheckMistakePage(Page page, PayCheckMistake payCheckMistake) { - return R.ok(payCheckMistakeService.page(page, Wrappers.query(payCheckMistake))); - } - - - /** - * 通过id查询差错 - * @param id id - * @return R - */ - @GetMapping("/{id}" ) - public R getById(@PathVariable("id" ) Long id) { - return R.ok(payCheckMistakeService.getById(id)); - } - - /** - * 新增差错 - * @param payCheckMistake 差错 - * @return R - */ - @SysLog("新增差错" ) - @PostMapping - @PreAuthorize("@pms.hasPermission('pay_paycheckmistake_add')" ) - public R save(@RequestBody PayCheckMistake payCheckMistake) { - return R.ok(payCheckMistakeService.save(payCheckMistake)); - } - - /** - * 修改差错 - * @param payCheckMistake 差错 - * @return R - */ - @SysLog("修改差错" ) - @PutMapping - @PreAuthorize("@pms.hasPermission('pay_paycheckmistake_edit')" ) - public R updateById(@RequestBody PayCheckMistake payCheckMistake) { - return R.ok(payCheckMistakeService.updateById(payCheckMistake)); - } - - /** - * 通过id删除差错 - * @param id id - * @return R - */ - @SysLog("删除差错" ) - @DeleteMapping("/{id}" ) - @PreAuthorize("@pms.hasPermission('pay_paycheckmistake_del')" ) - public R removeById(@PathVariable Long id) { - return R.ok(payCheckMistakeService.removeById(id)); - } - -} diff --git a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/entity/PayCheckBatch.java b/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/entity/PayCheckBatch.java deleted file mode 100755 index 5763bccf9..000000000 --- a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/entity/PayCheckBatch.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ - -package com.pig4cloud.pigx.pay.entity; - -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableLogic; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import io.swagger.annotations.ApiModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.math.BigDecimal; -import java.time.LocalDateTime; - -/** - * 批量对账 - * - * @author lengleng - * @date 2019-05-28 23:57:38 - */ -@Data -@TableName("pay_check_batch") -@EqualsAndHashCode(callSuper = true) -@ApiModel(description = "批量对账") -public class PayCheckBatch extends Model { - private static final long serialVersionUID = 1L; - - /** - * - */ - @TableId - private Long id; - /** - * - */ - private String status; - /** - * - */ - private String remark; - /** - * - */ - private String batchNo; - /** - * - */ - private LocalDateTime billDate; - /** - * - */ - private String billType; - /** - * - */ - private String handleStatus; - /** - * - */ - private String bankType; - /** - * - */ - private Integer mistakeCount; - /** - * - */ - private Integer unhandleMistakeCount; - /** - * - */ - private Integer tradeCount; - /** - * - */ - private Integer bankTradeCount; - /** - * - */ - private BigDecimal tradeAmount; - /** - * - */ - private BigDecimal bankTradeAmount; - /** - * - */ - private BigDecimal refundAmount; - /** - * - */ - private BigDecimal bankRefundAmount; - /** - * - */ - private BigDecimal bankFee; - /** - * - */ - private String orgCheckFilePath; - /** - * - */ - private String releaseCheckFilePath; - /** - * - */ - private String releaseStatus; - /** - * - */ - private String checkFailMsg; - /** - * - */ - private String bankErrMsg; - /** - * - */ - @TableLogic - private String delFlag; - /** - * - */ - private LocalDateTime createTime; - /** - * - */ - private LocalDateTime updateTime; - /** - * 租户ID - */ - private Integer tenantId; - -} diff --git a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/entity/PayCheckMistake.java b/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/entity/PayCheckMistake.java deleted file mode 100755 index d3c62c7b8..000000000 --- a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/entity/PayCheckMistake.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ - -package com.pig4cloud.pigx.pay.entity; - -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableLogic; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import io.swagger.annotations.ApiModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.math.BigDecimal; -import java.time.LocalDateTime; - -/** - * 差错 - * - * @author lengleng - * @date 2019-05-28 23:57:50 - */ -@Data -@TableName("pay_check_mistake") -@EqualsAndHashCode(callSuper = true) -@ApiModel(description = "差错") -public class PayCheckMistake extends Model { - private static final long serialVersionUID = 1L; - - /** - * - */ - @TableId - private Long id; - /** - * 商品名称 - */ - private String productName; - /** - * 订单号 - */ - private String orderNo; - /** - * 支付流水号 - */ - private String trxNo; - /** - * 银行订单号 - */ - private String bankOrderNo; - /** - * 银行流水号 - */ - private String bankTrxNo; - /** - * 订单金额 - */ - private BigDecimal orderAmount; - /** - * 平台收入 - */ - private BigDecimal platIncome; - /** - * 费率 - */ - private BigDecimal feeRate; - /** - * 平台成本 - */ - private BigDecimal platCost; - /** - * 平台利润 - */ - private BigDecimal platProfit; - /** - * 状态(参考枚举:paymentrecordstatusenum) - */ - private String status; - /** - * 支付通道编号 - */ - private String payWayCode; - /** - * 支付通道名称 - */ - private String payWayName; - /** - * 支付成功时间 - */ - private LocalDateTime paySuccessTime; - /** - * 完成时间 - */ - private LocalDateTime completeTime; - /** - * 是否退款(100:是,101:否,默认值为:101) - */ - private String isRefund; - /** - * 退款次数(默认值为:0) - */ - private Integer refundTimes; - /** - * 成功退款总金额 - */ - private BigDecimal successRefundAmount; - /** - * 备注 - */ - private String remark; - /** - * - */ - private String batchNo; - /** - * - */ - private LocalDateTime billDate; - /** - * - */ - private LocalDateTime createTime; - /** - * - */ - private LocalDateTime updateTime; - /** - * - */ - @TableLogic - private String delFlag; - /** - * 租户ID - */ - private Integer tenantId; - -} diff --git a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/mapper/PayCheckBatchMapper.java b/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/mapper/PayCheckBatchMapper.java deleted file mode 100755 index 9437cfcda..000000000 --- a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/mapper/PayCheckBatchMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ - -package com.pig4cloud.pigx.pay.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.pig4cloud.pigx.pay.entity.PayCheckBatch; - -/** - * 批量对账 - * - * @author lengleng - * @date 2019-05-28 23:57:38 - */ -public interface PayCheckBatchMapper extends BaseMapper { - -} diff --git a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/mapper/PayCheckMistakeMapper.java b/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/mapper/PayCheckMistakeMapper.java deleted file mode 100755 index 63f4268aa..000000000 --- a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/mapper/PayCheckMistakeMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ - -package com.pig4cloud.pigx.pay.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.pig4cloud.pigx.pay.entity.PayCheckMistake; - -/** - * 差错 - * - * @author lengleng - * @date 2019-05-28 23:57:50 - */ -public interface PayCheckMistakeMapper extends BaseMapper { - -} diff --git a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/PayCheckBatchService.java b/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/PayCheckBatchService.java deleted file mode 100755 index 88c84f9c8..000000000 --- a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/PayCheckBatchService.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ - -package com.pig4cloud.pigx.pay.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.pig4cloud.pigx.pay.entity.PayCheckBatch; - -/** - * 批量对账 - * - * @author lengleng - * @date 2019-05-28 23:57:38 - */ -public interface PayCheckBatchService extends IService { - -} diff --git a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/PayCheckMistakeService.java b/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/PayCheckMistakeService.java deleted file mode 100755 index 77f9784ff..000000000 --- a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/PayCheckMistakeService.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ - -package com.pig4cloud.pigx.pay.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.pig4cloud.pigx.pay.entity.PayCheckMistake; - -/** - * 差错 - * - * @author lengleng - * @date 2019-05-28 23:57:50 - */ -public interface PayCheckMistakeService extends IService { - -} diff --git a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/impl/PayCheckBatchServiceImpl.java b/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/impl/PayCheckBatchServiceImpl.java deleted file mode 100755 index e11a8c67d..000000000 --- a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/impl/PayCheckBatchServiceImpl.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ -package com.pig4cloud.pigx.pay.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.pig4cloud.pigx.pay.entity.PayCheckBatch; -import com.pig4cloud.pigx.pay.mapper.PayCheckBatchMapper; -import com.pig4cloud.pigx.pay.service.PayCheckBatchService; -import org.springframework.stereotype.Service; - -/** - * 批量对账 - * - * @author lengleng - * @date 2019-05-28 23:57:38 - */ -@Service -public class PayCheckBatchServiceImpl extends ServiceImpl implements PayCheckBatchService { - -} diff --git a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/impl/PayCheckMistakeServiceImpl.java b/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/impl/PayCheckMistakeServiceImpl.java deleted file mode 100755 index 4110281ff..000000000 --- a/pigx-visual/pigx-pay/src/main/java/com/pig4cloud/pigx/pay/service/impl/PayCheckMistakeServiceImpl.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ -package com.pig4cloud.pigx.pay.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.pig4cloud.pigx.pay.entity.PayCheckMistake; -import com.pig4cloud.pigx.pay.mapper.PayCheckMistakeMapper; -import com.pig4cloud.pigx.pay.service.PayCheckMistakeService; -import org.springframework.stereotype.Service; - -/** - * 差错 - * - * @author lengleng - * @date 2019-05-28 23:57:50 - */ -@Service -public class PayCheckMistakeServiceImpl extends ServiceImpl implements PayCheckMistakeService { - -} diff --git a/pigx-visual/pigx-pay/src/main/resources/mapper/PayCheckBatchMapper.xml b/pigx-visual/pigx-pay/src/main/resources/mapper/PayCheckBatchMapper.xml deleted file mode 100755 index 7d15fa34a..000000000 --- a/pigx-visual/pigx-pay/src/main/resources/mapper/PayCheckBatchMapper.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pigx-visual/pigx-pay/src/main/resources/mapper/PayCheckMistakeMapper.xml b/pigx-visual/pigx-pay/src/main/resources/mapper/PayCheckMistakeMapper.xml deleted file mode 100755 index 2ce7c6527..000000000 --- a/pigx-visual/pigx-pay/src/main/resources/mapper/PayCheckMistakeMapper.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -