From 780a1afb3bc6ff428b46373d40ad55e4090c8584 Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期二, 05 十一月 2024 10:41:06 +0800 Subject: [PATCH] 出库根据不同上级角色,显示不同库信息的出库站点 --- 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