From df7b7069cfb0bd4c2738fc05b08f08d86e6db59c Mon Sep 17 00:00:00 2001 From: nixj Date: Tue, 18 Jun 2024 09:16:42 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90add=E3=80=91=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E5=A4=87=E6=B3=A8=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/chint/application/dtos/system/RolePageDto.java | 1 + src/main/java/com/chint/domain/service/UserDomainService.java | 1 + 2 files changed, 2 insertions(+) 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;