From 387d36486107d6f8c3d8373e09c5b8ab1282e267 Mon Sep 17 00:00:00 2001 From: Klaus Date: Sat, 22 Mar 2025 01:50:00 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EB=A9=94?= =?UTF-8?q?=EC=9D=B8=20=ED=99=88=20-=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20?= =?UTF-8?q?=EC=97=86=EC=9D=B4=20=EC=A1=B0=ED=9A=8C=EA=B0=80=20=EA=B0=80?= =?UTF-8?q?=EB=8A=A5=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kr/co/vividnext/sodalive/rank/RankingRepository.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/rank/RankingRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/rank/RankingRepository.kt index 816c422..9b3e6f7 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/rank/RankingRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/rank/RankingRepository.kt @@ -68,7 +68,6 @@ class RankingRepository( .and(audioContent.duration.isNotNull) .and(audioContentTheme.isActive.isTrue) .and(audioContent.limited.isNull) - .and(blockMember.id.isNull) if (!isAdult) { where = where.and(audioContent.isAdult.isFalse) @@ -142,6 +141,7 @@ class RankingRepository( } if (memberId != null) { + where = where.and(blockMember.id.isNull) select = select.leftJoin(blockMember).on(blockMemberCondition) } @@ -224,7 +224,6 @@ class RankingRepository( .and(member.role.eq(MemberRole.CREATOR)) .and(audioContent.duration.isNotNull) .and(audioContent.limited.isNull) - .and(blockMember.id.isNull) .and(order.isActive.isTrue) .and(order.createdAt.goe(startDate)) .and(order.createdAt.lt(endDate)) @@ -256,6 +255,7 @@ class RankingRepository( .leftJoin(order).on(audioContent.id.eq(order.audioContent.id)) if (memberId != null) { + where = where.and(blockMember.id.isNull) select = select.leftJoin(blockMember).on(blockMemberCondition) } @@ -466,7 +466,6 @@ class RankingRepository( .and(audioContent.price.gt(0)) .and(audioContent.duration.isNotNull) .and(audioContent.limited.isNull) - .and(blockMember.id.isNull) if (!isAdult) { where = where.and(audioContent.isAdult.isFalse) @@ -499,6 +498,7 @@ class RankingRepository( .leftJoin(order).on(ordersCondition) if (memberId != null) { + where = where.and(blockMember.id.isNull) select = select.leftJoin(blockMember).on(blockMemberCondition) }