| | |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 查询列表 |
| | | * |
| | | * @param examPaperVO 查询参数 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getList") |
| | | public R getList(ExamPaperVO examPaperVO) { |
| | | List<ExamPaperVO>list = examPaperService.getList(examPaperVO); |
| | | return R.data(list); |
| | | } |
| | | |
| | | /** |
| | | * 查询列表 |
| | | * |
| | | * @param examPaperVO 查询参数 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getLatest") |
| | | public R getLatest(ExamPaperVO examPaperVO) { |
| | | ExamPaperVO latest= examPaperService.getLatest(examPaperVO); |
| | | return R.data(latest); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 新增 |
| | |
| | | * |
| | | * @param examPaper 报名培训申请信息对象 |
| | | */ |
| | | @PostMapping("/update-audit") |
| | | @PostMapping(value = "/update-audit",produces = "application/json;charset=UTF-8") |
| | | public R updateAudit(@RequestBody ExamPaper examPaper) { |
| | | //查询之前的审核状态,如果审核状态没有发生改变,则不会去修改审核信息 |
| | | ExamPaper paper = examPaperService.getById(examPaper.getId()); |