From e10e3cf7719e21862d1f3d749d49338dfb3986fc Mon Sep 17 00:00:00 2001 From: zhangqinlin <1500920753@qq.com> Date: Sat, 18 Sep 2021 16:11:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E6=89=80=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/PayWorkingGroupStatisticsController.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jero-boot-incoming-payment/src/main/java/com/jero/project/controller/PayWorkingGroupStatisticsController.java b/jero-boot-incoming-payment/src/main/java/com/jero/project/controller/PayWorkingGroupStatisticsController.java index 5c0bc62d..3c5c7b9f 100644 --- a/jero-boot-incoming-payment/src/main/java/com/jero/project/controller/PayWorkingGroupStatisticsController.java +++ b/jero-boot-incoming-payment/src/main/java/com/jero/project/controller/PayWorkingGroupStatisticsController.java @@ -83,7 +83,10 @@ public class PayWorkingGroupStatisticsController { String roleCode = sysUser.getRoleCode(); //部门负责人 if(constant.BMFZR.equals(roleCode)) { - joint=sysUser.getId(); + String orgCode = sysUser.getOrgCode(); + List userList = userMapper.selectList(new QueryWrapper().eq("status", 1).eq("del_flag", 0).eq("org_code", orgCode)); + List list = userList.stream().map(SysUser::getId).collect(Collectors.toList()); + joint = String.join(",", list); //所领导或者超级管理员 } else if (constant.SLD.equals(roleCode)||constant.ADMIN.equals(roleCode)) { joint = null;