From 8e79492efe412194674ca128a9f242373ca75b6c Mon Sep 17 00:00:00 2001 From: kckc0608 Date: Fri, 1 Nov 2024 14:10:19 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20isCompleted=20=EB=A1=9C=20=EB=A9=94?= =?UTF-8?q?=EC=84=9C=EB=93=9C=20=EB=AA=85=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gdsc/domain/study/application/MentorStudyDetailService.java | 2 +- .../com/gdschongik/gdsc/domain/study/domain/StudyHistory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyDetailService.java b/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyDetailService.java index 3a26d7fa1..e9a433f5c 100644 --- a/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyDetailService.java +++ b/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyDetailService.java @@ -134,7 +134,7 @@ public StudyStatisticsResponse getStudyStatistics(Long studyId) { long totalStudentCount = studyHistories.size(); long studyCompletedStudentCount = - studyHistories.stream().filter(StudyHistory::isComplete).count(); + studyHistories.stream().filter(StudyHistory::isCompleted).count(); List studyWeekStatisticsResponses = studyDetails.stream() .map((studyDetail -> calculateWeekStatistics(studyDetail, totalStudentCount))) diff --git a/src/main/java/com/gdschongik/gdsc/domain/study/domain/StudyHistory.java b/src/main/java/com/gdschongik/gdsc/domain/study/domain/StudyHistory.java index 32ba36965..9ac737f9d 100644 --- a/src/main/java/com/gdschongik/gdsc/domain/study/domain/StudyHistory.java +++ b/src/main/java/com/gdschongik/gdsc/domain/study/domain/StudyHistory.java @@ -83,7 +83,7 @@ public boolean isWithinApplicationAndCourse() { return study.isWithinApplicationAndCourse(); } - public boolean isComplete() { + public boolean isCompleted() { return studyHistoryStatus == COMPLETED; } }