diff --git a/src/main/java/com/chint/application/dtos/system/RolePageDto.java b/src/main/java/com/chint/application/dtos/system/RolePageDto.java index 518c9850..3aa2d6d0 100644 --- a/src/main/java/com/chint/application/dtos/system/RolePageDto.java +++ b/src/main/java/com/chint/application/dtos/system/RolePageDto.java @@ -9,4 +9,5 @@ public class RolePageDto { private String roleName; private Long roleId; private Long roleUserId; + private String roleDesc; } diff --git a/src/main/java/com/chint/domain/service/UserDomainService.java b/src/main/java/com/chint/domain/service/UserDomainService.java index 3b84f63a..3f6252ec 100644 --- a/src/main/java/com/chint/domain/service/UserDomainService.java +++ b/src/main/java/com/chint/domain/service/UserDomainService.java @@ -58,6 +58,7 @@ public class UserDomainService { List 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;