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())){