提交 aa1b79cd 编写于 作者: F fengyw

修改

上级 03a4ea1f
...@@ -55,7 +55,7 @@ public class AdminSysMenuBiz { ...@@ -55,7 +55,7 @@ public class AdminSysMenuBiz {
c.andStatusIdEqualTo(req.getStatusId()); c.andStatusIdEqualTo(req.getStatusId());
} }
example.setOrderByClause("sort asc, id desc"); example.setOrderByClause("sort asc, id desc");
List<SysMenu> sysMenuList = dao.listByExample(example); List<SysMenu> sysMenuList = dao.selectByExampleWithBLOBs(example);
return Result.success(filter(0L, sysMenuList)); return Result.success(filter(0L, sysMenuList));
} }
......
...@@ -65,12 +65,12 @@ public class AdminSysUserBiz { ...@@ -65,12 +65,12 @@ public class AdminSysUserBiz {
roleNameMap = roleList.stream().collect(Collectors.toMap(SysRole::getId, SysRole::getRoleName)); roleNameMap = roleList.stream().collect(Collectors.toMap(SysRole::getId, SysRole::getRoleName));
} }
Map<Long, List<Long>> map = roleUserList.stream().collect(Collectors.groupingBy(SysRoleUser::getUserId, Collectors.mapping(SysRoleUser::getRoleId, Collectors.toList()))); Map<Long, List<Long>> map = roleUserList.stream().collect(Collectors.groupingBy(SysRoleUser::getUserId, Collectors.mapping(SysRoleUser::getRoleId, Collectors.toList())));
for(AdminSysUserPageResp resp: respPage.getList()){ for (AdminSysUserPageResp resp : respPage.getList()) {
List<Long> roleIdList = map.get(resp.getId()); List<Long> roleIdList = map.get(resp.getId());
if(CollUtil.isNotEmpty(roleIdList)){ if (CollUtil.isNotEmpty(roleIdList)) {
List<String> roleNameList = new ArrayList<>(); List<String> roleNameList = new ArrayList<>();
for(Long roleId: roleIdList){ for (Long roleId : roleIdList) {
if( null !=roleNameMap){ if (null != roleNameMap) {
roleNameList.add(roleNameMap.get(roleId)); roleNameList.add(roleNameMap.get(roleId));
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册