콘텐츠 메인 홈 탭 - 채널별 인기 콘텐츠

- 크리에이터 정렬 - 판매수 내림차순
This commit is contained in:
Klaus 2025-02-19 03:08:48 +09:00
parent 7041aff350
commit 872ec7f13f
3 changed files with 2 additions and 7 deletions

View File

@ -86,7 +86,7 @@ class AudioContentMainTabContentService(
val contentRankCreatorList = rankingService.fetchCreatorBySellContentCountRankTop20(
memberId = member.id!!,
startDate = dailyRankingStartDate.minusDays(1),
startDate = dailyRankingStartDate,
endDate = dailyRankingEndDate
)

View File

@ -72,11 +72,6 @@ class AudioContentMainTabHomeService(
// 이벤트 배너
val eventBannerList = eventService.getEventList(isAdult = member.auth != null)
/* 채널별 인기 콘텐츠
* - 콘텐츠를 4 이상 등록한 채널
* - 주간 콘텐츠 판매 개수 Top 20 채널
* - 해당 채널의 누적 판매 개수 Top 4
*/
val contentRankCreatorList = rankingService.fetchCreatorBySellContentCountRankTop20(
memberId = member.id!!,
startDate = startDate.minusDays(1),

View File

@ -340,7 +340,7 @@ class RankingRepository(
val ordersCondition = order.audioContent.id.eq(audioContent.id)
.and(order.isActive.isTrue)
.and(order.createdAt.goe(startDate))
.and(order.createdAt.lt(startDate))
.and(order.createdAt.lt(endDate))
val memberCondition = member.isActive.isTrue
.and(member.role.eq(MemberRole.CREATOR))