| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 通过父级id查询对应机构下的全部部门id |
| | | * @param departmentId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "通过父级id查询对应机构下的全部部门") |
| | | @GetMapping("/getdepartment/id") |
| | | public TableDataInfo getOrganizationIds(@RequestParam(value = "department",required = false) String departmentId) |
| | | { |
| | | if(StringUtils.isEmpty(departmentId)) |
| | | { |
| | | return getDataTable("departmentId 不能为空"); |
| | | } |
| | | |
| | | List<String> ids=new ArrayList<>(); |
| | | List<String> getId=iOrganizationChartService.getIds(departmentId); |
| | | ids.addAll(getId); |
| | | return getDataTable(ids); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 通过父级id查询对应机构下的全部部门 |
| | | * @param departmentId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "通过父级id查询对应机构下的全部部门",response = OrganizationChartEntity.class) |
| | | @GetMapping("/getdepartment") |
| | | public TableDataInfo getOrganizations(@RequestParam(value = "department",required = false) String departmentId) |