【add】用户角色分页接口新增userId返回

This commit is contained in:
nixj 2024-06-18 09:39:18 +08:00
parent df7b7069cf
commit bb280237d9
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ public class RolePageDto {
private String name;
private String employeeNo;
private String roleName;
private Long userId;
private Long roleId;
private Long roleUserId;
private String roleDesc;

View File

@ -49,6 +49,7 @@ public class UserDomainService {
RolePageDto obj = new RolePageDto();
obj.setName(temp.getName());
obj.setEmployeeNo(temp.getEmployeeNo());
obj.setUserId(temp.getUserId());
List<RoleUser> roleUser = roleUsers.stream()
.filter(s -> s.getUserId().equals(temp.getUserId()))
.toList();