新增:部门管理对接用户信息(新增所属部门),并完善查看部门详情(增加上级部门显示)

This commit is contained in:
2023-02-07 22:04:22 +08:00
parent 908af28235
commit c44503b7ea
17 changed files with 77 additions and 19 deletions

View File

@@ -30,6 +30,7 @@ CREATE TABLE IF NOT EXISTS `sys_user` (
`description` varchar(512) DEFAULT NULL COMMENT '描述',
`status` tinyint(1) unsigned DEFAULT 1 COMMENT '状态1启用 2禁用',
`pwd_reset_time` datetime DEFAULT NULL COMMENT '最后一次修改密码的时间',
`dept_id` bigint(20) unsigned DEFAULT NULL COMMENT '部门ID',
`create_user` bigint(20) unsigned NOT NULL COMMENT '创建人',
`create_time` datetime NOT NULL COMMENT '创建时间',
`update_user` bigint(20) unsigned NOT NULL COMMENT '修改人',
@@ -38,6 +39,7 @@ CREATE TABLE IF NOT EXISTS `sys_user` (
UNIQUE INDEX `uk_username`(`username`) USING BTREE,
UNIQUE INDEX `uk_email`(`email`) USING BTREE,
INDEX `idx_create_user`(`create_user`) USING BTREE,
INDEX `idx_dept_id`(`dept_id`) USING BTREE,
INDEX `idx_update_user`(`update_user`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户表';