【add】用户角色分页接口新增userId返回
This commit is contained in:
parent
df7b7069cf
commit
bb280237d9
|
@ -7,6 +7,7 @@ public class RolePageDto {
|
||||||
private String name;
|
private String name;
|
||||||
private String employeeNo;
|
private String employeeNo;
|
||||||
private String roleName;
|
private String roleName;
|
||||||
|
private Long userId;
|
||||||
private Long roleId;
|
private Long roleId;
|
||||||
private Long roleUserId;
|
private Long roleUserId;
|
||||||
private String roleDesc;
|
private String roleDesc;
|
||||||
|
|
|
@ -49,6 +49,7 @@ public class UserDomainService {
|
||||||
RolePageDto obj = new RolePageDto();
|
RolePageDto obj = new RolePageDto();
|
||||||
obj.setName(temp.getName());
|
obj.setName(temp.getName());
|
||||||
obj.setEmployeeNo(temp.getEmployeeNo());
|
obj.setEmployeeNo(temp.getEmployeeNo());
|
||||||
|
obj.setUserId(temp.getUserId());
|
||||||
List<RoleUser> roleUser = roleUsers.stream()
|
List<RoleUser> roleUser = roleUsers.stream()
|
||||||
.filter(s -> s.getUserId().equals(temp.getUserId()))
|
.filter(s -> s.getUserId().equals(temp.getUserId()))
|
||||||
.toList();
|
.toList();
|
||||||
|
|
Loading…
Reference in New Issue