| | |
| | | |
| | | @ApiOperation("导出岗位数据") |
| | | @GetMapping(value = "/download") |
| | | @PreAuthorize("@el.check('job:list')") |
| | | @PreAuthorize("@el.check('job:download')") |
| | | public void exportJob(HttpServletResponse response, JobQueryCriteria criteria) throws IOException { |
| | | jobService.download(jobService.queryAll(criteria), response); |
| | | } |
| | |
| | | return new ResponseEntity<>(jobService.queryAll(criteria, pageable),HttpStatus.OK); |
| | | } |
| | | |
| | | @ApiOperation("查询岗位") |
| | | @GetMapping(value = "/all") |
| | | @PreAuthorize("@el.check('job:list','user:list')") |
| | | public ResponseEntity<Object> queryJob(JobQueryCriteria criteria){ |
| | | return new ResponseEntity<>(jobService.queryAll(criteria),HttpStatus.OK); |
| | | } |
| | | |
| | | @Log("新增岗位") |
| | | @ApiOperation("新增岗位") |
| | | @PostMapping |