From 48a341f0b97479b449cbac9f53faf56f08a5c7cc Mon Sep 17 00:00:00 2001 From: zc <zc@123> Date: 星期三, 09 七月 2025 16:48:39 +0800 Subject: [PATCH] 完善erp对接 --- src/main/java/com/zy/system/entity/User.java | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/system/entity/User.java b/src/main/java/com/zy/system/entity/User.java index 98d856f..f8251bb 100644 --- a/src/main/java/com/zy/system/entity/User.java +++ b/src/main/java/com/zy/system/entity/User.java @@ -215,6 +215,14 @@ } return null; } + public String getRoleLeaderCode(){ + RoleService service = SpringUtils.getBean(RoleService.class); + Role role = service.selectById(this.roleId); + if (!Cools.isEmpty(role)){ + return role.getLeaderCode(); + } + return null; + } public void setRoleId(Long roleId) { this.roleId = roleId; -- Gitblit v1.9.1