欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

权限管理快速入门_01

程序员文章站 2022-03-05 23:22:01
...

一、表结构设计

一般权限管理由5张表构成(3张主表2张中间表):包括用户表 、角色表、权限表、用户角色中间表、角色权限中间表.

注:中间表只存储2张主表的主键id即可,只是为了关联在一起查询相关的数据而已

二、权限方法

声明:常规通用方法

2.1. 根据用户id,查询用户拥有的角色列表
/**
/**
     * 根据用户id,查询用户拥有的角色列表
     *
     * @param id 用户ID
     * @return
     */
    @Override
    public List<Role> findRolesById(Long id) {
        List<Role> roles = new ArrayList<>();
        UserRole t = new UserRole();
        t.setUserId(id);
        //1.根据用户ID查询用户角色中间表,获取该用户拥有哪些角色
        List<UserRole> userRoleList = userRoleMapper.select(t);
        List<Long> rids = new ArrayList<>();
        //2.把获取的角色,循环遍历出,角色ID列表
        if (!CollectionUtils.isEmpty(userRoleList)) {
            for (UserRole userRole : userRoleList) {
                rids.add(userRole.getRoleId());
            }
            //3.循环遍历出角色ID列表,获取每一个ID对应的角色,封装到角色列表容器中
            if (!CollectionUtils.isEmpty(rids)) {
                for (Long rid : rids) {
                    Role role = roleMapper.selectByPrimaryKey(rid);
                    if (role != null) {
                        roles.add(role);
                    }
                }
            }
        }
        return roles;
    }
2.2. 根据角色id,查询用户拥有的权限列表
    /**
     * 根据角色id,查询用户拥有的权限列表
     *
     * @param roles 用户的角色
     * @return
     */
    @Override
    public List<Menu> findMenuById(List<Role> roles) {
        List<Menu> menus = new ArrayList<>();
        if (!CollectionUtils.isEmpty(roles)) {
            Set<Long> menuIds = new HashSet<>();//存放用户的菜单id容器
            List<RoleMenu> roleMenus;
            for (Role role : roles) {
                //1.根据角色ID查询权限ID
                Example o = new Example(RoleMenu.class);
                o.createCriteria().andEqualTo("roleId", role.getId());
                roleMenus = roleMenuMapper.selectByExample(o);
                //2.把获取的角色菜单,循环遍历出,菜单ID列表
                if (!CollectionUtils.isEmpty(roleMenus)) {
                    for (RoleMenu roleMenu : roleMenus) {
                        menuIds.add(roleMenu.getMenuId());
                    }
                }
            }
            //3.把获取的菜单ID列表循环遍历,查询出对应的菜单,最后封装容器中
            if (!CollectionUtils.isEmpty(menuIds)) {
                for (Long menuId : menuIds) {
                    //该用户所有的菜单
                    Menu menu = menuMapper.selectByPrimaryKey(menuId);
                    if (menu != null) {
                        menus.add(menu);
                    }
                }
            }
        }
        return menus;
    }
2.3. 获取用户拥有权限的菜单列表
 /**
     * 获取用户拥有权限的菜单列表
     * 一般把数据以树的形式展现
     *
     * @return
     */
    @Override
    public List<MenuNodeVO> findMenu() {
        List<Menu> menus;
        List<MenuNodeVO> menuNodeVOS = new ArrayList<>();
        ActiveUser activeUser = (ActiveUser) SecurityUtils.getSubject().getPrincipal();
        if (activeUser.getUser().getType() == 0) {
            //超级管理员
            menus = menuMapper.selectAll();
        } else {
            menus = activeUser.getMenus();
        }
        if (!CollectionUtils.isEmpty(menus)) {
            menuNodeVOS = MenuConverter.converterToMenuNodeVO(menus);
        }
        //构建树形菜单
        return MenuTreeBuilder.build(menuNodeVOS);
    }

彩蛋: 组装数据成树工具类
package com.coderman.api.system.util;

import com.coderman.api.system.vo.MenuNodeVO;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * Created by gblfy on 2020/2/6 15:34
 */
public class MenuTreeBuilder {


    /**
     * 构建多级菜单树
     * @param nodes
     * @return
     */
    public static List<MenuNodeVO> build(List<MenuNodeVO> nodes){
        //根节点
        List<MenuNodeVO> rootMenu = new ArrayList<>();
        for (MenuNodeVO nav : nodes) {
            if(nav.getParentId()==0){
                rootMenu.add(nav);
            }
        }
        /* 根据Menu类的order排序 */
        Collections.sort(rootMenu,MenuNodeVO.order());
        /*为根菜单设置子菜单,getChild是递归调用的*/
        for (MenuNodeVO nav : rootMenu) {
            /* 获取根节点下的所有子节点 使用getChild方法*/
            List<MenuNodeVO> childList = getChild(nav.getId(), nodes);
            nav.setChildren(childList);//给根节点设置子节点
        }
        return rootMenu;
    }

    /**
     * 获取子菜单
     * @param id
     * @param nodes
     * @return
     */
    private static List<MenuNodeVO> getChild(Long id, List<MenuNodeVO> nodes) {
        //子菜单
        List<MenuNodeVO> childList = new ArrayList<MenuNodeVO>();
        for (MenuNodeVO nav : nodes) {
            // 遍历所有节点,将所有菜单的父id与传过来的根节点的id比较
            //相等说明:为该根节点的子节点。
            if(nav.getParentId().equals(id)){
                childList.add(nav);
            }
        }
        //递归
        for (MenuNodeVO nav : childList) {
            nav.setChildren(getChild(nav.getId(), nodes));
        }
        Collections.sort(childList,MenuNodeVO.order());//排序
        //如果节点下没有子节点,返回一个空List(递归退出)
        if(childList.size() == 0){
            return new ArrayList<MenuNodeVO>();
        }
        return childList;
    }
}
补充表结构
/*Table structure for table `tb_menu` */

DROP TABLE IF EXISTS `tb_menu`;

