59 changed files with 1350 additions and 528 deletions
@ -0,0 +1,61 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 国际化 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2020-03-18 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GovLanguageDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 表名 |
||||
|
*/ |
||||
|
private String tableName; |
||||
|
|
||||
|
/** |
||||
|
* 表主键 |
||||
|
*/ |
||||
|
private String tableId; |
||||
|
|
||||
|
/** |
||||
|
* 字段名 |
||||
|
*/ |
||||
|
private String fieldName; |
||||
|
|
||||
|
/** |
||||
|
* 字段值 |
||||
|
*/ |
||||
|
private String fieldValue; |
||||
|
|
||||
|
/** |
||||
|
* 语言 |
||||
|
*/ |
||||
|
private String language; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,124 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.TreeStringNode; |
||||
|
import com.epmet.dto.result.MenuResourceDTO; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 菜单管理 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2020-03-18 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GovMenuDTO extends TreeStringNode<GovMenuDTO> implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* id |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 上级ID,一级菜单为0 |
||||
|
*/ |
||||
|
private String pid; |
||||
|
|
||||
|
/** |
||||
|
* 菜单名称 |
||||
|
*/ |
||||
|
private String name; |
||||
|
|
||||
|
/** |
||||
|
* 菜单URL |
||||
|
*/ |
||||
|
private String url; |
||||
|
|
||||
|
/** |
||||
|
* 类型 0:菜单 1:按钮 |
||||
|
*/ |
||||
|
private Integer type; |
||||
|
|
||||
|
/** |
||||
|
* 菜单图标 |
||||
|
*/ |
||||
|
private String icon; |
||||
|
|
||||
|
/** |
||||
|
* 权限标识,如:sys:menu:save |
||||
|
*/ |
||||
|
private String permissions; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
private Integer sort; |
||||
|
|
||||
|
/** |
||||
|
* 删除标识:0.未删除 1.已删除 |
||||
|
*/ |
||||
|
private Integer delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
/** |
||||
|
* 菜单资源 |
||||
|
*/ |
||||
|
private List<MenuResourceDTO> resourceList; |
||||
|
|
||||
|
/** |
||||
|
* 上级菜单名称 |
||||
|
*/ |
||||
|
private String parentName; |
||||
|
|
||||
|
/** |
||||
|
* 是否显示,1:显示 0不显示 |
||||
|
*/ |
||||
|
private Integer showFlag; |
||||
|
} |
||||
@ -0,0 +1,102 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 资源管理 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2020-03-18 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GovResourceDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* id |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 资源编码,如菜单ID |
||||
|
*/ |
||||
|
private String resourceCode; |
||||
|
|
||||
|
/** |
||||
|
* 资源名称 |
||||
|
*/ |
||||
|
private String resourceName; |
||||
|
|
||||
|
/** |
||||
|
* 资源URL |
||||
|
*/ |
||||
|
private String resourceUrl; |
||||
|
|
||||
|
/** |
||||
|
* 请求方式(如:GET、POST、PUT、DELETE) |
||||
|
*/ |
||||
|
private String resourceMethod; |
||||
|
|
||||
|
/** |
||||
|
* 菜单标识 0:非菜单资源 1:菜单资源 |
||||
|
*/ |
||||
|
private Integer menuFlag; |
||||
|
|
||||
|
/** |
||||
|
* 认证等级 0:权限认证 1:登录认证 2:无需认证 |
||||
|
*/ |
||||
|
private Integer authLevel; |
||||
|
|
||||
|
/** |
||||
|
* 删除标识:0.未删除 1.已删除 |
||||
|
*/ |
||||
|
private Integer delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,93 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 角色管理 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2020-03-18 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GovRoleDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* id |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 角色名称 |
||||
|
*/ |
||||
|
private String name; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
private String remark; |
||||
|
|
||||
|
/** |
||||
|
* 部门ID |
||||
|
*/ |
||||
|
private Long deptId; |
||||
|
|
||||
|
/** |
||||
|
* 删除标识:0.未删除 1.已删除 |
||||
|
*/ |
||||
|
private Integer delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
/** |
||||
|
* 菜单ID列表 |
||||
|
*/ |
||||
|
private List<String> menuIdList; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,82 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 角色菜单关系 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2020-03-18 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GovRoleMenuDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* id |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 角色ID |
||||
|
*/ |
||||
|
private String roleId; |
||||
|
|
||||
|
/** |
||||
|
* 菜单ID |
||||
|
*/ |
||||
|
private String menuId; |
||||
|
|
||||
|
/** |
||||
|
* 删除标识:0.未删除 1.已删除 |
||||
|
*/ |
||||
|
private Integer delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,82 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 角色用户关系 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2020-03-18 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GovRoleUserDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* id |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 角色ID |
||||
|
*/ |
||||
|
private String roleId; |
||||
|
|
||||
|
/** |
||||
|
* 用户ID |
||||
|
*/ |
||||
|
private String userId; |
||||
|
|
||||
|
/** |
||||
|
* 删除标识:0.未删除 1.已删除 |
||||
|
*/ |
||||
|
private Integer delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,29 @@ |
|||||
|
/** |
||||
|
* Copyright (c) 2018 人人开源 All rights reserved. |
||||
|
* |
||||
|
* https://www.renren.io
|
||||
|
* |
||||
|
* 版权所有,侵权必究! |
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* 菜单资源 |
||||
|
* |
||||
|
* @author Mark sunlightcs@gmail.com |
||||
|
* @since 1.0.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "菜单资源") |
||||
|
public class MenuResourceDTO { |
||||
|
@ApiModelProperty(value = "资源URL") |
||||
|
private String resourceUrl; |
||||
|
@ApiModelProperty(value = "请求方式(如:GET、POST、PUT、DELETE)") |
||||
|
private String resourceMethod; |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,36 @@ |
|||||
|
/** |
||||
|
* Copyright (c) 2018 人人开源 All rights reserved. |
||||
|
* |
||||
|
* https://www.renren.io
|
||||
|
* |
||||
|
* 版权所有,侵权必究! |
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.enums; |
||||
|
|
||||
|
/** |
||||
|
* 菜单资源标识 |
||||
|
* |
||||
|
* @author Mark sunlightcs@gmail.com |
||||
|
* @since 1.0.0 |
||||
|
*/ |
||||
|
public enum MenuFlagEnum { |
||||
|
/** |
||||
|
* 菜单资源 |
||||
|
*/ |
||||
|
YES(1), |
||||
|
/** |
||||
|
* 非菜单资源 |
||||
|
*/ |
||||
|
NO(0); |
||||
|
|
||||
|
private int value; |
||||
|
|
||||
|
MenuFlagEnum(int value) { |
||||
|
this.value = value; |
||||
|
} |
||||
|
|
||||
|
public int value() { |
||||
|
return this.value; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,36 @@ |
|||||
|
/** |
||||
|
* Copyright (c) 2018 人人开源 All rights reserved. |
||||
|
* |
||||
|
* https://www.renren.io
|
||||
|
* |
||||
|
* 版权所有,侵权必究! |
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.enums; |
||||
|
|
||||
|
/** |
||||
|
* 菜单类型枚举 |
||||
|
* |
||||
|
* @author Mark sunlightcs@gmail.com |
||||
|
* @since 1.0.0 |
||||
|
*/ |
||||
|
public enum MenuTypeEnum { |
||||
|
/** |
||||
|
* 菜单 |
||||
|
*/ |
||||
|
MENU(0), |
||||
|
/** |
||||
|
* 按钮 |
||||
|
*/ |
||||
|
BUTTON(1); |
||||
|
|
||||
|
private int value; |
||||
|
|
||||
|
MenuTypeEnum(int value) { |
||||
|
this.value = value; |
||||
|
} |
||||
|
|
||||
|
public int value() { |
||||
|
return this.value; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,29 @@ |
|||||
|
/** |
||||
|
* Copyright (c) 2019 人人开源 All rights reserved. |
||||
|
* <p> |
||||
|
* https://www.renren.io
|
||||
|
* <p> |
||||
|
* 版权所有,侵权必究! |
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.enums; |
||||
|
|
||||
|
/** |
||||
|
* 叶子节点枚举 |
||||
|
* |
||||
|
* @author Mark sunlightcs@gmail.com |
||||
|
*/ |
||||
|
public enum RegionLeafEnum { |
||||
|
YES(1), |
||||
|
NO(0); |
||||
|
|
||||
|
private int value; |
||||
|
|
||||
|
RegionLeafEnum(int value) { |
||||
|
this.value = value; |
||||
|
} |
||||
|
|
||||
|
public int value() { |
||||
|
return this.value; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
/** |
||||
|
* Copyright (c) 2019 人人开源 All rights reserved. |
||||
|
* <p> |
||||
|
* https://www.renren.io
|
||||
|
* <p> |
||||
|
* 版权所有,侵权必究! |
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.enums; |
||||
|
|
||||
|
/** |
||||
|
* 行政区域 级别枚举 |
||||
|
* |
||||
|
* @author Mark sunlightcs@gmail.com |
||||
|
*/ |
||||
|
public enum RegionLevelEnum { |
||||
|
ONE(1), |
||||
|
TWO(2), |
||||
|
THREE(3); |
||||
|
|
||||
|
private int value; |
||||
|
|
||||
|
RegionLevelEnum(int value) { |
||||
|
this.value = value; |
||||
|
} |
||||
|
|
||||
|
public int value() { |
||||
|
return this.value; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
/** |
||||
|
* Copyright (c) 2018 人人开源 All rights reserved. |
||||
|
* |
||||
|
* https://www.renren.io
|
||||
|
* |
||||
|
* 版权所有,侵权必究! |
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.enums; |
||||
|
|
||||
|
/** |
||||
|
* 用户状态 |
||||
|
* |
||||
|
* @author Mark sunlightcs@gmail.com |
||||
|
* @since 1.0.0 |
||||
|
*/ |
||||
|
public enum UserStatusEnum { |
||||
|
DISABLE(0), |
||||
|
ENABLED(1); |
||||
|
|
||||
|
private int value; |
||||
|
|
||||
|
UserStatusEnum(int value) { |
||||
|
this.value = value; |
||||
|
} |
||||
|
|
||||
|
public int value() { |
||||
|
return this.value; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,91 @@ |
|||||
|
CREATE TABLE `gov_language` ( |
||||
|
`table_name` varchar(32) NOT NULL COMMENT '表名', |
||||
|
`table_id` varchar(64) NOT NULL COMMENT '表主键', |
||||
|
`field_name` varchar(32) NOT NULL COMMENT '字段名', |
||||
|
`field_value` varchar(200) NOT NULL COMMENT '字段值', |
||||
|
`language` varchar(10) NOT NULL COMMENT '语言', |
||||
|
PRIMARY KEY (`table_name`,`table_id`,`field_name`,`language`) USING BTREE, |
||||
|
KEY `idx_table_id` (`table_id`) USING BTREE |
||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='国际化'; |
||||
|
CREATE TABLE `gov_menu` ( |
||||
|
`id` varchar(64) NOT NULL COMMENT 'id', |
||||
|
`pid` varchar(64) DEFAULT NULL COMMENT '上级ID,一级菜单为0', |
||||
|
`url` varchar(200) DEFAULT NULL COMMENT '菜单URL', |
||||
|
`type` tinyint(3) unsigned DEFAULT NULL COMMENT '类型 0:菜单 1:按钮', |
||||
|
`icon` varchar(50) DEFAULT NULL COMMENT '菜单图标', |
||||
|
`permissions` varchar(32) DEFAULT NULL COMMENT '权限标识,如:sys:menu:save', |
||||
|
`sort` int(11) DEFAULT NULL COMMENT '排序', |
||||
|
`REVISION` int(11) DEFAULT NULL COMMENT '乐观锁', |
||||
|
`DEL_FLAG` int(11) unsigned DEFAULT NULL COMMENT '删除标识 0:未删除 1:删除', |
||||
|
`CREATED_BY` varchar(32) DEFAULT NULL COMMENT '创建者', |
||||
|
`CREATED_TIME` datetime DEFAULT NULL COMMENT '创建时间', |
||||
|
`UPDATED_BY` varchar(32) DEFAULT NULL COMMENT '更新者', |
||||
|
`UPDATED_TIME` datetime DEFAULT NULL COMMENT '更新时间', |
||||
|
`SHOW_FLAG` int(11) NOT NULL DEFAULT '1' COMMENT '是否显示,1:显示 0不显示', |
||||
|
PRIMARY KEY (`id`) USING BTREE, |
||||
|
KEY `idx_pid` (`pid`) USING BTREE, |
||||
|
KEY `idx_del_flag` (`DEL_FLAG`) USING BTREE, |
||||
|
KEY `idx_create_date` (`CREATED_TIME`) USING BTREE |
||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='菜单管理'; |
||||
|
CREATE TABLE `gov_resource` ( |
||||
|
`id` varchar(64) NOT NULL COMMENT 'id', |
||||
|
`resource_code` varchar(32) DEFAULT NULL COMMENT '资源编码,如菜单ID', |
||||
|
`resource_name` varchar(32) DEFAULT NULL COMMENT '资源名称', |
||||
|
`resource_url` varchar(100) DEFAULT NULL COMMENT '资源URL', |
||||
|
`resource_method` varchar(8) DEFAULT NULL COMMENT '请求方式(如:GET、POST、PUT、DELETE)', |
||||
|
`menu_flag` tinyint(3) unsigned DEFAULT NULL COMMENT '菜单标识 0:非菜单资源 1:菜单资源', |
||||
|
`auth_level` tinyint(3) unsigned DEFAULT NULL COMMENT '认证等级 0:权限认证 1:登录认证 2:无需认证', |
||||
|
`REVISION` int(11) DEFAULT NULL COMMENT '乐观锁', |
||||
|
`DEL_FLAG` int(11) DEFAULT NULL COMMENT '删除标识 0:未删除 1:删除', |
||||
|
`CREATED_BY` varchar(32) DEFAULT NULL COMMENT '创建者', |
||||
|
`CREATED_TIME` datetime DEFAULT NULL COMMENT '创建时间', |
||||
|
`UPDATED_BY` varchar(32) DEFAULT NULL COMMENT '更新者', |
||||
|
`UPDATED_TIME` datetime DEFAULT NULL COMMENT '更新时间', |
||||
|
PRIMARY KEY (`id`) USING BTREE, |
||||
|
KEY `idx_resource_code` (`resource_code`) USING BTREE, |
||||
|
KEY `idx_create_date` (`CREATED_TIME`) USING BTREE |
||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='资源管理'; |
||||
|
CREATE TABLE `gov_role` ( |
||||
|
`id` varchar(64) NOT NULL COMMENT 'id', |
||||
|
`name` varchar(32) DEFAULT NULL COMMENT '角色名称', |
||||
|
`remark` varchar(100) DEFAULT NULL COMMENT '备注', |
||||
|
`REVISION` int(11) DEFAULT NULL COMMENT '乐观锁', |
||||
|
`DEL_FLAG` int(11) unsigned DEFAULT NULL COMMENT '删除标识 0:未删除 1:删除', |
||||
|
`dept_id` bigint(20) DEFAULT NULL COMMENT '部门ID', |
||||
|
`CREATED_BY` varchar(32) DEFAULT NULL COMMENT '创建者', |
||||
|
`CREATED_TIME` datetime DEFAULT NULL COMMENT '创建时间', |
||||
|
`UPDATED_BY` varchar(32) DEFAULT NULL COMMENT '更新者', |
||||
|
`UPDATED_TIME` datetime DEFAULT NULL COMMENT '更新时间', |
||||
|
PRIMARY KEY (`id`) USING BTREE, |
||||
|
KEY `idx_dept_id` (`dept_id`) USING BTREE, |
||||
|
KEY `idx_del_flag` (`DEL_FLAG`) USING BTREE, |
||||
|
KEY `idx_create_date` (`CREATED_TIME`) USING BTREE |
||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='角色管理'; |
||||
|
CREATE TABLE `gov_role_menu` ( |
||||
|
`id` varchar(64) NOT NULL COMMENT 'id', |
||||
|
`role_id` varchar(64) DEFAULT NULL COMMENT '角色ID', |
||||
|
`menu_id` varchar(64) DEFAULT NULL COMMENT '菜单ID', |
||||
|
`REVISION` int(11) DEFAULT NULL COMMENT '乐观锁', |
||||
|
`DEL_FLAG` int(11) DEFAULT NULL COMMENT '删除标识 0:未删除 1:删除', |
||||
|
`CREATED_BY` varchar(32) DEFAULT NULL COMMENT '创建者', |
||||
|
`CREATED_TIME` datetime DEFAULT NULL COMMENT '创建时间', |
||||
|
`UPDATED_BY` varchar(32) DEFAULT NULL COMMENT '更新者', |
||||
|
`UPDATED_TIME` datetime DEFAULT NULL COMMENT '更新时间', |
||||
|
PRIMARY KEY (`id`) USING BTREE, |
||||
|
KEY `idx_role_id` (`role_id`) USING BTREE, |
||||
|
KEY `idx_menu_id` (`menu_id`) USING BTREE |
||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='角色菜单关系'; |
||||
|
CREATE TABLE `gov_role_user` ( |
||||
|
`id` varchar(64) NOT NULL COMMENT 'id', |
||||
|
`role_id` varchar(64) DEFAULT NULL COMMENT '角色ID', |
||||
|
`user_id` varchar(64) DEFAULT NULL COMMENT '用户ID', |
||||
|
`REVISION` int(11) DEFAULT NULL COMMENT '乐观锁', |
||||
|
`DEL_FLAG` int(11) DEFAULT NULL COMMENT '删除标识 0:未删除 1:删除', |
||||
|
`CREATED_BY` varchar(32) DEFAULT NULL COMMENT '创建者', |
||||
|
`CREATED_TIME` datetime DEFAULT NULL COMMENT '创建时间', |
||||
|
`UPDATED_BY` varchar(32) DEFAULT NULL COMMENT '更新者', |
||||
|
`UPDATED_TIME` datetime DEFAULT NULL COMMENT '更新时间', |
||||
|
PRIMARY KEY (`id`) USING BTREE, |
||||
|
KEY `idx_role_id` (`role_id`) USING BTREE, |
||||
|
KEY `idx_user_id` (`user_id`) USING BTREE |
||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='角色用户关系'; |
||||
@ -1,20 +1,20 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
<mapper namespace="com.epmet.dao.OperLanguageDao"> |
<mapper namespace="com.epmet.dao.GovLanguageDao"> |
||||
|
|
||||
<select id="getLanguage" resultType="com.epmet.entity.OperLanguageEntity"> |
<select id="getLanguage" resultType="com.epmet.entity.GovLanguageEntity"> |
||||
select * from oper_language |
select * from gov_language |
||||
where table_name=#{tableName} and table_id=#{tableId} and field_name=#{fieldName} and language=#{language} |
where table_name=#{tableName} and table_id=#{tableId} and field_name=#{fieldName} and language=#{language} |
||||
</select> |
</select> |
||||
|
|
||||
<select id="updateLanguage"> |
<select id="updateLanguage"> |
||||
update oper_language set field_value=#{fieldValue} |
update gov_language set field_value=#{fieldValue} |
||||
where table_name=#{tableName} and table_id=#{tableId} and field_name=#{fieldName} and language=#{language} |
where table_name=#{tableName} and table_id=#{tableId} and field_name=#{fieldName} and language=#{language} |
||||
</select> |
</select> |
||||
|
|
||||
<insert id="insertOperLanguageEntity" parameterType="com.epmet.entity.OperLanguageEntity"> |
<insert id="insertOperLanguageEntity" parameterType="com.epmet.entity.GovLanguageEntity"> |
||||
INSERT INTO `oper_language` ( `table_name`, `table_id`, `field_name`, `field_value`, `language` ) |
INSERT INTO `gov_language` ( `table_name`, `table_id`, `field_name`, `field_value`, `language` ) |
||||
VALUES |
VALUES |
||||
( #{tableName}, #{tableId}, #{fieldName}, #{fieldValue}, #{language} ) |
( #{tableName}, #{tableId}, #{fieldName}, #{fieldValue}, #{language} ) |
||||
</insert> |
</insert> |
||||
@ -0,0 +1,42 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dao.GovMenuDao"> |
||||
|
|
||||
|
<select id="getById" resultType="com.epmet.entity.GovMenuEntity"> |
||||
|
select t1.*, |
||||
|
(select lang.field_value from gov_language lang where lang.table_name='gov_menu' and lang.field_name='name' |
||||
|
and lang.table_id=t1.pid and lang.language=#{language}) as parentName, |
||||
|
(select lang.field_value from gov_language lang where lang.table_name='gov_menu' and lang.field_name='name' |
||||
|
and lang.table_id=t1.id and lang.language=#{language}) as name |
||||
|
from gov_menu t1 |
||||
|
where t1.id = #{id} and t1.del_flag = 0 |
||||
|
</select> |
||||
|
|
||||
|
<select id="getMenuList" resultType="com.epmet.entity.GovMenuEntity"> |
||||
|
select t1.*, (select lang.field_value from gov_language lang where lang.table_name='gov_menu' and lang.field_name='name' |
||||
|
and lang.table_id=t1.id and lang.language=#{language}) as name |
||||
|
from gov_menu t1 where t1.del_flag = 0 |
||||
|
<if test="type != null"> |
||||
|
and t1.type = #{type} |
||||
|
</if> |
||||
|
order by t1.sort asc |
||||
|
</select> |
||||
|
|
||||
|
<select id="getUserMenuList" resultType="com.epmet.entity.GovMenuEntity"> |
||||
|
select t3.*, (select lang.field_value from gov_language lang where lang.table_name='gov_menu' and lang.field_name='name' |
||||
|
and lang.table_id=t3.id and lang.language=#{language}) as name from gov_role_user t1 |
||||
|
left join gov_role_menu t2 on t1.role_id = t2.role_id |
||||
|
left join gov_menu t3 on t2.menu_id = t3.id |
||||
|
where t1.user_id = #{userId} and t3.del_flag = 0 |
||||
|
<if test="type != null"> |
||||
|
and t3.type = #{type} |
||||
|
</if> |
||||
|
order by t3.sort asc |
||||
|
</select> |
||||
|
|
||||
|
<select id="getListPid" resultType="com.epmet.entity.GovMenuEntity"> |
||||
|
select * from gov_menu where del_flag = 0 and pid = #{value} |
||||
|
</select> |
||||
|
|
||||
|
</mapper> |
||||
@ -0,0 +1,25 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dao.GovResourceDao"> |
||||
|
|
||||
|
<delete id="deleteByCode"> |
||||
|
delete from gov_resource where resource_code = #{value} |
||||
|
</delete> |
||||
|
|
||||
|
<select id="getMenuResourceList" resultType="com.epmet.entity.GovResourceEntity"> |
||||
|
select resource_url, resource_method from gov_resource where resource_code = #{value} order by created_time asc |
||||
|
</select> |
||||
|
|
||||
|
<select id="getResourceList" resultType="com.epmet.entity.GovResourceEntity"> |
||||
|
select resource_url, resource_method, auth_level from gov_resource order by auth_level desc |
||||
|
</select> |
||||
|
|
||||
|
<select id="getUserResourceList" resultType="com.epmet.entity.GovResourceEntity"> |
||||
|
select t3.resource_url, t3.resource_method from gov_role_user t1 |
||||
|
left join gov_role_menu t2 on t1.role_id = t2.role_id |
||||
|
inner join gov_resource t3 on t2.menu_id = t3.resource_code |
||||
|
where t1.user_id = #{userId} |
||||
|
</select> |
||||
|
|
||||
|
</mapper> |
||||
@ -1,6 +1,6 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
<mapper namespace="com.epmet.dao.OperRoleDao"> |
<mapper namespace="com.epmet.dao.GovRoleDao"> |
||||
|
|
||||
</mapper> |
</mapper> |
||||
@ -1,25 +1,25 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
<mapper namespace="com.epmet.dao.OperRoleMenuDao"> |
<mapper namespace="com.epmet.dao.GovRoleMenuDao"> |
||||
|
|
||||
<select id="getMenuIdList" resultType="java.lang.String"> |
<select id="getMenuIdList" resultType="java.lang.String"> |
||||
select menu_id from oper_role_menu where role_id = #{value} |
select menu_id from gov_role_menu where role_id = #{value} |
||||
</select> |
</select> |
||||
|
|
||||
<update id="deleteByRoleIds"> |
<update id="deleteByRoleIds"> |
||||
update oper_role_menu set del_flag = 1 where del_flag = 0 and role_id in |
update gov_role_menu set del_flag = 1 where del_flag = 0 and role_id in |
||||
<foreach item="roleId" collection="array" open="(" separator="," close=")"> |
<foreach item="roleId" collection="array" open="(" separator="," close=")"> |
||||
#{roleId} |
#{roleId} |
||||
</foreach> |
</foreach> |
||||
</update> |
</update> |
||||
|
|
||||
<update id="deleteByRoleId"> |
<update id="deleteByRoleId"> |
||||
update oper_role_menu set del_flag = 1 where role_id = #{value} and del_flag = 0 |
update gov_role_menu set del_flag = 1 where role_id = #{value} and del_flag = 0 |
||||
</update> |
</update> |
||||
|
|
||||
<update id="deleteByMenuId"> |
<update id="deleteByMenuId"> |
||||
update oper_role_menu set del_flag = 1 where menu_id = #{value} and del_flag = 0 |
update gov_role_menu set del_flag = 1 where menu_id = #{value} and del_flag = 0 |
||||
</update> |
</update> |
||||
|
|
||||
</mapper> |
</mapper> |
||||
@ -1,32 +1,32 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
<mapper namespace="com.epmet.dao.OperRoleUserDao"> |
<mapper namespace="com.epmet.dao.GovRoleUserDao"> |
||||
|
|
||||
<update id="deleteByRoleIds"> |
<update id="deleteByRoleIds"> |
||||
update oper_role_user set del_flag = 1 where del_flag = 0 and role_id in |
update gov_role_user set del_flag = 1 where del_flag = 0 and role_id in |
||||
<foreach item="roleId" collection="array" open="(" separator="," close=")"> |
<foreach item="roleId" collection="array" open="(" separator="," close=")"> |
||||
#{roleId} |
#{roleId} |
||||
</foreach> |
</foreach> |
||||
</update> |
</update> |
||||
|
|
||||
<update id="deleteByUserIds"> |
<update id="deleteByUserIds"> |
||||
update oper_role_user set del_flag = 1 where del_flag = 0 and user_id in |
update gov_role_user set del_flag = 1 where del_flag = 0 and user_id in |
||||
<foreach item="userId" collection="array" open="(" separator="," close=")"> |
<foreach item="userId" collection="array" open="(" separator="," close=")"> |
||||
#{userId} |
#{userId} |
||||
</foreach> |
</foreach> |
||||
</update> |
</update> |
||||
|
|
||||
<update id="deleteByRoleId"> |
<update id="deleteByRoleId"> |
||||
update oper_role_user set del_flag = 1 where role_id = #{value} and del_flag = 0 |
update gov_role_user set del_flag = 1 where role_id = #{value} and del_flag = 0 |
||||
</update> |
</update> |
||||
|
|
||||
<update id="deleteByUserId"> |
<update id="deleteByUserId"> |
||||
update oper_role_user set del_flag = 1 where user_id = #{value} and del_flag = 0 |
update gov_role_user set del_flag = 1 where user_id = #{value} and del_flag = 0 |
||||
</update> |
</update> |
||||
|
|
||||
<select id="getRoleIdList" resultType="java.lang.String"> |
<select id="getRoleIdList" resultType="java.lang.String"> |
||||
select role_id from oper_role_user where user_id = #{value} and del_flag = 0 |
select role_id from gov_role_user where user_id = #{value} and del_flag = 0 |
||||
</select> |
</select> |
||||
|
|
||||
</mapper> |
</mapper> |
||||
@ -1,42 +0,0 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
||||
|
|
||||
<mapper namespace="com.epmet.dao.OperMenuDao"> |
|
||||
|
|
||||
<select id="getById" resultType="com.epmet.entity.OperMenuEntity"> |
|
||||
select t1.*, |
|
||||
(select lang.field_value from oper_language lang where lang.table_name='oper_menu' and lang.field_name='name' |
|
||||
and lang.table_id=t1.pid and lang.language=#{language}) as parentName, |
|
||||
(select lang.field_value from oper_language lang where lang.table_name='oper_menu' and lang.field_name='name' |
|
||||
and lang.table_id=t1.id and lang.language=#{language}) as name |
|
||||
from oper_menu t1 |
|
||||
where t1.id = #{id} and t1.del_flag = 0 |
|
||||
</select> |
|
||||
|
|
||||
<select id="getMenuList" resultType="com.epmet.entity.OperMenuEntity"> |
|
||||
select t1.*, (select lang.field_value from oper_language lang where lang.table_name='oper_menu' and lang.field_name='name' |
|
||||
and lang.table_id=t1.id and lang.language=#{language}) as name |
|
||||
from oper_menu t1 where t1.del_flag = 0 |
|
||||
<if test="type != null"> |
|
||||
and t1.type = #{type} |
|
||||
</if> |
|
||||
order by t1.sort asc |
|
||||
</select> |
|
||||
|
|
||||
<select id="getUserMenuList" resultType="com.epmet.entity.OperMenuEntity"> |
|
||||
select t3.*, (select lang.field_value from oper_language lang where lang.table_name='oper_menu' and lang.field_name='name' |
|
||||
and lang.table_id=t3.id and lang.language=#{language}) as name from oper_role_user t1 |
|
||||
left join oper_role_menu t2 on t1.role_id = t2.role_id |
|
||||
left join oper_menu t3 on t2.menu_id = t3.id |
|
||||
where t1.user_id = #{userId} and t3.del_flag = 0 |
|
||||
<if test="type != null"> |
|
||||
and t3.type = #{type} |
|
||||
</if> |
|
||||
order by t3.sort asc |
|
||||
</select> |
|
||||
|
|
||||
<select id="getListPid" resultType="com.epmet.entity.OperMenuEntity"> |
|
||||
select * from oper_menu where del_flag = 0 and pid = #{value} |
|
||||
</select> |
|
||||
|
|
||||
</mapper> |
|
||||
@ -1,25 +0,0 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
||||
|
|
||||
<mapper namespace="com.epmet.dao.OperResourceDao"> |
|
||||
|
|
||||
<delete id="deleteByCode"> |
|
||||
delete from oper_resource where resource_code = #{value} |
|
||||
</delete> |
|
||||
|
|
||||
<select id="getMenuResourceList" resultType="com.epmet.entity.OperResourceEntity"> |
|
||||
select resource_url, resource_method from oper_resource where resource_code = #{value} order by created_time asc |
|
||||
</select> |
|
||||
|
|
||||
<select id="getResourceList" resultType="com.epmet.entity.OperResourceEntity"> |
|
||||
select resource_url, resource_method, auth_level from oper_resource order by auth_level desc |
|
||||
</select> |
|
||||
|
|
||||
<select id="getUserResourceList" resultType="com.epmet.entity.OperResourceEntity"> |
|
||||
select t3.resource_url, t3.resource_method from oper_role_user t1 |
|
||||
left join oper_role_menu t2 on t1.role_id = t2.role_id |
|
||||
inner join oper_resource t3 on t2.menu_id = t3.resource_code |
|
||||
where t1.user_id = #{userId} |
|
||||
</select> |
|
||||
|
|
||||
</mapper> |
|
||||
Loading…
Reference in new issue