|
@@ -226,7 +226,7 @@ public class ExamApi extends ControllerSupport {
|
|
public ResponseEntity<?> queryAllCourseGroups(@PathVariable Long examId, @PathVariable Integer curPage,
|
|
public ResponseEntity<?> queryAllCourseGroups(@PathVariable Long examId, @PathVariable Integer curPage,
|
|
@PathVariable Integer pageSize) {
|
|
@PathVariable Integer pageSize) {
|
|
|
|
|
|
- List<CourseGroup> groupList = courseGroupRepo.findByExamId(examId);
|
|
|
|
|
|
+ List<CourseGroup> groupList = courseGroupRepo.findByExamId(examId, (curPage - 1) * pageSize, pageSize);
|
|
|
|
|
|
for (CourseGroup courseGroup : groupList) {
|
|
for (CourseGroup courseGroup : groupList) {
|
|
List<Long> courseIdList = Lists.newArrayList();
|
|
List<Long> courseIdList = Lists.newArrayList();
|