From dc1c29b69d21cf4ca65fadc71f531527bb87072b Mon Sep 17 00:00:00 2001 From: Klaus Date: Tue, 18 Mar 2025 17:27:11 +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=EB=AA=A8=EB=8B=9D=EC=BD=9C,=20asmr,?= =?UTF-8?q?=20=EB=8B=A8=ED=8E=B8,=20=EB=AC=B4=EB=A3=8C,=20=EB=8B=A4?= =?UTF-8?q?=EC=8B=9C=EB=93=A3=EA=B8=B0,=20=EC=8B=9C=EB=A6=AC=EC=A6=88=20-?= =?UTF-8?q?=20=EB=82=A8=EC=84=B1=ED=96=A5,=20=EC=97=AC=EC=84=B1=ED=96=A5?= =?UTF-8?q?=20=EC=84=A0=ED=83=9D=ED=95=9C=20=EC=9C=A0=EC=A0=80=EC=9D=98=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=20=ED=95=B4=EB=8B=B9=20=EC=84=B1=ED=96=A5?= =?UTF-8?q?=EC=9D=98=20=EC=BD=98=ED=85=90=EC=B8=A0=20+=20=EB=AF=B8?= =?UTF-8?q?=EC=9D=B8=EC=A6=9D=20=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=EC=9D=98=20=EC=BD=98=ED=85=90=EC=B8=A0=EB=A5=BC=20?= =?UTF-8?q?=EB=B3=B4=EC=97=AC=EC=A3=BC=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 --- .../sodalive/rank/RankingRepository.kt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 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 22153f2..611f595 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/rank/RankingRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/rank/RankingRepository.kt @@ -426,10 +426,16 @@ class RankingRepository( .and(member.role.eq(MemberRole.CREATOR)) .and(member.id.eq(audioContent.member.id)) + var where = audioContent.isActive.isTrue + .and(audioContent.price.gt(0)) + .and(audioContent.duration.isNotNull) + .and(audioContent.limited.isNull) + .and(blockMember.id.isNull) + if (contentType != ContentType.ALL) { - memberCondition = memberCondition.and( - member.auth.isNull.or( - member.auth.gender.eq( + where = where.and( + audioContent.member.auth.isNull.or( + audioContent.member.auth.gender.eq( if (contentType == ContentType.MALE) { 0 } else { @@ -440,12 +446,6 @@ class RankingRepository( ) } - val where = audioContent.isActive.isTrue - .and(audioContent.price.gt(0)) - .and(audioContent.duration.isNotNull) - .and(audioContent.limited.isNull) - .and(blockMember.id.isNull) - return queryFactory .select( QContentCreatorResponse(