1、报表、报告新增物联方法

2、公共方法添加
This commit is contained in:
xy
2026-04-01 20:25:08 +08:00
parent 7b9fb1628b
commit fa500ca600
4 changed files with 271 additions and 29 deletions

View File

@@ -580,7 +580,15 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
if (CollectionUtil.isEmpty(ids)) {
return new ArrayList<>();
}
return this.baseMapper.getUserVOByIdList(ids);
List<UserVO> list = this.baseMapper.getUserVOByIdList(ids);
if (CollectionUtil.isNotEmpty(list)) {
list.forEach(item->{
List<Role> roles = userRoleService.getRoleListByUserId(item.getId());
item.setRoleList(roles.stream().map(Role::getId).collect(Collectors.toList()));
item.setRoleCode(roles.stream().map(Role::getCode).collect(Collectors.toList()));
});
}
return list;
}
@Override