From 4103bb9c1279fa84dffa3d5aa99298da426b00fe Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期四, 12 十二月 2024 09:17:01 +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