提交 aa1b79cd 编写于 作者: F fengyw

修改

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