From 0c0c4019aaaf78cf5f54fd873e84a3c3a19131b3 Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 30 May 2024 02:25:13 +0900 Subject: [PATCH 1/7] =?UTF-8?q?=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C=20!!?= =?UTF-8?q?=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../profile/creatorCommunity/CreatorCommunityService.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt index 24d0073..39c83db 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt @@ -404,10 +404,10 @@ class CreatorCommunityService( } .map { val isLike = - likeRepository.findByPostIdAndMemberId(postId = it.id!!, memberId = memberId)?.isActive ?: false - val likeCount = likeRepository.totalCountCommunityPostLikeByPostId(it.id!!) + likeRepository.findByPostIdAndMemberId(postId = it.id, memberId = memberId)?.isActive ?: false + val likeCount = likeRepository.totalCountCommunityPostLikeByPostId(it.id) val commentCount = if (it.isCommentAvailable) { - commentRepository.totalCountCommentByPostId(postId = it.id!!) + commentRepository.totalCountCommentByPostId(postId = it.id) } else { 0 } From 26b8dcee1b8d32dea6dfd8963f314699d58369de Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 30 May 2024 02:39:51 +0900 Subject: [PATCH 2/7] =?UTF-8?q?=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=20=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20=EA=B2=8C?= =?UTF-8?q?=EC=8B=9C=EA=B8=80=20=EB=82=B4=EC=9A=A9=20-=20=EC=A0=84?= =?UTF-8?q?=EC=B2=B4=20=EB=82=B4=EC=9A=A9=EC=9D=84=20=EB=82=B4=EB=A0=A4?= =?UTF-8?q?=EC=A3=BC=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 --- .../CreatorCommunityService.kt | 33 ------------------- .../SelectCommunityPostResponse.kt | 1 - 2 files changed, 34 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt index 39c83db..9ebd070 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt @@ -185,19 +185,8 @@ class CreatorCommunityService( val existOrdered = useCanRepository.isExistOrdered(postId = it.id, memberId = memberId) - val content = if (it.price > 0 && memberId != it.creatorId) { - if (existOrdered) { - it.content - } else { - it.content.substring(0, 5).plus("...") - } - } else { - it.content - } - it.toCommunityPostListResponse( imageHost = imageHost, - content = content, date = getTimeAgoString(it.date), isLike = isLike, existOrdered = if (memberId == it.creatorId) { @@ -251,19 +240,8 @@ class CreatorCommunityService( val existOrdered = useCanRepository.isExistOrdered(postId = post.id, memberId = memberId) - val content = if (post.price > 0 && memberId != post.creatorId) { - if (existOrdered) { - post.content - } else { - post.content.substring(0, 5).plus("...") - } - } else { - post.content - } - return post.toCommunityPostListResponse( imageHost = imageHost, - content = content, date = getTimeAgoString(post.date), isLike = isLike, existOrdered = if (memberId == post.creatorId) { @@ -431,19 +409,8 @@ class CreatorCommunityService( val existOrdered = useCanRepository.isExistOrdered(postId = it.id, memberId = memberId) - val content = if (it.price > 0 && memberId != it.creatorId) { - if (existOrdered) { - it.content - } else { - it.content.substring(0, 5).plus("...") - } - } else { - it.content - } - it.toCommunityPostListResponse( imageHost = imageHost, - content = content, date = getTimeAgoString(it.date), isLike = isLike, existOrdered = if (memberId == it.creatorId) { diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/SelectCommunityPostResponse.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/SelectCommunityPostResponse.kt index 90aa413..54a00b4 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/SelectCommunityPostResponse.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/SelectCommunityPostResponse.kt @@ -17,7 +17,6 @@ data class SelectCommunityPostResponse @QueryProjection constructor( ) { fun toCommunityPostListResponse( imageHost: String, - content: String, date: String, isLike: Boolean, existOrdered: Boolean, From b72a2884f6ac1b69c3ded946f5175a332a37dd20 Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 30 May 2024 12:56:46 +0900 Subject: [PATCH 3/7] =?UTF-8?q?(=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4?= =?UTF-8?q?=ED=84=B0)=20=EA=B4=80=EB=A6=AC=EC=9E=90=20=EC=BB=A4=EB=AE=A4?= =?UTF-8?q?=EB=8B=88=ED=8B=B0=20=EC=A0=95=EC=82=B0=20-=20=EA=B2=8C?= =?UTF-8?q?=EC=8B=9C=EB=AC=BC=20=EA=B0=80=EA=B2=A9=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sodalive/admin/calculate/AdminCalculateQueryRepository.kt | 1 + .../admin/calculate/GetCalculateCommunityPostQueryData.kt | 2 ++ .../admin/calculate/GetCalculateCommunityPostResponse.kt | 1 + .../admin/calculate/CreatorAdminCalculateQueryRepository.kt | 1 + 4 files changed, 5 insertions(+) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/admin/calculate/AdminCalculateQueryRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/admin/calculate/AdminCalculateQueryRepository.kt index c0b4eef..b116762 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/admin/calculate/AdminCalculateQueryRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/admin/calculate/AdminCalculateQueryRepository.kt @@ -185,6 +185,7 @@ class AdminCalculateQueryRepository(private val queryFactory: JPAQueryFactory) { member.nickname, Expressions.stringTemplate("substring({0}, 1, 10)", creatorCommunity.content), formattedDate, + creatorCommunity.price, useCan.id.count(), useCan.can.add(useCan.rewardCan).sum() ) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/admin/calculate/GetCalculateCommunityPostQueryData.kt b/src/main/kotlin/kr/co/vividnext/sodalive/admin/calculate/GetCalculateCommunityPostQueryData.kt index 3ab85d2..d0d5a48 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/admin/calculate/GetCalculateCommunityPostQueryData.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/admin/calculate/GetCalculateCommunityPostQueryData.kt @@ -7,6 +7,7 @@ data class GetCalculateCommunityPostQueryData @QueryProjection constructor( val nickname: String, val title: String, val date: String, + val can: Int, val numberOfPurchase: Long, val totalCan: Int ) { @@ -21,6 +22,7 @@ data class GetCalculateCommunityPostQueryData @QueryProjection constructor( nickname = nickname, title = title, date = date, + can = can, numberOfPurchase = numberOfPurchase.toInt(), totalCan = totalCan, totalKrw = totalKrw, diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/admin/calculate/GetCalculateCommunityPostResponse.kt b/src/main/kotlin/kr/co/vividnext/sodalive/admin/calculate/GetCalculateCommunityPostResponse.kt index d2adac5..04c3cfa 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/admin/calculate/GetCalculateCommunityPostResponse.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/admin/calculate/GetCalculateCommunityPostResponse.kt @@ -6,6 +6,7 @@ data class GetCalculateCommunityPostResponse( @JsonProperty("nickname") val nickname: String, @JsonProperty("title") val title: String, @JsonProperty("date") val date: String, + @JsonProperty("can") val can: Int, @JsonProperty("numberOfPurchase") val numberOfPurchase: Int, @JsonProperty("totalCan") val totalCan: Int, @JsonProperty("totalKrw") val totalKrw: Int, diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/creator/admin/calculate/CreatorAdminCalculateQueryRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/creator/admin/calculate/CreatorAdminCalculateQueryRepository.kt index 1673c98..7c534d4 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/creator/admin/calculate/CreatorAdminCalculateQueryRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/creator/admin/calculate/CreatorAdminCalculateQueryRepository.kt @@ -273,6 +273,7 @@ class CreatorAdminCalculateQueryRepository(private val queryFactory: JPAQueryFac member.nickname, Expressions.stringTemplate("substring({0}, 1, 10)", creatorCommunity.content), formattedDate, + creatorCommunity.price, useCan.id.count(), useCan.can.add(useCan.rewardCan).sum() ) From 46da1728061d697c2302483eab7f77e5bf086a72 Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 30 May 2024 13:08:18 +0900 Subject: [PATCH 4/7] =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90=20=EC=8B=9C?= =?UTF-8?q?=EA=B7=B8=EB=8B=88=EC=B2=98=20=EC=BA=94=20=EB=A6=AC=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20-=20=EC=A0=95=EB=A0=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../signature/AdminSignatureCanController.kt | 6 +++- .../signature/AdminSignatureCanRepository.kt | 31 +++++++++++++++++-- .../signature/AdminSignatureCanService.kt | 7 ++++- 3 files changed, 39 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/admin/live/signature/AdminSignatureCanController.kt b/src/main/kotlin/kr/co/vividnext/sodalive/admin/live/signature/AdminSignatureCanController.kt index 158bf61..435d417 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/admin/live/signature/AdminSignatureCanController.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/admin/live/signature/AdminSignatureCanController.kt @@ -2,6 +2,7 @@ package kr.co.vividnext.sodalive.admin.live.signature import kr.co.vividnext.sodalive.common.ApiResponse import kr.co.vividnext.sodalive.common.SodaException +import kr.co.vividnext.sodalive.live.signature.SignatureCanSortType import org.springframework.data.domain.Pageable import org.springframework.security.access.prepost.PreAuthorize import org.springframework.web.bind.annotation.GetMapping @@ -17,7 +18,10 @@ import org.springframework.web.multipart.MultipartFile @RequestMapping("/admin/live/signature-can") class AdminSignatureCanController(private val service: AdminSignatureCanService) { @GetMapping - fun getSignatureCanList(pageable: Pageable) = ApiResponse.ok(data = service.getSignatureCanList(pageable)) + fun getSignatureCanList( + pageable: Pageable, + @RequestParam("sort-type", required = false) sortType: SignatureCanSortType? + ) = ApiResponse.ok(data = service.getSignatureCanList(pageable, sortType ?: SignatureCanSortType.NEWEST)) @PostMapping fun createSignatureCan( diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/admin/live/signature/AdminSignatureCanRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/admin/live/signature/AdminSignatureCanRepository.kt index cea1b35..2b085c4 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/admin/live/signature/AdminSignatureCanRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/admin/live/signature/AdminSignatureCanRepository.kt @@ -3,6 +3,7 @@ package kr.co.vividnext.sodalive.admin.live.signature import com.querydsl.jpa.impl.JPAQueryFactory import kr.co.vividnext.sodalive.live.signature.QSignatureCan.signatureCan import kr.co.vividnext.sodalive.live.signature.SignatureCan +import kr.co.vividnext.sodalive.live.signature.SignatureCanSortType import kr.co.vividnext.sodalive.member.QMember.member import org.springframework.data.jpa.repository.JpaRepository @@ -11,7 +12,12 @@ interface AdminSignatureCanRepository : JpaRepository, Admin interface AdminSignatureCanQueryRepository { fun getSignatureCanListTotalCount(): Int - fun getSignatureCanList(imageHost: String, offset: Long, limit: Long): List + fun getSignatureCanList( + sortType: SignatureCanSortType, + imageHost: String, + offset: Long, + limit: Long + ): List } class AdminSignatureCanQueryRepositoryImpl( @@ -25,7 +31,26 @@ class AdminSignatureCanQueryRepositoryImpl( .size } - override fun getSignatureCanList(imageHost: String, offset: Long, limit: Long): List { + override fun getSignatureCanList( + sortType: SignatureCanSortType, + imageHost: String, + offset: Long, + limit: Long + ): List { + val orderBy = when (sortType) { + SignatureCanSortType.CAN_HIGH -> { + signatureCan.can.desc() + } + + SignatureCanSortType.CAN_LOW -> { + signatureCan.can.asc() + } + + else -> { + signatureCan.id.desc() + } + } + return queryFactory.select( QGetSignatureCanListItem( signatureCan.id, @@ -41,7 +66,7 @@ class AdminSignatureCanQueryRepositoryImpl( .where(signatureCan.isActive.isTrue) .offset(offset) .limit(limit) - .orderBy(signatureCan.id.desc()) + .orderBy(member.id.desc(), orderBy) .fetch() } } diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/admin/live/signature/AdminSignatureCanService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/admin/live/signature/AdminSignatureCanService.kt index e2e4d69..ae5f301 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/admin/live/signature/AdminSignatureCanService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/admin/live/signature/AdminSignatureCanService.kt @@ -4,6 +4,7 @@ import com.amazonaws.services.s3.model.ObjectMetadata import kr.co.vividnext.sodalive.aws.s3.S3Uploader import kr.co.vividnext.sodalive.common.SodaException import kr.co.vividnext.sodalive.live.signature.SignatureCan +import kr.co.vividnext.sodalive.live.signature.SignatureCanSortType import kr.co.vividnext.sodalive.member.MemberRepository import kr.co.vividnext.sodalive.utils.generateFileName import org.springframework.beans.factory.annotation.Value @@ -25,9 +26,13 @@ class AdminSignatureCanService( @Value("\${cloud.aws.cloud-front.host}") private val imageHost: String ) { - fun getSignatureCanList(pageable: Pageable): GetSignatureCanListResponse { + fun getSignatureCanList( + pageable: Pageable, + sortType: SignatureCanSortType + ): GetSignatureCanListResponse { val totalCount = repository.getSignatureCanListTotalCount() val items = repository.getSignatureCanList( + sortType = sortType, imageHost = imageHost, offset = pageable.offset, limit = pageable.pageSize.toLong() From 4cee0e358505faa4426af06850174b671bd3548b Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 30 May 2024 13:17:39 +0900 Subject: [PATCH 5/7] =?UTF-8?q?=EC=8B=9C=EB=A6=AC=EC=A6=88=20=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20-=20=EC=83=88=EB=A1=9C=EC=9A=B4=20?= =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=EA=B0=80=20=EC=98=AC=EB=9D=BC?= =?UTF-8?q?=EC=98=A8=20=EC=88=9C=EC=84=9C=EB=8C=80=EB=A1=9C=20=EC=A0=95?= =?UTF-8?q?=EB=A0=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sodalive/content/series/ContentSeriesRepository.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/content/series/ContentSeriesRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/content/series/ContentSeriesRepository.kt index cae0c84..571afb5 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/series/ContentSeriesRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/series/ContentSeriesRepository.kt @@ -65,8 +65,10 @@ class ContentSeriesQueryRepositoryImpl( return queryFactory .selectFrom(series) + .innerJoin(series.contentList, seriesContent) + .innerJoin(seriesContent.content, audioContent) .where(where) - .orderBy(series.orders.asc(), series.createdAt.asc()) + .orderBy(audioContent.releaseDate.desc(), series.orders.asc(), series.createdAt.asc()) .offset(offset) .limit(limit) .fetch() From a529f058252d6f6111c1d1350c24ec51bf7ee1e4 Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 30 May 2024 14:05:36 +0900 Subject: [PATCH 6/7] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20-=20=EB=8C=80=EC=97=AC/=EC=86=8C=EC=9E=A5/?= =?UTF-8?q?=EB=A7=A4=EC=A7=84=20=EC=97=AC=EB=B6=80=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sodalive/content/AudioContentRepository.kt | 5 ++++- .../sodalive/content/AudioContentService.kt | 16 ++++++++++++++-- .../content/GetAudioContentListResponse.kt | 5 ++++- 3 files changed, 22 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 e997e3d..2953868 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt @@ -187,7 +187,10 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) Expressions.constant(0), pinContent.id.isNotNull, audioContent.isAdult, - audioContent.releaseDate.gt(LocalDateTime.now()) + audioContent.releaseDate.gt(LocalDateTime.now()), + Expressions.asBoolean(false), + Expressions.asBoolean(false), + audioContent.remaining.isNotNull.and(audioContent.remaining.loe(0)) ) ) .from(audioContent) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentService.kt index 3333076..7cc0916 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentService.kt @@ -666,12 +666,24 @@ class AudioContentService( .map { val commentCount = commentRepository .totalCountCommentByContentId(it.contentId) + it.commentCount = commentCount val likeCount = audioContentLikeRepository .totalCountAudioContentLike(it.contentId) - it.likeCount = likeCount - it.commentCount = commentCount + + val (isExistsAudioContent, orderType) = orderRepository.isExistOrderedAndOrderType( + memberId = member.id!!, + contentId = it.contentId + ) + + if (isExistsAudioContent) { + if (orderType == OrderType.RENTAL) { + it.isRented = true + } else { + it.isOwned = true + } + } it } diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/content/GetAudioContentListResponse.kt b/src/main/kotlin/kr/co/vividnext/sodalive/content/GetAudioContentListResponse.kt index b4f304d..5ced3eb 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/GetAudioContentListResponse.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/GetAudioContentListResponse.kt @@ -18,5 +18,8 @@ data class GetAudioContentListItem @QueryProjection constructor( var commentCount: Int = 0, val isPin: Boolean, val isAdult: Boolean, - val isScheduledToOpen: Boolean + val isScheduledToOpen: Boolean, + var isRented: Boolean, + var isOwned: Boolean, + var isSoldOut: Boolean ) From 3dca59685e982539042e11893e3b6f904f1da712 Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 30 May 2024 14:22:06 +0900 Subject: [PATCH 7/7] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20-=20=EB=8C=80=EC=97=AC/=EC=86=8C=EC=9E=A5/?= =?UTF-8?q?=EB=A7=A4=EC=A7=84=20=EC=97=AC=EB=B6=80=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kr/co/vividnext/sodalive/content/AudioContentRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2953868..90f1b5f 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt @@ -190,7 +190,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) audioContent.releaseDate.gt(LocalDateTime.now()), Expressions.asBoolean(false), Expressions.asBoolean(false), - audioContent.remaining.isNotNull.and(audioContent.remaining.loe(0)) + audioContent.remaining.loe(0) ) ) .from(audioContent)