From 7841254333dc4b5ddd47e6c58fcc52ebec8612cc Mon Sep 17 00:00:00 2001 From: "chosw1002@naver.com" Date: Sun, 6 Oct 2024 19:11:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=8E=98=EC=9D=B4=EC=A7=80=EC=9D=98=20c?= =?UTF-8?q?ontent=EB=A5=BC=20=EA=B0=80=EC=A0=B8=EC=99=80=EC=84=9C=20forEac?= =?UTF-8?q?h=EB=A5=BC=20=EB=8F=8C=EB=A6=AC=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gdsc/domain/study/application/MentorStudyService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyService.java b/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyService.java index 031bdc561..f0b290dcd 100644 --- a/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyService.java +++ b/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyService.java @@ -73,14 +73,14 @@ public Page getStudyStudents(Long studyId, Pageable pageab .map(studyHistory -> studyHistory.getStudent().getId()) .toList(); + List studyAchievements = + studyAchievementRepository.findByStudyIdAndMemberIds(studyId, studentIds); List attendances = attendanceRepository.findByStudyIdAndMemberIds(studyId, studentIds); List assignmentHistories = assignmentHistoryRepository.findByStudyIdAndMemberIds(studyId, studentIds); - List studyAchievements = - studyAchievementRepository.findByStudyIdAndMemberIds(studyId, studentIds); List response = new ArrayList<>(); - studyHistories.forEach(studyHistory -> { + studyHistories.getContent().forEach(studyHistory -> { List currentStudyAchievements = studyAchievements.stream() .filter(studyAchievement -> studyAchievement .getStudent()