Skip to content

Commit

Permalink
fix: 페이지의 content를 가져와서 forEach를 돌리도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook02 committed Oct 6, 2024
1 parent 4dbd45f commit 7841254
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ public Page<StudyStudentResponse> getStudyStudents(Long studyId, Pageable pageab
.map(studyHistory -> studyHistory.getStudent().getId())
.toList();

List<StudyAchievement> studyAchievements =
studyAchievementRepository.findByStudyIdAndMemberIds(studyId, studentIds);
List<Attendance> attendances = attendanceRepository.findByStudyIdAndMemberIds(studyId, studentIds);
List<AssignmentHistory> assignmentHistories =
assignmentHistoryRepository.findByStudyIdAndMemberIds(studyId, studentIds);
List<StudyAchievement> studyAchievements =
studyAchievementRepository.findByStudyIdAndMemberIds(studyId, studentIds);

List<StudyStudentResponse> response = new ArrayList<>();
studyHistories.forEach(studyHistory -> {
studyHistories.getContent().forEach(studyHistory -> {
List<StudyAchievement> currentStudyAchievements = studyAchievements.stream()
.filter(studyAchievement -> studyAchievement
.getStudent()
Expand Down

0 comments on commit 7841254

Please sign in to comment.