CREATE TABLE `tb_menu` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单/按钮ID',
  `parent_id` bigint(20) DEFAULT NULL COMMENT '上级菜单ID',
  `menu_name` varchar(50) NOT NULL COMMENT '菜单/按钮名称',
  `url` varchar(50) DEFAULT NULL COMMENT '菜单URL',
  `perms` text COMMENT '权限标识',
  `icon` varchar(50) DEFAULT NULL COMMENT '图标',
  `type` char(2) NOT NULL COMMENT '类型 0菜单 1按钮',
  `order_num` bigint(20) DEFAULT NULL COMMENT '排序',
  `create_time` datetime NOT NULL COMMENT '创建时间',
  `modified_time` datetime DEFAULT NULL COMMENT '修改时间',
  `available` int(11) DEFAULT '1' COMMENT '0:不可用,1:可用',
  `open` int(1) DEFAULT '1' COMMENT '0:不展开,1:展开',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=341 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='菜单表';

/*Data for the table `tb_menu` */

insert  into `tb_menu`(`id`,`parent_id`,`menu_name`,`url`,`perms`,`icon`,`type`,`order_num`,`create_time`,`modified_time`,`available`,`open`) values (1,0,'系统管理','',NULL,'el-icon-setting','0',1,'2020-03-07 17:41:30','2020-04-18 12:29:15',1,0),(4,1,'菜单权限','/menus',NULL,'el-icon-help','0',3,'2020-03-07 18:57:42','2020-03-20 11:50:46',1,0),(5,0,'日志管理','/logs',NULL,'el-icon-camera','0',5,'2020-03-07 18:58:18','2020-04-30 18:29:29',1,0),(226,1,'用户管理','/users','users','el-icon-user','0',2,'2020-03-10 05:27:54','2020-04-23 20:04:36',1,0),(229,312,'物资管理','','el-icon-date','el-icon-date','0',1,'2020-03-10 05:34:08','2020-04-30 18:29:20',1,1),(230,229,'物资入库','/inStocks','el-icon-date','el-icon-date','0',1,'2020-03-10 05:34:28','2020-04-30 19:13:01',1,1),(234,226,'用户添加','','user:add','el-icon-plus','1',1,'2020-03-10 05:50:44','2020-03-10 07:51:56',1,0),(235,1,'角色管理','/roles','','el-icon-postcard','0',3,'2020-03-10 05:51:28','2020-03-14 05:09:56',1,0),(239,226,'用户删除','','user:delete','el-icon-picture','1',1,'2020-03-10 06:05:30','2020-03-10 08:10:19',1,0),(240,226,'用户编辑','','user:edit','el-icon-video-camera-solid','1',1,'2020-03-10 06:06:30','2020-03-10 07:52:28',1,0),(241,235,'角色编辑','','role:edit','el-icon-s-promotion','1',2,'2020-03-10 06:11:03','2020-03-11 11:40:19',1,0),(242,235,'角色删除','','role:delete','el-icon-s-marketing','1',3,'2020-03-10 06:15:29','2020-03-11 11:43:36',1,0),(247,4,'添加菜单','','menu:add','el-icon-s-opportunity','1',1,'2020-03-10 07:55:10','2020-04-27 09:59:43',1,0),(249,4,'修改菜单','','menu:update','el-icon-share','1',2,'2020-03-10 07:56:55','2020-03-15 13:29:29',1,0),(250,4,'删除菜单','','menu:delete','el-icon-folder-opened','1',3,'2020-03-10 07:57:38','2020-03-15 13:29:41',1,0),(251,235,'分配权限','','role:authority','el-icon-document-add','1',1,'2020-03-10 08:13:22','2020-03-11 11:39:30',1,0),(253,1,'欢迎页面','/welcome','welcome:view','el-icon-star-off','0',1,'2020-03-10 08:46:44','2020-04-15 20:49:47',1,0),(254,226,'分配角色','','user:assign','el-icon-s-tools','1',3,'2020-03-11 01:32:29','2020-04-27 10:58:30',1,0),(255,235,'添加角色','','role:add','el-icon-help','1',1,'2020-03-11 01:34:18','2020-03-11 01:34:18',1,0),(256,226,'禁用用户','','user:status','el-icon-circle-close','1',1,'2020-03-11 06:50:04','2020-03-14 05:05:49',1,0),(258,226,'用户更新','','user:update','el-icon-refresh','1',1,'2020-03-11 08:26:54','2020-03-11 08:26:54',1,0),(259,235,'角色更新','','role:update','el-icon-refresh-left','1',1,'2020-03-11 11:45:20','2020-03-11 11:45:20',1,0),(260,235,'状态更新','','role:status','el-icon-refresh','1',1,'2020-03-14 05:07:02','2020-03-14 05:07:24',1,0),(261,1,'部门管理','/departments','','el-icon-s-home','0',3,'2020-03-15 06:05:48','2020-03-22 22:53:42',1,0),(262,261,'添加部门','','department:add','el-icon-plus','1',1,'2020-03-15 11:57:42','2020-03-21 12:37:21',1,0),(263,261,'编辑院系','','department:edit','el-icon-edit','1',1,'2020-03-15 11:59:52','2020-03-15 12:16:36',1,0),(264,261,'更新院系','','department:update','el-icon-refresh','1',1,'2020-03-15 12:02:34','2020-03-15 12:16:32',1,0),(265,261,'删除院系',NULL,'department:delete','el-icon-delete','1',1,'2020-03-15 12:03:21','2020-03-15 12:03:21',1,0),(267,229,'物资资料','/products','','el-icon-goods','0',2,'2020-03-16 09:01:02','2020-04-30 19:11:56',1,0),(268,229,'物资类别','/productCategorys','','el-icon-star-off','0',2,'2020-03-16 09:01:48','2020-03-22 22:45:40',1,0),(269,311,'物资来源','/suppliers','','el-icon-coordinate','0',5,'2020-03-16 12:35:10','2020-04-11 13:56:16',1,0),(270,229,'物资发放','','','el-icon-goods','0',5,'2020-03-16 13:55:49','2020-03-22 22:39:01',1,1),(271,5,'登入日志','/loginLog','login:log','el-icon-date','0',1,'2020-03-20 10:31:12','2020-04-04 20:01:02',1,0),(272,303,'疫情辟谣','/rumors',NULL,'el-icon-help','0',5,'2020-03-20 19:29:40','2020-05-01 12:41:01',1,0),(273,303,'全国疫情','/map','map:view','el-icon-s-opportunity','0',1,'2020-03-20 11:32:02','2020-03-20 11:32:02',1,1),(274,267,'添加物资','','product:add','el-icon-s-opportunity','1',1,'2020-03-21 02:04:24','2020-03-21 02:04:24',1,0),(276,267,'上传图片',NULL,'upload:image','el-icon-finished','1',2,'2020-03-21 02:05:21','2020-03-21 02:05:21',1,0),(277,267,'更新物资',NULL,'product:update','el-icon-folder','1',3,'2020-03-21 02:05:56','2020-03-21 02:05:56',1,0),(278,267,'编辑物资',NULL,'product:edit','el-icon-edit','1',1,'2020-03-21 02:06:23','2020-03-21 02:06:23',1,0),(279,269,'删除来源','','supplier:delete','el-icon-document-delete','1',1,'2020-03-21 02:17:29','2020-03-21 12:32:22',1,0),(280,269,'更新来源','','supplier:update','el-icon-paperclip','1',1,'2020-03-21 02:18:34','2020-03-21 12:36:41',1,0),(281,269,'添加来源',NULL,'supplier:add','el-icon-document-add','1',1,'2020-03-21 02:19:02','2020-03-21 02:19:02',1,1),(282,269,'编辑来源',NULL,'supplier:edit','el-icon-scissors','1',2,'2020-03-21 02:19:36','2020-03-21 02:19:36',1,1),(283,268,'添加类别','','productCategory:add',' el-icon-folder-add','1',1,'2020-03-21 02:26:12','2020-03-21 02:44:22',1,0),(284,268,'删除类别',NULL,'productCategory:delete','el-icon-delete','1',1,'2020-03-21 02:27:05','2020-03-21 02:28:49',1,0),(285,268,'编辑类别',NULL,'productCategory:edit','el-icon-scissors','1',2,'2020-03-21 02:27:42','2020-03-21 02:27:42',1,0),(286,268,'更新类别',NULL,'productCategory:update',' el-icon-coordinate','1',1,'2020-03-21 02:28:17','2020-03-21 02:28:17',1,0),(295,0,'其他管理','','','el-icon-s-marketing','0',10,'2020-03-22 01:21:56','2020-03-24 10:25:16',1,0),(296,295,'swagger文档','/swagger',NULL,'el-icon-document','0',1,'2020-03-22 01:22:48','2020-03-22 01:35:53',1,0),(297,295,'监控管理','','','el-icon-warning','0',1,'2020-03-22 02:47:10','2020-03-22 02:47:10',1,0),(298,297,'SQL监控','/druid',NULL,'el-icon-view','0',1,'2020-03-22 02:48:05','2020-03-22 02:49:50',1,0),(299,271,'删除日志','','loginLog:delete','el-icon-delete','1',1,'2020-03-22 21:55:44','2020-03-22 21:55:44',1,0),(300,271,'批量删除','','loginLog:batchDelete','el-icon-delete-solid','1',1,'2020-03-22 22:19:26','2020-03-22 22:19:26',1,0),(301,4,'编辑菜单','','menu:edit','el-icon-edit','1',1,'2020-03-22 23:12:25','2020-03-22 23:12:25',1,0),(303,0,'健康报备','','','el-icon-platform-eleme','0',3,'2020-03-24 10:11:53','2020-04-27 17:06:12',1,0),(304,303,'健康打卡','','','el-icon-s-cooperation','0',1,'2020-03-24 10:12:57','2020-03-24 10:12:57',1,0),(305,303,'查看情况',NULL,NULL,'el-icon-c-scale-to-original','0',2,'2020-03-24 10:13:49','2020-03-24 10:16:44',1,1),(307,5,'系统日志','/logs','','el-icon-edit','0',1,'2020-04-04 19:04:53','2020-04-04 20:01:07',1,1),(308,307,'删除日志','','log:delete','el-icon-circle-close','1',1,'2020-04-04 19:59:20','2020-04-04 19:59:20',1,1),(309,307,'批量删除',NULL,'log:batchDelete','el-icon-document-delete','1',2,'2020-04-04 19:59:59','2020-04-04 19:59:59',1,0),(310,311,'物资去处','/consumers','','el-icon-edit','0',1,'2020-04-05 10:08:21','2020-04-05 10:08:21',1,0),(311,312,'物资流向',NULL,NULL,'el-icon-edit','0',3,'2020-04-05 10:16:59','2020-04-30 18:40:43',1,0),(312,0,'业务管理',NULL,NULL,'el-icon-edit','0',2,'2020-04-05 10:19:07','2020-04-11 13:56:54',1,1),(316,229,'物资库存','/stocks','','el-icon-edit','0',5,'2020-04-16 08:45:08','2020-04-16 08:45:08',1,0),(317,226,'导出表格','','user:export','el-icon-edit','1',1,'2020-04-17 18:02:05','2020-04-17 18:02:05',1,0),(318,295,'图标管理','/icons','','el-icon-edit','0',1,'2020-04-21 12:06:33','2020-04-21 12:06:33',1,1),(319,1,'公告管理','/notices','','el-icon-s-flag','0',4,'2020-04-21 12:07:46','2020-04-21 12:23:05',1,0),(320,319,'公告发布','/notices/add','','el-icon-edit','1',1,'2020-04-21 12:26:56','2020-04-21 12:26:56',1,1),(321,1,'附件管理','/attachments','','el-icon-picture-outline','0',2,'2020-04-25 10:52:17','2020-04-25 10:52:17',1,1),(322,310,'添加去处','','consumer:add','el-icon-plus','1',2,'2020-04-27 16:57:04','2020-04-27 16:58:21',1,1),(323,310,'删除去处',NULL,'consumer:delete','el-icon-delete','1',1,'2020-04-27 16:57:42','2020-04-27 16:57:42',1,0),(324,310,'编辑去处','','consumer:edit','el-icon-edit','1',1,'2020-04-27 16:59:17','2020-04-27 16:59:17',1,0),(325,310,'更新去处',NULL,'consumer:update','el-icon-star-off','1',1,'2020-04-27 17:00:18','2020-04-27 17:00:18',1,1),(326,230,'添加入库','','inStock:in','el-icon-plus','1',1,'2020-04-27 17:07:04','2020-04-27 17:07:04',1,1),(328,230,'入库明细',NULL,'inStock:detail','el-icon-zoom-in','1',2,'2020-04-27 17:08:25','2020-04-27 17:08:25',1,0),(329,4,'导出菜单',NULL,'menu:export','el-icon-edit','1',1,'2020-04-27 17:26:40','2020-04-27 17:26:40',1,0),(331,267,'删除物资',NULL,'product:delete','el-icon-delete','1',1,'2020-04-30 18:27:02','2020-04-30 19:05:31',1,0),(332,267,'回收物资','','product:remove','el-icon-remove','1',1,'2020-04-30 18:56:48','2020-04-30 18:56:48',1,1),(333,267,'物资审核',NULL,'product:publish','el-icon-edit','1',1,'2020-04-30 18:58:38','2020-04-30 19:05:42',1,0),(336,267,'物资还原',NULL,'product:back','el-icon-top-left','1',1,'2020-04-30 19:06:22','2020-04-30 19:06:22',1,0),(337,230,'入库回收','','inStock:remove','el-icon-remove','1',1,'2020-04-30 19:12:56','2020-04-30 19:12:56',1,1),(338,230,'入库审核',NULL,'inStock:publish','el-icon-edit','1',1,'2020-04-30 19:13:32','2020-04-30 19:13:32',1,0),(339,230,'删除记录',NULL,'inStock:delete','el-icon-delete','1',1,'2020-04-30 19:14:03','2020-04-30 19:14:03',1,0),(340,230,'入库还原','','inStock:back','el-icon-d-arrow-left','1',1,'2020-04-30 19:17:27','2020-04-30 19:17:27',1,0);

