| | |
| | | List<Long> userIds = list.stream().map(SysUser::getId).collect(Collectors.toList()); |
| | | |
| | | List<SysRole> sysRoles = roleUserService.findRolesByUserIds(userIds); |
| | | |
| | | // Map<String, Object> map = new HashMap<String, Object>(); |
| | | // List<SysOrganization> sysOrganizationList=organizationService.fin(); |
| | | list.forEach(u -> u.setRoles(sysRoles.stream().filter(r -> !ObjectUtils.notEqual(u.getId(), r.getUserId())) |
| | | .collect(Collectors.toList()))); |
| | | } |
| | |
| | | } |
| | | return ResultBody.ok().data(sysUsers); |
| | | } |
| | | |
| | | @Override |
| | | public ResultBody findCountByMap(Map<String, Object> map) { |
| | | Integer integer = baseMapper.selectCountByMap(map); |
| | | return ResultBody.ok().data(integer); |
| | | } |
| | | } |