|
@@ -44,7 +44,7 @@ public class StudentApi {
|
|
|
@ApiOperation(value="查询所有学生",notes="分页")
|
|
|
@GetMapping("/{curPage}/{pageSize}")
|
|
|
public ResponseEntity getAllStudent(@ModelAttribute Student studentCriteria, @PathVariable Integer curPage, @PathVariable Integer pageSize){
|
|
|
- return new ResponseEntity(studentService.getAllStudent(studentCriteria,new PageRequest(curPage - 1,pageSize)),HttpStatus.OK);
|
|
|
+ return new ResponseEntity(studentService.getAllStudent(studentCriteria,new PageRequest(curPage,pageSize)),HttpStatus.OK);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value="查询所有学生",notes="不分页")
|