From cae0d99de988890d3e881804cb8b2b3103c16b48 Mon Sep 17 00:00:00 2001 From: Hank-Choi Date: Thu, 18 Apr 2024 14:41:54 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B0=95=EC=9D=98=ED=8F=89=20=EC=97=86?= =?UTF-8?q?=EB=8A=94=20=EA=B0=95=EC=9D=98=20=EC=A1=B0=ED=9A=8C=20=EB=B6=88?= =?UTF-8?q?=EA=B0=80=20=EB=B2=84=EA=B7=B8=20=ED=94=BD=EC=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/domain/lecture/repository/LectureRepositoryImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/kotlin/com/wafflestudio/snuttev/core/domain/lecture/repository/LectureRepositoryImpl.kt b/core/src/main/kotlin/com/wafflestudio/snuttev/core/domain/lecture/repository/LectureRepositoryImpl.kt index e8ef305..9ffc723 100644 --- a/core/src/main/kotlin/com/wafflestudio/snuttev/core/domain/lecture/repository/LectureRepositoryImpl.kt +++ b/core/src/main/kotlin/com/wafflestudio/snuttev/core/domain/lecture/repository/LectureRepositoryImpl.kt @@ -51,7 +51,7 @@ class LectureRepositoryImpl(private val queryFactory: JPAQueryFactory) : Lecture .leftJoin(lecture.semesterLectures, semesterLecture) .leftJoin(semesterLecture.evaluations, lectureEvaluation) .groupBy(lecture) - .where(*predicates, lectureEvaluation.isHidden.eq(false)) + .where(*predicates, lectureEvaluation.isNull.or(lectureEvaluation.isHidden.eq(false))) .offset(pageable.offset).limit(pageable.pageSize.toLong()).fetch() val total = queryFactory.select( @@ -101,7 +101,7 @@ class LectureRepositoryImpl(private val queryFactory: JPAQueryFactory) : Lecture ).from(lecture) .innerJoin(lecture.semesterLectures, semesterLecture) .leftJoin(semesterLecture.evaluations, lectureEvaluation) - .where(lecture.id.`in`(lectureSubQuery.map { it.id }), lectureEvaluation.isHidden.eq(false)) + .where(lecture.id.`in`(lectureSubQuery.map { it.id }), lectureEvaluation.isNull.or(lectureEvaluation.isHidden.eq(false))) .groupBy(lecture) .fetch()