1.更新初始化数据!

This commit is contained in:
Wang Chen Chen
2023-11-10 12:13:02 +08:00
parent d9b864a5b0
commit bf224b8bf2
4 changed files with 180 additions and 61 deletions

View File

@@ -11,32 +11,12 @@
Target Server Version : 80034 (8.0.34)
File Encoding : 65001
Date: 09/11/2023 16:22:22
Date: 10/11/2023 11:55:27
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for china_area
-- ----------------------------
DROP TABLE IF EXISTS `china_area`;
CREATE TABLE `china_area` (
`area_code` bigint UNSIGNED NOT NULL COMMENT '行政代码 [ 唯一 ]',
`level` tinyint UNSIGNED NOT NULL COMMENT '层级 1.省级 2.城市 3.区域',
`parent_code` bigint UNSIGNED NOT NULL DEFAULT 0 COMMENT '父级行政代码',
`zip_code` mediumint UNSIGNED NOT NULL DEFAULT 0 COMMENT '邮政编码',
`city_code` char(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '区号',
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '名称',
`short_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '简称',
`merger_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '组合名',
`pinyin` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '拼音',
`lng` decimal(10, 6) NOT NULL DEFAULT 0.000000 COMMENT '经度',
`lat` decimal(10, 6) NOT NULL DEFAULT 0.000000 COMMENT '纬度',
PRIMARY KEY (`area_code`) USING BTREE,
UNIQUE INDEX `area_code`(`area_code` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '[ 通用 ] 中国行政地区表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of china_area
-- ----------------------------

View File

@@ -24,9 +24,25 @@ FOREIGN_KEY_CHECKS = 0;
INSERT INTO `cms_project` (`project_id`, `project_name`, `linkman`, `contact_number`, `area_code`, `address`,
`sort`, `password`, `status`, `dept_id`, `create_time`, `create_user`,
`last_update_time`, `last_update_user`)
VALUES (10001, '默认项目', '李默认', '0755-1234567', 440307000000, '南湾街道 左右云创谷A栋1座',
1, '$2a$10$omnFqGPZ3/pMfctkVkxiQOYMUC8pp1iNsaJDI8vQmLdtIdAXvlS8K',
1, 10001, '2023-08-11 11:17:33', 19980817, '2023-08-11 10:12:24', 19980817);
VALUES
(10001, '默认项目', '李默认', '0755-1234567', 440307000000, '南湾街道 左右云创谷A栋1座', 1, '$2a$10$omnFqGPZ3/pMfctkVkxiQOYMUC8pp1iNsaJDI8vQmLdtIdAXvlS8K', 1, 10002, '2023-08-11 11:17:33', 19980817, '2023-08-11 10:12:24', 19980817),
(10002, '南北水调工程', '刘南北', '0755-1234568', 440307000000, '平湖街道 南北水调工程运营大楼', 1, '$2a$10$omnFqGPZ3/pMfctkVkxiQOYMUC8pp1iNsaJDI8vQmLdtIdAXvlS8K', 1, 10003, '2023-08-11 11:17:33', 19980817, '2023-08-11 10:12:24', 19980817),
(10003, '西气东输工程', '王西东', '0755-1234569', 440307000000, '龙城街道 西气东输起点部门', 1, '$2a$10$omnFqGPZ3/pMfctkVkxiQOYMUC8pp1iNsaJDI8vQmLdtIdAXvlS8K', 1, 10004, '2023-08-11 11:17:33', 19980817, '2023-08-11 10:12:24', 19980817);
-- ----------------------------
-- Records of cms_device
-- ----------------------------
INSERT INTO `cms_device` (`device_id`, `device_name`, `status`, `project_id`, `create_time`, `create_user`, `last_update_time`, `last_update_user`)
VALUES
(6569649088961, '喷气式飞机', 1, 10001, '2023-11-08 18:07:23', 19980817, '2023-11-08 18:07:23', 19980817),
(6569649088962, '大型运输机', 1, 10001, '2023-11-08 18:07:23', 19980817, '2023-11-08 18:07:23', 19980817),
(6569649151233, '挖掘机', 1, 10002, '2023-11-08 18:07:27', 19980817, '2023-11-08 18:07:27', 19980817),
(6569649151234, '抽水泵', 1, 10002, '2023-11-08 18:07:27', 19980817, '2023-11-08 18:07:27', 19980817),
(6569649151235, '燃气管道', 1, 10003, '2023-11-08 18:07:27', 19980817, '2023-11-08 18:07:27', 19980817),
(6569649151236, '塔吊', 1, 10003, '2023-11-08 18:07:27', 19980817, '2023-11-08 18:07:27', 19980817),
(6569649223207, '推土机', 1, 10003, '2023-11-08 18:07:31', 19980817, '2023-11-08 18:07:31', 19980817);
SET
FOREIGN_KEY_CHECKS = 1;

View File

@@ -20,10 +20,12 @@ SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Records of pms_dept
-- ----------------------------
INSERT INTO `pms_dept` (`dept_id`, `parent_id`, `dept_name`, `leader`, `leader_mobile`, `ancestors`, `sort`,
`description`, `create_time`, `create_user`, `last_update_time`, `last_update_user`)
VALUES (10001, 0, '集团', '张集团', '15066666666', '0', 1, '集团',
'2022-06-10 23:07:51', 19980817, '2022-06-10 23:07:51', 19980817);
INSERT INTO `pms_dept` (`dept_id`, `parent_id`, `dept_name`, `leader`, `leader_mobile`, `sort`, `description`, `ancestors`, `create_time`, `create_user`, `last_update_time`, `last_update_user`)
VALUES
(10001, 0, '集团', '张集团', '15055555555', 1, '集团', '0', '2022-06-10 23:07:51', 19980817, '2022-06-10 23:07:51', 19980817),
(10002, 10001, '研发部', '李研发', '15666666666', 5, '研发部', '0,10001', '2023-11-10 11:45:22', 19980817, '2023-11-10 11:45:22', 19980817),
(10003, 10001, '运营部', '陈运营', '15777777777', 20, '运营部', '0,10001', '2023-11-10 11:45:43', 19980817, '2023-11-10 11:45:43', 19980817),
(10004, 10001, '生产部', '王生产', '17888888888', 30, '生产部', '0,10001', '2023-11-10 11:46:18', 19980817, '2023-11-10 11:46:18', 19980817);
-- ----------------------------
@@ -31,8 +33,9 @@ VALUES (10001, 0, '集团', '张集团', '15066666666', '0', 1, '集团',
-- ----------------------------
INSERT INTO `pms_role` (`role_id`, `role_name`, `sort`, `description`, `create_time`, `create_user`,
`last_update_time`, `last_update_user`)
VALUES (10001, '管理员', 1, '管理员', '2022-06-10 23:11:09', 19980817, '2022-06-10 23:11:09',
19980817);
VALUES (10001, '管理员', 10, '管理员', '2022-06-10 23:11:09', 19980817, '2022-06-10 23:11:09', 19980817),
(10002, '测试员', 20, '测试员', '2023-11-09 10:11:49', 19980817, '2023-11-09 10:11:49', 19980817),
(10003, '运营员', 30, '运营员', '2023-11-09 10:12:01', 19980817, '2023-11-09 10:12:01', 19980817);
-- ----------------------------
@@ -41,16 +44,93 @@ VALUES (10001, '管理员', 1, '管理员', '2022-06-10 23:11:09', 19980817, '20
INSERT INTO `pms_user` (`user_id`, `avatar`, `username`, `mobile`, `email`, `nickname`, `password`,
`gender`, `dept_id`, `status`, `admin_flag`, `expired`, `create_time`,
`create_user`, `last_update_time`, `last_update_user`)
VALUES (19980817, 'https://images.xaaef.com/08afb399498d4fecb6211c7c26175e8e.jpg', 'admin', '15666666666',
'admin@qq.com', '超级管理员', '$2a$10$jU7Bg8YLLeF.eoGOzSuZE./ns.lctGOQBX0RTXvhy3HXv8RikUaka', 1,
10001, 1, 1, NULL, '2021-05-14 11:17:33', 19980817, '2021-12-17 10:12:24', 19980817);
VALUES
(19980817, 'https://images.xaaef.com/08afb399498d4fecb6211c7c26175e8e.jpg', 'admin', '15666666666', 'admin@qq.com', '超级管理员', '$2a$10$jU7Bg8YLLeF.eoGOzSuZE./ns.lctGOQBX0RTXvhy3HXv8RikUaka', 1, 10001, 1, 1, NULL, '2021-05-14 11:17:33', 19980817, '2021-12-17 10:12:24', 19980817),
(6569516164032, 'https://oss.xaaef.com/molly/2023/11/8/654b3d6f4d522e95c87025c4.jpg', 'test456', '15984798797', 'test456@qq.com', '测试用户456', '$2a$10$9DLAUHW.SlgTYnbnNtZ5g.x6qLHuuDISDfCdD8gieaKQsuRvfiknW', 1, 10002, 1, 0, NULL, '2023-11-08 15:48:55', 19980817, '2023-11-09 11:47:15', 19980817),
(6569516878992, 'https://oss.xaaef.com/molly/2023/11/8/654b3d774d522e95c87025c5.jpg', 'test123', '15649849498', 'test123@qq.com', '测试用户123', '$2a$10$EPhFJOZzm7Nth50sBfFHhOTod3M7JGJybAkELequvyIYBmZWDLcAG', 0, 10003, 1, 0, '2024-11-08 15:33:19', '2023-11-08 15:49:40', 19980817, '2023-11-09 10:13:33', 6569516878992);
-- ----------------------------
-- Records of pms_user_role
-- ----------------------------
INSERT INTO `pms_user_role` (`user_id`, `role_id`)
VALUES (19980817, 10001);
INSERT INTO `pms_user_role` (`user_id`, `role_id`) VALUES
(10001, 10001),
(10001, 10002),
(10001, 10003),
(10001, 10004),
(10001, 10005),
(10001, 10006),
(10001, 10007),
(10001, 10008),
(10001, 10009),
(10001, 10010),
(10001, 10011),
(10001, 10012),
(10001, 10013),
(10001, 10014),
(10001, 10015),
(10001, 10016),
(10001, 10017),
(10001, 10018),
(10001, 10019),
(10001, 10020),
(10001, 10021),
(10001, 10023),
(10001, 10024),
(10001, 10025),
(10001, 10026),
(10001, 10027),
(10001, 10028),
(10001, 10029),
(10001, 10030),
(10001, 10031),
(10001, 10032),
(10001, 10033),
(10001, 10034),
(10001, 10035),
(10001, 10036),
(10001, 10038),
(10001, 10039),
(10001, 10040),
(10001, 10041),
(10001, 10042),
(10001, 10043),
(10001, 10044),
(10001, 10045),
(10001, 10046),
(10001, 10047),
(10001, 10048),
(10001, 10049),
(10001, 10050),
(10001, 10051),
(10001, 10052),
(10001, 10053),
(10001, 10054),
(10002, 10041),
(10002, 10042),
(10002, 10044),
(10002, 10045),
(10002, 10046),
(10002, 10047),
(10003, 10017),
(10003, 10018),
(10003, 10019),
(10003, 10051),
(10003, 10023),
(10003, 10024),
(10003, 10025),
(10003, 10028),
(10003, 10029),
(10003, 10030),
(10003, 10032),
(10003, 10033),
(10003, 10003),
(10003, 10004),
(10003, 10005),
(10003, 10006),
(10003, 10007);
SET FOREIGN_KEY_CHECKS = 1;

View File

@@ -54,32 +54,75 @@ VALUES ('master', 10001);
-- ----------------------------
-- Records of sys_template_menu
-- ----------------------------
INSERT INTO `sys_template_menu` (`template_id`, `menu_id`)
VALUES (10001, 10003),
(10001, 10004),
(10001, 10005),
(10001, 10007),
(10001, 10017),
(10001, 10018),
(10001, 10019),
(10001, 10020),
(10001, 10021),
(10001, 10022),
(10001, 10023),
(10001, 10024),
(10001, 10025),
(10001, 10026),
(10001, 10027),
(10001, 10028),
(10001, 10029),
(10001, 10030),
(10001, 10031),
(10001, 10038),
(10001, 10039),
(10001, 10040),
(10001, 10041),
(10001, 10042),
(10001, 10043);
INSERT INTO `sys_template_menu` (`template_id`, `menu_id`) VALUES
(10001, 10048),
(10001, 10049),
(10001, 10050),
(10001, 10052),
(10001, 10053),
(10001, 10054),
(10001, 10003),
(10001, 10004),
(10001, 10005),
(10001, 10007),
(10001, 10017),
(10001, 10018),
(10001, 10019),
(10001, 10020),
(10001, 10021),
(10001, 10023),
(10001, 10024),
(10001, 10025),
(10001, 10026),
(10001, 10027),
(10001, 10028),
(10001, 10029),
(10001, 10030),
(10001, 10031),
(10001, 10038),
(10001, 10039),
(10001, 10040),
(10001, 10041),
(10001, 10042),
(10001, 10043),
(10001, 10044),
(10001, 10045),
(10001, 10046),
(10001, 10047),
(10002, 10017),
(10002, 10018),
(10002, 10019),
(10002, 10020),
(10002, 10021),
(10002, 10023),
(10002, 10024),
(10002, 10025),
(10002, 10026),
(10002, 10027),
(10002, 10028),
(10002, 10029),
(10002, 10030),
(10002, 10031),
(10002, 10003),
(10002, 10004),
(10002, 10005),
(10002, 10007),
(10004, 10052),
(10004, 10053),
(10004, 10054),
(10004, 10038),
(10004, 10039),
(10004, 10040),
(10003, 10048),
(10003, 10049),
(10003, 10050),
(10003, 10041),
(10003, 10042),
(10003, 10043),
(10003, 10044),
(10003, 10045),
(10003, 10046),
(10003, 10047);