wangwei 7 년 전
부모
커밋
56b0f38231
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/service/examwork/api/ExamApi.java

+ 1 - 1
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/service/examwork/api/ExamApi.java

@@ -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;
 	}