sys_dept.sql 8.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. Navicat Premium Dump SQL
  3. Source Server : 47.99.164.66 hn02le.34lkdLKD
  4. Source Server Type : MySQL
  5. Source Server Version : 50736 (5.7.36)
  6. Source Host : 47.99.164.66:3306
  7. Source Schema : hzdyjs_xg
  8. Target Server Type : MySQL
  9. Target Server Version : 50736 (5.7.36)
  10. File Encoding : 65001
  11. Date: 12/11/2025 13:05:05
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for sys_dept
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `sys_dept`;
  19. CREATE TABLE `sys_dept` (
  20. `dept_id` bigint(20) NOT NULL COMMENT '部门id',
  21. `tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户编号',
  22. `parent_id` bigint(20) DEFAULT '0' COMMENT '父部门id',
  23. `ancestors` varchar(500) DEFAULT '' COMMENT '祖级列表',
  24. `dept_name` varchar(30) DEFAULT '' COMMENT '部门名称',
  25. `dept_category` varchar(100) DEFAULT NULL COMMENT '部门类别编码',
  26. `order_num` int(4) DEFAULT '0' COMMENT '显示顺序',
  27. `leader` bigint(20) DEFAULT NULL COMMENT '负责人',
  28. `phone` varchar(11) DEFAULT NULL COMMENT '联系电话',
  29. `email` varchar(50) DEFAULT NULL COMMENT '邮箱',
  30. `status` char(1) DEFAULT '0' COMMENT '部门状态(0正常 1停用)',
  31. `del_flag` char(1) DEFAULT '0' COMMENT '删除标志(0代表存在 1代表删除)',
  32. `create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
  33. `create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
  34. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  35. `update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
  36. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  37. PRIMARY KEY (`dept_id`)
  38. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='部门表';
  39. -- ----------------------------
  40. -- Records of sys_dept
  41. -- ----------------------------
  42. BEGIN;
  43. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (100, '000000', 0, '0', '杭州第一技师学院', NULL, 0, NULL, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, '2025-06-20 16:22:20', 1, '2025-06-27 14:24:09');
  44. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (101, '000000', 100, '0,100', '二级学院', 'xx-ejxy', 1, NULL, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, '2025-06-20 16:22:20', 1, '2025-07-23 10:49:03');
  45. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (102, '000000', 100, '0,100', '行政单位', NULL, 0, NULL, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, '2025-06-16 14:58:45', 1, '2025-06-27 14:27:58');
  46. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (108, '000000', 102, '0,100,102', '院领导', NULL, 0, NULL, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, '2025-06-16 14:58:45', 1, '2025-06-27 14:27:51');
  47. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (109, '000000', 102, '0,100,102', '办公室', NULL, 2, NULL, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, '2025-06-20 16:22:20', 1, '2025-06-27 14:28:06');
  48. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (1938484510047297538, '000000', 102, '0,100,102', '人事处', NULL, 3, NULL, NULL, NULL, '0', '0', 103, 1, '2025-06-27 14:28:17', 1, '2025-06-27 14:28:17');
  49. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (1938484570826956801, '000000', 102, '0,100,102', '教务处', NULL, 4, NULL, NULL, NULL, '0', '0', 103, 1, '2025-06-27 14:28:32', 1, '2025-06-27 14:28:32');
  50. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (1938484606247854081, '000000', 102, '0,100,102', '科研处', NULL, 5, NULL, NULL, NULL, '0', '0', 103, 1, '2025-06-27 14:28:40', 1, '2025-06-27 14:28:40');
  51. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (1938484642188845057, '000000', 102, '0,100,102', '学生处', NULL, 6, NULL, NULL, NULL, '0', '0', 103, 1, '2025-06-27 14:28:49', 1, '2025-06-27 14:28:49');
  52. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (1938484683662123010, '000000', 102, '0,100,102', '计划财务处', NULL, 7, NULL, NULL, NULL, '0', '0', 103, 1, '2025-06-27 14:28:59', 1, '2025-06-27 14:28:59');
  53. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (1938484727379353601, '000000', 102, '0,100,102', '招生就业处', NULL, 8, NULL, NULL, NULL, '0', '0', 103, 1, '2025-06-27 14:29:09', 1, '2025-06-27 14:29:09');
  54. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (1938484762884136961, '000000', 102, '0,100,102', '培训处', NULL, 9, NULL, NULL, NULL, '0', '0', 103, 1, '2025-06-27 14:29:17', 1, '2025-06-27 14:29:17');
  55. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (1938484793632579586, '000000', 102, '0,100,102', '总务处', NULL, 10, NULL, NULL, NULL, '0', '0', 103, 1, '2025-06-27 14:29:25', 1, '2025-06-27 14:29:25');
  56. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (1938484834736758786, '000000', 102, '0,100,102', '保卫处', NULL, 11, NULL, NULL, NULL, '0', '0', 103, 1, '2025-06-27 14:29:35', 1, '2025-06-27 14:29:35');
  57. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (1938484865401315330, '000000', 102, '0,100,102', '基建处', NULL, 12, NULL, NULL, NULL, '0', '0', 103, 1, '2025-06-27 14:29:42', 1, '2025-06-27 14:29:42');
  58. INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `dept_category`, `order_num`, `leader`, `phone`, `email`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES (1938484923752472578, '000000', 102, '0,100,102', '临安校区综合办', NULL, 13, NULL, NULL, NULL, '0', '0', 103, 1, '2025-06-27 14:29:56', 1, '2025-06-27 14:29:56');
  59. COMMIT;
  60. SET FOREIGN_KEY_CHECKS = 1;