From 2b0d07d4dcc4448d8bd6caace38a50bfd1b8d376 Mon Sep 17 00:00:00 2001 From: ly19960718 <1622779752@qq.com> Date: Wed, 16 Jun 2021 09:57:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A2=86=E5=AF=BC=E7=8F=AD?= =?UTF-8?q?=E5=AD=90=E3=80=81=E9=83=A8=E9=97=A8=E7=AE=80=E4=BB=8B=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/departmentbase/DepartmentBaseController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/tenlion/twoduty/controller/api/departmentbase/DepartmentBaseController.java b/src/main/java/com/tenlion/twoduty/controller/api/departmentbase/DepartmentBaseController.java index 3005ad5..70e199e 100644 --- a/src/main/java/com/tenlion/twoduty/controller/api/departmentbase/DepartmentBaseController.java +++ b/src/main/java/com/tenlion/twoduty/controller/api/departmentbase/DepartmentBaseController.java @@ -93,6 +93,11 @@ public class DepartmentBaseController extends DefaultBaseController { public List listJur(){ List list = new ArrayList<>(); List roles = securityComponent.getCurrentUser().getRoles(); + if("admin".equals(securityComponent.getCurrentUser().getUserUsername())){ + list = departmentBaseService.listByParentId(GENGID); + return list; + } + for (RolePO role : roles) { //市局角色 if(ROLE_1_CODE.equals(role.getRoleCode())){