Files
hzdyjs/超星数据移植与定时同步/sys_dept.sql
T
2025-11-13 18:07:07 +08:00

68 lines
8.2 KiB
PL/PgSQL

/*
Navicat Premium Dump SQL
Source Server : 47.99.164.66 hn02le.34lkdLKD
Source Server Type : MySQL
Source Server Version : 50736 (5.7.36)
Source Host : 47.99.164.66:3306
Source Schema : hzdyjs_xg
Target Server Type : MySQL
Target Server Version : 50736 (5.7.36)
File Encoding : 65001
Date: 12/11/2025 13:05:05
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for sys_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept` (
`dept_id` bigint(20) NOT NULL COMMENT '部门id',
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户编号',
`parent_id` bigint(20) DEFAULT '0' COMMENT '父部门id',
`ancestors` varchar(500) DEFAULT '' COMMENT '祖级列表',
`dept_name` varchar(30) DEFAULT '' COMMENT '部门名称',
`dept_category` varchar(100) DEFAULT NULL COMMENT '部门类别编码',
`order_num` int(4) DEFAULT '0' COMMENT '显示顺序',
`leader` bigint(20) DEFAULT NULL COMMENT '负责人',
`phone` varchar(11) DEFAULT NULL COMMENT '联系电话',
`email` varchar(50) DEFAULT NULL COMMENT '邮箱',
`status` char(1) DEFAULT '0' COMMENT '部门状态(0正常 1停用)',
`del_flag` char(1) DEFAULT '0' COMMENT '删除标志(0代表存在 1代表删除)',
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`dept_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='部门表';
-- ----------------------------
-- Records of sys_dept
-- ----------------------------
BEGIN;
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');
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');
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');
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');
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');
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');
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');
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');
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');
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');
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');
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');
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');
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');
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');
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');
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;