From e41ec4ec32db3c3476489dd39cd7a972280aa636 Mon Sep 17 00:00:00 2001 From: fengjin <1435304038@qq.com> Date: 星期二, 15 十一月 2022 18:04:03 +0800 Subject: [PATCH] 1.修改部门管理人员获取条件 2.新增删除评论功能 --- flower_city/src/main/java/com/dg/core/api/GuideRepairOrderAppletsController.java | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/flower_city/src/main/java/com/dg/core/api/GuideRepairOrderAppletsController.java b/flower_city/src/main/java/com/dg/core/api/GuideRepairOrderAppletsController.java index 077c90d..db0058c 100644 --- a/flower_city/src/main/java/com/dg/core/api/GuideRepairOrderAppletsController.java +++ b/flower_city/src/main/java/com/dg/core/api/GuideRepairOrderAppletsController.java @@ -331,9 +331,16 @@ String userId=null; if( StringUtils.equals("2",sysUser.getRoleIds())) { - userId=sysUser.getUserId()+""; - ids=new ArrayList<>(); - ids.add(sysUser.getDepartmentId()); + if(StringUtils.equals("1",sysUser.getIsDivisionHead())) + { + ids=PermissionUtil.getPermission(sysUser,iOrganizationChartService); + } + else + { + userId=sysUser.getUserId()+""; + ids=new ArrayList<>(); + ids.add(sysUser.getDepartmentId()); + } } else { -- Gitblit v1.7.1