From 327b0149d9182479f5d979e9af7fb2d79323c560 Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 13 Mar 2025 21:16:42 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=ED=99=88=20?= =?UTF-8?q?=EB=8B=A8=ED=8E=B8=20=ED=83=AD=20-=20=EC=9C=A0=EB=A3=8C=20?= =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=EB=A7=8C=20=EB=82=98=EC=98=A4?= =?UTF-8?q?=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 --- .../co/vividnext/sodalive/content/AudioContentRepository.kt | 6 ++++-- .../content/theme/AudioContentThemeQueryRepository.kt | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt index f3ede60..46a2a22 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt @@ -410,8 +410,10 @@ class AudioContentQueryRepositoryImpl( where = where.and(audioContentTheme.theme.`in`(theme)) } - if (isFree) { - where = where.and(audioContent.price.loe(0)) + where = if (isFree) { + where.and(audioContent.price.loe(0)) + } else { + where.and(audioContent.price.gt(0)) } return queryFactory diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/content/theme/AudioContentThemeQueryRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/content/theme/AudioContentThemeQueryRepository.kt index f518e36..c95f4c4 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/theme/AudioContentThemeQueryRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/theme/AudioContentThemeQueryRepository.kt @@ -35,8 +35,10 @@ class AudioContentThemeQueryRepository( where = where.and(audioContent.isAdult.isFalse) } - if (isFree) { - where = where.and(audioContent.price.loe(0)) + where = if (isFree) { + where.and(audioContent.price.loe(0)) + } else { + where.and(audioContent.price.gt(0)) } return queryFactory