/*Table structure for table `tb_role` */

DROP TABLE IF EXISTS `tb_role`;

CREATE TABLE `tb_role` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角色ID',
  `role_name` varchar(100) NOT NULL COMMENT '角色名称',
  `remark` varchar(100) DEFAULT NULL COMMENT '角色描述',
  `create_time` datetime NOT NULL COMMENT '创建时间',
  `modified_time` datetime DEFAULT NULL COMMENT '修改时间',
  `status` int(1) DEFAULT '1' COMMENT '是否可用,0:不可用,1:可用',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=144 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='角色表';

/*Data for the table `tb_role` */

insert  into `tb_role`(`id`,`role_name`,`remark`,`create_time`,`modified_time`,`status`) values (0,'admin33','拥有系统的最高权限.','2019-06-14 00:00:00','2020-04-27 21:29:29',1),(77,'Redis监控员','负责Redis模块','2019-06-14 20:49:22','2019-11-11 16:46:57',1),(78,'系统监控员','负责整个系统监控模块','2019-06-14 20:50:07','2019-11-11 22:30:02',1),(79,'跑批人员','负责任务调度跑批模块','2019-06-14 20:51:02','2019-11-16 10:42:54',1),(80,'开发人员','拥有代码生成模块的权限','2019-06-14 20:51:26','2019-11-11 16:47:05',1),(105,'java程序员~','java程序员,java程序员','2019-11-11 00:00:00','2020-03-09 12:06:55',1),(125,'测试用户','测试用户','2019-11-15 18:59:19','2019-11-15 18:59:19',1),(126,'蔡徐坤','美国校队队长','2019-11-22 15:57:08','2019-11-22 15:57:08',1),(127,'鹿晗','铁血硬汉','2019-11-22 15:57:32','2019-11-22 15:57:32',1),(128,'乔碧萝','美落天仙','2019-11-22 15:58:00','2019-11-22 15:58:00',1),(135,'用户添加人员','只拥有用户添加的权限','2020-03-11 02:39:57','2020-03-11 02:39:57',1),(136,'进货员','采购口罩的帅哥,拥有采购商品的权限','2020-03-11 00:00:00','2020-03-11 03:12:38',1),(137,'linux运维人员','负责产品的运维。','2020-03-11 03:13:29','2020-03-11 03:13:29',1),(138,'测试员工','登入测试系统的员工,无删除,无修改权限','2020-03-14 04:57:52','2020-03-14 04:57:52',1),(139,'辅导员老师','可以查看学生健康报备的详细情况','2020-03-15 05:15:31','2020-03-15 05:15:31',1),(140,'系主任','系主任,管理院系。','2020-03-15 10:49:20','2020-03-15 10:49:20',1),(141,'物资入库操作员','角色拥有物资管理入库的权限','2020-03-24 00:00:00','2020-03-24 10:23:36',1),(143,'超级管理员','拥有系统的最高权限','2020-04-21 10:34:12','2020-04-21 10:34:12',1);

