【add】新增角色备注返回

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

View File

@ -9,4 +9,5 @@ public class RolePageDto {
private String roleName; private String roleName;
private Long roleId; private Long roleId;
private Long roleUserId; private Long roleUserId;
private String roleDesc;
} }

View File

@ -58,6 +58,7 @@ public class UserDomainService {
List<Role> roleList=roles.stream().filter(s->s.getId().equals(obj.getRoleId())).toList(); List<Role> roleList=roles.stream().filter(s->s.getId().equals(obj.getRoleId())).toList();
if(!roleList.isEmpty()){ if(!roleList.isEmpty()){
obj.setRoleName(roleList.get(0).getRoleName()); obj.setRoleName(roleList.get(0).getRoleName());
obj.setRoleDesc(roleList.get(0).getRoleDesc());
} }
} }
return obj; return obj;