| | |
| | | |
| | | @ApiOperation("导出部门数据") |
| | | @GetMapping(value = "/download") |
| | | @PreAuthorize("@el.check('dept:list')") |
| | | @PreAuthorize("@el.check('dept:download')") |
| | | public void exportDept(HttpServletResponse response, DeptQueryCriteria criteria) throws Exception { |
| | | deptService.download(deptService.queryAll(criteria, false), response); |
| | | } |
| | |
| | | return new ResponseEntity<>(PageUtil.toPage(deptDtos, deptDtos.size()),HttpStatus.OK); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation("查询部门:根据ID获取同级与上级数据") |
| | | @PostMapping("/superior") |
| | | @PreAuthorize("@el.check('user:list','dept:list')") |