|
@@ -47,7 +47,7 @@ public class ExamApi {
|
|
|
@ApiOperation(value="查询所有考试批次",notes = "分页带查询")
|
|
|
@GetMapping("/exam/all/{curPage}/{pageSize}")
|
|
|
public ResponseEntity getAllExam(@ModelAttribute Exam examCriteria, @PathVariable Integer curPage,@PathVariable Integer pageSize){
|
|
|
- return new ResponseEntity(examService.getAllExam(examCriteria,new PageRequest(curPage - 1,pageSize)), HttpStatus.OK);
|
|
|
+ return new ResponseEntity(examService.getAllExam(examCriteria,new PageRequest(curPage,pageSize)), HttpStatus.OK);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value="查询所有考试批次",notes = "不分页带查询")
|