From 56678dd52e0e25afa36612f1be4a1d3ef0f4a82c Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期五, 20 十二月 2024 13:39:39 +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