diff --git a/src/main/resources/sql/20190116/device_isp_table_data.sql b/src/main/resources/sql/20190116/device_isp_table_data.sql new file mode 100644 index 000000000..5f84bfec8 --- /dev/null +++ b/src/main/resources/sql/20190116/device_isp_table_data.sql @@ -0,0 +1,111 @@ +CREATE TABLE `sys_device_info` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `device_type` varchar(32) NOT NULL COMMENT '设备类型', + `ip_addr` varchar(128) NOT NULL, + `device_id` int(11) NOT NULL COMMENT '设备ID,相同设备可对应多个运营商', + `link_id` int(11) NOT NULL COMMENT '链路号索引', + `isp` int(11) NOT NULL COMMENT '运营商编码,例如ktel-mxpe:1001', + `entrance_id` int(11) NOT NULL COMMENT '地域 1-astana 2-alamty', + `status` int(11) NOT NULL COMMENT '0-未接入 1-接入 2-部分接入', + `create_time` datetime NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; + + +CREATE TABLE `sys_isp_info` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `isp_name` varchar(64) NOT NULL COMMENT '通信运营商名称', + `isp_code` int(11) NOT NULL COMMENT '通信运营商编码', + `business_type_name` varchar(64) NOT NULL COMMENT '业务类型名称', + `business_type_code` int(11) NOT NULL COMMENT '业务类型编码', + `isp_key_name` varchar(64) NOT NULL COMMENT '运营商唯一标识名称,例如ktel-mxpe:1001', + `isp_key_code` int(11) NOT NULL COMMENT '运营商唯一标识编码', + `create_time` datetime NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; + +##INSERT INTO `galaxy-dev`.`sys_isp_info` (`id`, `isp_name`, `isp_code`, `business_type_name`, `business_type_code`, `isp_key_name`, `isp_key_code`, `#create_time`) VALUES ('1', '1', '1', '1', '1', '1', '1', '2019-01-14 19:10:55'); + +INSERT INTO `galaxy-dev`.`sys_isp_info` ( `isp_name`, `isp_code`, `business_type_name`, `business_type_code`, `isp_key_name`, `isp_key_code`, `create_time`) VALUES ( 'ktel', '100', 'mxpe', '1', 'ktel-mxpe', '1001', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_isp_info` ( `isp_name`, `isp_code`, `business_type_name`, `business_type_code`, `isp_key_name`, `isp_key_code`, `create_time`) VALUES ( 'ktel', '100', 'bng', '2', 'ktel-bng', '1002', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_isp_info` ( `isp_name`, `isp_code`, `business_type_name`, `business_type_code`, `isp_key_name`, `isp_key_code`, `create_time`) VALUES ( 'ktel', '100', 'mask', '1', 'ktel-mask', '1003', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_isp_info` ( `isp_name`, `isp_code`, `business_type_name`, `business_type_code`, `isp_key_name`, `isp_key_code`, `create_time`) VALUES ( 'transtel', '101', 'ALL', '0', 'transtel', '1010', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_isp_info` ( `isp_name`, `isp_code`, `business_type_name`, `business_type_code`, `isp_key_name`, `isp_key_code`, `create_time`) VALUES ( 'tnsplus', '102', 'ALL', '0', 'tnsplus', '1020', '2019-01-14 19:10:55'); + +##INSERT INTO `galaxy-dev`.`sys_device_info` (`id`, `device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('1', '10g', '10.4.2.1', '1', '3', '1', '1', '0', '2019-01-14 19:05:38'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.1', '1', '0', '1001', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.1', '1', '1', '1001', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.1', '1', '2', '1001', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.1', '1', '3', '1001', '1', '1', '2019-01-14 19:10:55'); + +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.2', '2', '0', '1001', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.2', '2', '1', '1001', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.2', '2', '2', '1001', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.2', '2', '3', '1001', '1', '1', '2019-01-14 19:10:55'); + +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.3', '3', '0', '1001', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.3', '3', '1', '1001', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.3', '3', '2', '1001', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.3', '3', '3', '1001', '1', '1', '2019-01-14 19:10:55'); + +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.4', '4', '0', '1010', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.4', '4', '1', '1010', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.4', '4', '2', '1010', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.4.2.4', '4', '3', '1010', '1', '1', '2019-01-14 19:10:55'); + +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.4.2.5', '5', '0', '1002', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.4.2.6', '6', '0', '1002', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.4.2.7', '7', '0', '1002', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.4.2.8', '8', '0', '1002', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.4.2.9', '9', '0', '1010', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.4.2.10', '10', '0', '1020', '1', '1', '2019-01-14 19:10:55'); +#INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.4.2.11', '11', '0', '预留100G设备7', '1', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.1', '1', '0', '1001', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.1', '1', '1', '1001', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.1', '1', '2', '1001', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.1', '1', '3', '1001', '2', '1', '2019-01-14 19:10:55'); + +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.2', '2', '0', '1001', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.2', '2', '1', '1001', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.2', '2', '2', '1001', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.2', '2', '3', '1001', '2', '1', '2019-01-14 19:10:55'); + +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.3', '3', '0', '1001', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.3', '3', '1', '1001', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.3', '3', '2', '1001', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.3', '3', '3', '1001', '2', '1', '2019-01-14 19:10:55'); + +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.4', '4', '0', '1020', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.4', '4', '1', '1020', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.4', '4', '2', '1020', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.4', '4', '3', '1020', '2', '1', '2019-01-14 19:10:55'); + +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.5', '5', '0', '1020', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.5', '5', '1', '1020', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.5', '5', '2', '1020', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.5', '5', '3', '1020', '2', '1', '2019-01-14 19:10:55'); + +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.6', '6', '0', '1020', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.6', '6', '1', '1020', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.6', '6', '2', '1020', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.6', '6', '3', '1020', '2', '1', '2019-01-14 19:10:55'); + +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.7', '7', '0', '1020', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.7', '7', '1', '1020', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.7', '7', '2', '1020', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.7', '7', '3', '1020', '2', '1', '2019-01-14 19:10:55'); + +#INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.8', '8', '0', '预留10G设备8', '2', '1', '2019-01-14 19:10:55'); +#INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.8', '8', '1', '预留10G设备8', '2', '1', '2019-01-14 19:10:55'); +#INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.8', '8', '2', '预留10G设备8', '2', '1', '2019-01-14 19:10:55'); +#INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('10g', '10.3.2.8', '8', '3', '预留10G设备8', '2', '1', '2019-01-14 19:10:55'); + +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.3.2.9', '9', '0', '1002', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.3.2.10', '10', '0', '1002', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.3.2.11', '11', '0', '1002', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.3.2.12', '12', '0', '1002', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.3.2.13', '13', '0', '1002', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.3.2.14', '14', '0', '1002', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.3.2.15', '15', '0', '1002', '2', '1', '2019-01-14 19:10:55'); +INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.3.2.16', '16', '0', '1002', '2', '1', '2019-01-14 19:10:55'); +#INSERT INTO `galaxy-dev`.`sys_device_info` (`device_type`, `ip_addr`, `device_id`, `link_id`, `isp`, `entrance_id`, `status`, `create_time`) VALUES ('100g', '10.3.2.17', '17', '0', '预留100G设备7', '2', '1', '2019-01-14 19:10:55');