【add】新增角色备注返回
This commit is contained in:
parent
49710d2753
commit
df7b7069cf
|
@ -9,4 +9,5 @@ public class RolePageDto {
|
|||
private String roleName;
|
||||
private Long roleId;
|
||||
private Long roleUserId;
|
||||
private String roleDesc;
|
||||
}
|
||||
|
|
|
@ -58,6 +58,7 @@ public class UserDomainService {
|
|||
List<Role> roleList=roles.stream().filter(s->s.getId().equals(obj.getRoleId())).toList();
|
||||
if(!roleList.isEmpty()){
|
||||
obj.setRoleName(roleList.get(0).getRoleName());
|
||||
obj.setRoleDesc(roleList.get(0).getRoleDesc());
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
|
|
Loading…
Reference in New Issue