/*Table structure for table `tb_role_menu` */

DROP TABLE IF EXISTS `tb_role_menu`;

CREATE TABLE `tb_role_menu` (
  `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  `menu_id` bigint(20) NOT NULL COMMENT '菜单/按钮ID'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='角色菜单关联表';

/*Data for the table `tb_role_menu` */

insert  into `tb_role_menu`(`role_id`,`menu_id`) values (105,7),(105,6),(80,247),(80,250),(80,227),(80,1),(80,4),(80,5),(77,1),(77,240),(77,235),(77,251),(77,255),(77,259),(77,260),(77,241),(77,242),(77,267),(77,226),(77,229),(1,226),(1,256),(1,258),(1,254),(1,265),(1,249),(1,235),(1,260),(1,242),(1,267),(1,5),(1,227),(1,228),(1,1),(1,261),(1,4),(1,229),(78,261),(78,263),(78,264),(78,226),(78,239),(78,4),(78,247),(78,249),(78,250),(78,281),(78,5),(78,227),(78,1),(78,229),(78,269),(139,1),(139,249),(139,263),(139,265),(139,312),(139,229),(139,230),(139,284),(139,286),(139,311),(139,281),(139,272),(139,273),(139,5),(139,271),(139,4),(139,261),(139,268),(139,269),(139,303),(141,253),(141,229),(141,230),(141,272),(141,273),(141,302),(141,1),(141,312),(141,303),(143,1),(143,253),(143,226),(143,234),(143,239),(143,240),(143,256),(143,258),(143,317),(143,254),(143,301),(143,249),(143,250),(143,235),(143,251),(143,255),(143,259),(143,260),(143,241),(143,242),(143,261),(143,262),(143,263),(143,264),(143,265),(143,312),(143,229),(143,230),(143,267),(143,274),(143,278),(143,275),(143,276),(143,277),(143,268),(143,283),(143,284),(143,286),(143,285),(143,270),(143,316),(143,311),(143,310),(143,269),(143,279),(143,280),(143,281),(143,282),(143,303),(143,273),(143,304),(143,305),(143,272),(143,302),(143,5),(143,271),(143,299),(143,300),(143,307),(143,308),(143,309),(143,295),(143,296),(143,297),(143,298),(143,4),(126,229),(126,267),(126,274),(126,278),(126,275),(126,276),(126,277),(126,273),(126,272),(126,307),(126,308),(126,309),(126,295),(126,296),(126,297),(126,298),(126,318),(126,312),(126,303),(126,5),(2,1),(2,253),(2,226),(2,234),(2,239),(2,240),(2,256),(2,258),(2,317),(2,254),(2,321),(2,4),(2,247),(2,301),(2,249),(2,250),(2,235),(2,251),(2,255),(2,259),(2,260),(2,241),(2,242),(2,261),(2,262),(2,263),(2,264),(2,265),(2,319),(2,320),(2,312),(2,229),(2,230),(2,267),(2,274),(2,278),(2,275),(2,276),(2,277),(2,268),(2,283),(2,284),(2,286),(2,285),(2,270),(2,316),(2,311),(2,310),(2,269),(2,279),(2,280),(2,281),(2,282),(2,303),(2,273),(2,304),(2,305),(2,272),(2,302),(2,5),(2,271),(2,299),(2,300),(2,307),(2,308),(2,309),(2,295),(2,296),(2,297),(2,298),(2,318),(138,253),(138,226),(138,234),(138,240),(138,258),(138,317),(138,254),(138,321),(138,247),(138,301),(138,249),(138,255),(138,259),(138,260),(138,241),(138,262),(138,263),(138,264),(138,319),(138,320),(138,230),(138,274),(138,278),(138,277),(138,268),(138,283),(138,286),(138,285),(138,270),(138,316),(138,310),(138,280),(138,281),(138,282),(138,303),(138,273),(138,304),(138,305),(138,272),(138,5),(138,271),(138,299),(138,300),(138,307),(138,308),(138,309),(138,296),(138,297),(138,298),(138,1),(138,4),(138,235),(138,261),(138,312),(138,229),(138,267),(138,311),(138,269),(138,295),(125,253),(125,226),(125,234),(125,321),(125,4),(125,247),(125,301),(125,329),(125,249),(125,250),(125,251),(125,255),(125,259),(125,260),(125,263),(125,230),(125,326),(125,337),(125,338),(125,339),(125,340),(125,328),(125,274),(125,278),(125,332),(125,336),(125,276),(125,277),(125,268),(125,285),(125,270),(125,316),(125,311),(125,310),(125,324),(125,269),(125,280),(125,281),(125,282),(125,303),(125,273),(125,304),(125,305),(125,272),(125,302),(125,300),(125,309),(125,295),(125,296),(125,297),(125,298),(125,318),(125,1),(125,235),(125,261),(125,312),(125,229),(125,267),(125,5),(125,271),(125,307);

/*Table structure for table `tb_user` */

DROP TABLE IF EXISTS `tb_user`;

CREATE TABLE `tb_user` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  `username` varchar(50) NOT NULL COMMENT '用户名',
  `nickname` varchar(20) DEFAULT NULL,
  `email` varchar(128) DEFAULT NULL COMMENT '邮箱',
  `avatar` text COMMENT '头像',
  `phone_number` varchar(20) DEFAULT NULL COMMENT '联系电话',
  `status` int(1) NOT NULL COMMENT '状态 0锁定 1有效',
  `create_time` datetime NOT NULL COMMENT '创建时间',
  `modified_time` datetime DEFAULT NULL COMMENT '修改时间',
  `sex` int(1) DEFAULT NULL COMMENT '性别 0男 1女 2保密',
  `salt` varchar(255) DEFAULT NULL COMMENT '盐',
  `type` int(11) NOT NULL DEFAULT '1' COMMENT '0:超级管理员,1:系统用户',
  `password` varchar(128) NOT NULL COMMENT '密码',
  `birth` date DEFAULT NULL,
  `department_id` bigint(20) DEFAULT '1' COMMENT '部门id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=188 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户表';

/*Data for the table `tb_user` */

insert  into `tb_user`(`id`,`username`,`nickname`,`email`,`avatar`,`phone_number`,`status`,`create_time`,`modified_time`,`sex`,`salt`,`type`,`password`,`birth`,`department_id`) values (5,'zhangyukang','zhangyu','[email protected]','http://thirdqq.qlogo.cn/g?b=oidb&k=icTYjyV5afABvE1v4ge9SLg&s=100&t=1584195695','17744444444',1,'2019-06-14 21:12:16','2020-03-19 04:20:40',0,'E46E184B-BAE5-4EE0-B3D9-674A04F37DDE',0,'9690bbd5a58d2eeefb0b7ca1324a1dca','2020-03-27',1),(6,'Georgie','zhangyu','[email protected]','https://shiro.mrbird.cn:8080/febs/images/avatar/default.jpg','17766666666',1,'2019-06-14 21:15:09','2020-04-11 13:53:23',0,NULL,1,'dffc683378cdaa015a0ee9554c532225','2020-03-25',1),(42,'coderman','zhangyu','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13426528317',1,'2020-03-08 10:26:47','2020-04-27 12:23:12',1,'980783d3-618f-4b91-a7b8-9b9fafa6',1,'23c2a4e509ab9ab6f46ef35df9127c1d','2020-03-13',12),(54,'coderman','zhangyu```','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13426528317',1,'2020-03-08 10:32:54','2020-04-18 10:03:35',0,'7e00d9ad-2706-4ab7-8baa-155a2235',1,'f27a2c2bcd2f742f1196e0f96cbb0507','2020-04-03',1),(55,'coderman','zhangyu','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13426528317',1,'2020-03-08 10:32:57','2020-03-09 03:51:56',1,'00f68ad3-3a85-4323-bcb4-0af41d4c',1,'d5fe4ee094895c35c0dc40fbd0befe83','2020-03-12',1),(56,'coderman','zhangyu','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13426528317',1,'2020-03-08 10:33:00','2020-04-04 19:57:35',1,'37eb6e49-8ead-404f-9325-93fc9507',1,'5bf3d15435f5d970292d28f44d0cde1a','2020-03-20',1),(67,'xizhang','zhangyu','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13426528317',1,'2020-03-08 10:59:33','2020-03-08 10:59:33',1,'7fc38a7e-a509-4282-9ae4-6fda9a4c',1,'3f3f4e9eb26d6a8ed86884776a18a493','2020-03-24',1),(69,'coderman','zhangyu','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13426528317',1,'2020-03-08 11:02:39','2020-03-09 03:44:36',1,'ded0c6c5-36aa-4c81-a28b-22854d4b',1,'a4a36a084752c5edbb404a87cecabb83','2020-03-22',1),(71,'huangjing','xiaohuang','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','15079437282',1,'2020-03-08 11:08:58','2020-03-09 05:26:15',0,'fb90be8e-c71a-4ee0-81aa-2acc4197',1,'ffd25a3b6d3cc7fb0e2b7ae99cd72cfd','2020-03-06',1),(72,'章宇康','kangs~','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','15079437282',0,'2020-03-08 11:18:35','2020-03-09 05:26:08',0,'7a235999-57c5-488e-85cf-54cb216d',1,'98ed1a23386f76486fc65a359e32817e','2020-03-03',1),(74,'2313','123213','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','15245141241',1,'2020-03-08 11:33:14','2020-03-10 01:28:27',0,'566fc473-2781-44b3-ae6c-666606e1',1,'587d62b2ec410f30d970ac2f42046c6c','2020-03-24',1),(75,'coderman2','nickname','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13426524512',1,'2020-03-09 01:30:31','2020-04-18 12:29:03',1,'fa74ca50-6e42-4c5d-a454-39e6fe06',1,'e8c84adc4ef37e7d1385aa774e9431b0','2020-03-23',14),(76,'xiaopie','nanana','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13426521215',1,'2020-03-09 01:33:09','2020-03-09 03:49:32',1,'cf94c27b-b752-4d9d-a4a9-d096f166',1,'2e2a3935ec97359657d82bfb88b3175f','2020-03-30',1),(77,'xiaope','kimikn','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','15079437282',1,'2020-03-09 01:40:03','2020-03-09 01:40:03',1,'b5f9288d-1691-443f-99ff-a4ac2773',1,'863123f92dc86ce62d27245ec758335e','2020-03-16',1),(78,'uttest','setast','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13425124541',1,'2020-03-09 01:59:52','2020-03-09 03:45:37',0,'cd58a932-72d1-4a79-b3ef-cf8ed38c',1,'82a9345697d86864798daeba24656a6c','2020-03-18',1),(79,'9c07a0','喜欢123','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13656451241',1,'2020-03-09 02:08:56','2020-03-09 03:52:09',1,'b1f83d88-c843-46fb-8125-0934fe84cf4e',1,'0ae4c4e4a50dfcf5132e2d7041de0841','2020-03-19',1),(80,'4f9dac','xiaohfdsa','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13521245214',1,'2020-03-09 02:08:57','2020-03-09 03:39:47',0,'8a8b902e-cf22-48c0-b749-944a7e690452',1,'6dd80bb758f15cae9140dccb7bc57a4c','2020-03-09',1),(81,'0ae292','febsc','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13425621245',1,'2020-03-09 02:08:57','2020-03-14 09:09:51',1,'14621dcf-183b-4816-8d64-7670cc4b9928',1,'98993da499514930dea786f87a7f436e','2020-03-09',1),(84,'73b298',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:57','2020-03-09 02:08:57',NULL,'e1665066-f984-4a1e-a0ed-1a2ccc175694',1,'d51156a36bf8b3ae847c39c26e5f2dd2','2020-03-09',1),(85,'c69df1',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,0,'2020-03-09 02:08:57','2020-03-09 02:08:57',NULL,'f72f8b4e-1b39-4ec2-a9d8-524bfee2d2d4',1,'4cf19a98912a2854924d19d650c3179f','2020-03-09',1),(86,'265f4f',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,0,'2020-03-09 02:08:57','2020-03-09 02:08:57',NULL,'f1261ed6-bc65-4b74-9571-a40562b8073b',1,'623ae1075f296dbdc9f2af3c82d10bcc','2020-03-09',1),(87,'844bcc',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:57','2020-03-09 02:08:57',NULL,'10a0f209-0e87-4a9c-9ec0-45b69fc5510b',1,'eeded64da4b37869a72a19772f0f600e','2020-03-09',1),(89,'32c5a6',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:57','2020-03-09 02:08:57',NULL,'f69446ef-5db0-48ef-a54d-2e8971d9c006',1,'704dfafc0d09035c0ace3ab86dd10009','2020-03-09',1),(94,'6b551c','121212','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','15325154141',1,'2020-03-09 02:08:57','2020-04-01 10:39:10',1,'d7562c1c-2f5e-4f41-b240-81f024ea156d',1,'a9823c3147891c4b10cc640916fa6f85','2020-03-09',1),(96,'946fcc',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:57','2020-03-09 02:08:57',NULL,'d4bc0c6f-7f09-4209-a726-1024a0746cd8',1,'635a5225f7259af87e6aaf8eae995feb','2020-03-09',1),(97,'00f2d9',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:58','2020-03-09 02:08:58',NULL,'0216e676-636f-4bfa-99f0-25eb22914f7f',1,'26f79165456125fb068a9f0182a4edc3','2020-03-09',1),(98,'0aee3e',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:58','2020-03-09 02:08:58',NULL,'bac524d1-8dd7-41ec-8033-ac78d7dd7b71',1,'d51fc9d2a0b1a3bae488a8c4e4ba5e16','2020-03-09',1),(99,'ab3cc7',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:58','2020-03-09 02:08:58',NULL,'33423234-799a-4fe3-bb53-ce1e613fb17a',1,'8319596013fc6cbe29f2c03b33168f72','2020-03-09',1),(100,'b8c39d',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:58','2020-03-09 02:08:58',NULL,'6a54d7a7-fd8b-479d-9297-e4704f07aef6',1,'2dd394b5d3a53aac040e0bbffc158721','2020-03-09',1),(101,'2c4ad3',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:58','2020-03-09 02:08:58',NULL,'32c77485-445e-43a3-8314-2b55779bc655',1,'537f71c48e00d613c4623c53c4e8006d','2020-03-09',1),(102,'a33a05',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:58','2020-03-09 02:08:58',NULL,'296f5a9a-d0f9-4b3a-9d8d-877376244fb8',1,'26bb804ab0bacc465cb54c59ef869c71','2020-03-09',1),(103,'0cc7c1',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:58','2020-03-09 02:08:58',NULL,'ef5e43a2-098c-42fd-b85f-3f3dd7b9e7ce',1,'4dfb7b0c704c4b43957b09c065e8bb63','2020-03-09',1),(104,'cfa4e4',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:58','2020-03-09 02:08:58',NULL,'96d6eaf3-96fb-4989-80ee-718bfe3a328d',1,'1b655c6ad3e4c166eaff7a29d0dbf137','2020-03-09',1),(105,'5b1ec3',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,0,'2020-03-09 02:08:58','2020-03-09 02:08:58',NULL,'596b3f43-7a18-4861-8ae2-7c78943099ff',1,'6fd3e3b45d4c6a835bd00e6a2353fe3c','2020-03-09',1),(106,'d413c1',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:58','2020-03-09 02:08:58',NULL,'85d51298-92c0-4175-bf10-75714fd7d484',1,'97c3f1b06e60d443f679a223f8114ea6','2020-03-09',1),(107,'003f2b',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,0,'2020-03-09 02:08:58','2020-03-09 02:08:58',NULL,'609e2529-d540-4d47-82ed-128364d13d18',1,'84aa6a5777edeb9246ec9ba8691e93d9','2020-03-09',1),(109,'e070f8',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:58','2020-03-09 02:08:58',NULL,'b393c78d-1e73-46d4-aafe-4f4451eb6a34',1,'cc871a434dacd26416f079eb0cd57d7e','2020-03-09',1),(110,'98ec73','32323213','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','15097141421',1,'2020-03-09 02:08:58','2020-04-16 13:29:27',1,'437750f1-2bcf-44fa-b328-022fb270a61e',1,'b3c55b7b85a03d91481c4f62afd6ff79','2020-03-09',1),(111,'f280c9',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:58','2020-03-09 02:08:58',NULL,'8e364a9e-008a-4f0b-9e01-797c9645f2a3',1,'052b758f6e0ffd7ec28ebfecceb1a9c3','2020-03-09',1),(112,'cce680',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,0,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'9f94ff1e-2fde-4017-a445-d00ec0fe8069',1,'6c7953179599158f302042209dcff8f2','2020-03-09',1),(113,'b4328f',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'6a563765-ee32-4263-a52e-689ecd980957',1,'a650cc2995f2285ee6a022d115e70a28','2020-03-09',1),(114,'b11bf8',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,0,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'641c375b-c2ba-453e-87f9-86690867cb8c',1,'a03783cf4552fb976af567a63cb2ea85','2020-03-09',1),(115,'077649',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'89afca28-51c1-4b88-b9eb-2985d8fcbfdb',1,'acd5d843118a020fb8a9e59753126898','2020-03-09',1),(116,'55a299',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'76e76bb8-8942-4835-947a-788870adb813',1,'cd0f7116bc1bc3abce1fb0a34a60f0f6','2020-03-09',1),(117,'245705',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'4366355f-aaf7-4ae2-9cac-3fe5c2010b7f',1,'fa02e2d5eb0fece583c66a059caeff7b','2020-03-09',1),(118,'5d8f22',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,0,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'db3479a4-d6b6-47be-beb7-d0c8d4aa8f46',1,'1023b75372c2de61e76545adc2d34307','2020-03-09',1),(119,'d0ff21',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'295be040-bcd0-4809-a66e-2dc0d846fe7d',1,'ab071ac26d0324f494344d31effe3867','2020-03-09',1),(120,'7b3fe5',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'3ec4354a-a2c4-4221-8122-b36e069350c6',1,'561e77e1c02cd1089c3bfa5b244a68af','2020-03-09',1),(121,'401378',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'644963b8-cb61-4630-bc00-b0247c9264b6',1,'fb7c8c3b7c552f8b5f712bfe1a98cdd8','2020-03-09',1),(122,'983279',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'deeff240-81f8-4833-b047-2c1bb3d4bdb6',1,'157f8243aad225d75895055e18528d35','2020-03-09',1),(123,'ad96c3',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'5946627b-e684-4267-9a2f-57f9399ad803',1,'45e33362a0df93310be52c912a63d138','2020-03-09',1),(124,'d03c7d',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'3edaead9-275f-4fc2-a2d3-0a2dfd6f7b0b',1,'444dfa242b30dbec35110730c145a955','2020-03-09',1),(125,'c50b91',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'aebe7ec2-63dd-4a44-863e-4b2ef02873dd',1,'808087cd1a083518eaf66818a9a6ed19','2020-03-09',1),(126,'480bc4',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,0,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'86888065-10a4-4169-b3e9-c894cf5d0e62',1,'04bf244726d70a67dacf03918f45d768','2020-03-09',1),(127,'358a56',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'5abd53db-9b85-4bad-9d43-994ee303cd94',1,'34952fe64965b2b2dd39b1dcb580ce8f','2020-03-09',1),(128,'d27438',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,0,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'5e3cab06-1514-4743-8b3b-6d62114e7c71',1,'450328064b64f50f6cf5b69c7fc01c5f','2020-03-09',1),(129,'1b7339',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:08:59','2020-03-09 02:08:59',NULL,'9d608dce-e845-4c56-bda9-6135363f64a8',1,'77d65f76f425b6580a92376d506de333','2020-03-09',1),(130,'8a5afc',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:09:00','2020-03-09 02:09:00',NULL,'a4bfce2b-7f79-4c8d-8e69-1cdfe490884b',1,'d1684b5c966f1f12b19c4028f9c599f3','2020-03-09',1),(131,'78f7ce',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:09:00','2020-03-09 02:09:00',NULL,'84940ace-aae5-4bce-bdf0-797503980cb0',1,'af527ae2167fc88b103f02584392a3f7','2020-03-09',1),(132,'f5013b',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:09:00','2020-03-09 02:09:00',NULL,'8a08560c-2d7e-44dd-adeb-2e23dbc265d5',1,'901bdb83bbd304ab9cb1faf8aa1e104c','2020-03-09',1),(133,'333c93','xixixixi','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','15217454741',1,'2020-03-09 02:09:00','2020-03-11 01:30:33',0,'6470d76d-f7fd-43dc-9512-2b3af113b861',1,'08c405fb4a30b3d23f191c59cbe9ce5d','2020-03-09',1),(134,'0ad14c','111111e','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13426521241',0,'2020-03-09 02:09:00','2020-03-11 01:30:29',1,'fc431fb5-0c11-4bbe-8dc6-536b3b168964',1,'f629ddfbdcfae8b5231a37c2b1897a0a','2020-03-09',1),(135,'a11233',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:09:00','2020-03-09 02:09:00',NULL,'adcb9723-98b5-4410-9e7f-2da7457e8ec0',1,'6bcfb623e7ef643c61674ce008847fae','2020-03-09',1),(136,'f1ba92',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:09:00','2020-03-09 02:09:00',NULL,'2bc42f7f-a96d-425b-98a7-916646def1a4',1,'be7ecc92a11c3e9d6f01d67d7150e0bd','2020-03-09',1),(137,'d85408',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:09:00','2020-03-09 02:09:00',NULL,'e51ea121-63c4-44ae-a005-ea4912f5e463',1,'ad0b8e0545924a917285e0b7e1084aa6','2020-03-09',1),(138,'3a8c12',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:09:00','2020-03-09 02:09:00',NULL,'26eb1d33-85bf-47bf-be70-a316cc41bfbb',1,'2953352d93a6fc69f3c2092a7aea6994','2020-03-09',1),(140,'e42e02',NULL,'[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg',NULL,1,'2020-03-09 02:09:00','2020-03-09 02:09:00',NULL,'e6c93320-54ae-4a89-8235-68086e05f20c',1,'f6ad3623b2b80ab63e876a163211fd53','2020-03-09',1),(143,'71a327','xzzzz','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','15079487585',1,'2020-03-09 02:09:00','2020-03-16 13:11:31',1,'cd9dd9d7-a369-4018-80d2-dbd727033e9a',1,'3db7d3268e883452af1a889c0fd0fa2b','2020-03-09',1),(146,'61a9e8','123456','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','15078451241',1,'2020-03-09 02:09:00','2020-03-09 03:53:49',1,'0656f059-f957-498b-8920-3e8f20be1571',1,'d67d9ec53ed783270ddc33c289c40696','2020-03-09',1),(149,'1fffc0','78451','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','15214124178',1,'2020-03-09 02:09:00','2020-03-09 03:54:02',1,'b7b971ab-c424-4f2e-a787-7985c72253ba',1,'b5b71c6a9db10c3d8c1b7d125e45b83a','2020-03-09',1),(180,'tester','testfesa','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','15265451241',1,'2020-03-09 03:25:03','2020-03-09 03:25:03',1,'46b6f678-570d-42a0-9841-241ecb29',1,'71633f62c14d9776099f42ace88b4a9a','2020-03-16',1),(181,'小白兔~~','fdsaf','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','15278451425',1,'2020-03-09 03:50:23','2020-03-09 03:50:32',0,'343b600c-b384-4649-ae9c-6faf5022',1,'a0665e39cf5e7e7ed8f578fc2432352f','2020-03-02',1),(182,'test','testman','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13426528317',1,'2020-03-11 02:41:06','2020-03-11 02:41:06',1,'90e820b5-eee2-4f06-b842-98fffe0b',1,'0c0349bd702e6aeb2483bcbd3b7707ad','2020-03-26',1),(183,'cesicesi','nicknamefd','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13426524512',1,'2020-03-14 05:02:52','2020-03-14 05:02:52',1,'2a8e7b62-193a-4696-bf7f-01b1866b',1,'cf55bb2194bbba2539d67b8312a76e94','2020-03-10',1),(184,'系统测试人员','Sys-Test','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','15079454152',1,'2020-03-21 02:07:32','2020-04-20 17:12:36',1,'3d66cd24-01ae-4832-93e3-fea557b2',1,'73ab4f4590d4ffb7a4404a46387dcb9e','2020-03-19',14),(185,'2222222','22222222','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','15079437485',1,'2020-04-01 11:17:29','2020-04-01 11:45:25',1,'9bf3e60a-c643-46d1-9bb8-c200c739',1,'d1db198e73e3c81342636dcb832c1fce','2020-04-27',14),(186,'xixxix','fdasfsf','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','13426525414',1,'2020-04-11 10:15:26','2020-04-11 10:15:26',1,'711eda86-843d-4222-8f8e-6bb72305',1,'2dc3358e8beb909e8eb208b86d5e5f66','2020-04-28',12),(187,'324234','fsdfasf','[email protected]','http://badidol.com/uploads/images/avatars/201910/24/18_1571921832_HG9E55x9NY.jpg','15078485741',1,'2020-04-11 13:41:00','2020-04-11 13:41:00',1,'1c62485f-547c-407e-875e-c91029fe',1,'7b14923f4f75e6af0e247bb9abaaa3b8','2020-04-15',12);

/*Table structure for table `tb_user_role` */

DROP TABLE IF EXISTS `tb_user_role`;

CREATE TABLE `tb_user_role` (
  `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `role_id` bigint(20) NOT NULL COMMENT '角色ID'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户角色关联表';

/*Data for the table `tb_user_role` */

insert  into `tb_user_role`(`user_id`,`role_id`) values (182,138),(3,140),(5,0),(54,140),(71,140),(67,140),(72,140),(146,127),(181,77),(2,140),(79,141),(186,126),(187,126),(109,80),(109,105),(6,138),(184,125),(42,78);

相关标签: Shiro 权限理解