浏览代码

菜单管理-列表分页展示及保存权限数据

tags/V1.0.1^2
chengwang 1年前
父节点
当前提交
dc91d66896
共有 3 个文件被更改,包括 10 次插入1 次删除
  1. +5
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/query/RoleQuery.java
  2. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/vo/RoleListVo.java
  3. +4
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/system/role/RoleServiceImpl.java

+ 5
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/query/RoleQuery.java 查看文件

@@ -15,4 +15,9 @@ public class RoleQuery extends BaseQuery {
*/
private String roleName;

/**
* 角色状态1正常 2禁用
*/
private Integer status;

}

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/vo/RoleListVo.java 查看文件

@@ -33,7 +33,7 @@ public class RoleListVo {
private Integer status;

/**
* 备注
* 备注 用户描述
*/
private String remark;


+ 4
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/system/role/RoleServiceImpl.java 查看文件

@@ -84,6 +84,10 @@ public class RoleServiceImpl implements IRoleService {
if (!StringUtils.isEmpty(roleQuery.getRoleName())) {
queryWrapper.like("role_name", roleQuery.getRoleName());
}
//角色状态
if(roleQuery.getStatus() != null){
queryWrapper.eq("status", roleQuery.getStatus());
}
queryWrapper.eq("mark", MarkEnum.VALID.getCode());
//queryWrapper.orderByAsc("sort");
queryWrapper.orderByAsc("create_time");

正在加载...
取消
保存