| | |
| | | } |
| | | return ids; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询机构列表 |
| | | */ |
| | | @ApiOperation(value = "查询可切换机构列表",response = OrganizationChartEntity.class) |
| | | @GetMapping("switch/getList") |
| | | @Authorization |
| | | public TableDataInfo switchGetList(@CurrentUser SysUser sysUser) |
| | | { |
| | | List<String> ids=new ArrayList<>(); |
| | | if(!StringUtils.isEmpty(sysUser.getMoreDepartmentIds())) |
| | | { |
| | | if(sysUser.getMoreDepartmentIds().indexOf(",")==-1) |
| | | { |
| | | ids.add(sysUser.getDepartmentId()); |
| | | } |
| | | else |
| | | { |
| | | String[] list=sysUser.getMoreDepartmentIds().split(","); |
| | | for (String id:list) |
| | | { |
| | | ids.add(id); |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | ids.add(sysUser.getDepartmentId()); |
| | | } |
| | | |
| | | return getDataTable(iOrganizationChartService.selectConfigList(ids)); |
| | | } |
| | | } |