From 432eda554357ab8e0cba2fdbc407aa039c825d2e Mon Sep 17 00:00:00 2001 From: gt-fuwuqi <3272660260@qq.com> Date: 星期四, 07 十一月 2024 15:51:47 +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