|
@@ -399,7 +399,7 @@ public class ExamApi extends ControllerSupport {
|
|
|
@GetMapping("/exam/getExamOrgList/{examId}/{curPage}/{pageSize}")
|
|
|
public List<?> getExamOrgList(@PathVariable Long examId, @PathVariable Integer curPage,
|
|
|
@PathVariable Integer pageSize) {
|
|
|
- Pageable pageable = new PageRequest(curPage, pageSize, Sort.Direction.DESC, "updateTime");
|
|
|
+ Pageable pageable = new PageRequest(curPage-1, pageSize, Sort.Direction.DESC, "updateTime");
|
|
|
List<ExamOrg> allByExamId = examOrgRepo.findAllByExamId(examId, pageable);
|
|
|
return allByExamId;
|
|
|
}
|