Compare commits

..

No commits in common. "7444b41f609160c365275c50145c3c4727a07c38" and "8e90dbc8b69f5b73a8535a04e4af2e32910fbae1" have entirely different histories.

2 changed files with 5 additions and 5 deletions

View File

@ -477,7 +477,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
.innerJoin(audioContent.theme, audioContentTheme) .innerJoin(audioContent.theme, audioContentTheme)
.where(where) .where(where)
.groupBy(audioContent.id) .groupBy(audioContent.id)
.orderBy(order.can.sum().desc(), audioContent.createdAt.asc()) .orderBy(order.can.sum().desc())
.offset(offset) .offset(offset)
.limit(limit) .limit(limit)
.fetch() .fetch()

View File

@ -132,11 +132,11 @@ class AudioContentMainService(
val currentDateTime = LocalDateTime.now() val currentDateTime = LocalDateTime.now()
val startDate = currentDateTime val startDate = currentDateTime
.minusWeeks(1)
.with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY))
.withHour(15) .withHour(15)
.withMinute(0) .withMinute(0)
.withSecond(0) .withSecond(0)
.minusWeeks(1)
.with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY))
val endDate = startDate val endDate = startDate
.plusDays(7) .plusDays(7)
@ -146,8 +146,8 @@ class AudioContentMainService(
val contentRankingItemList = repository val contentRankingItemList = repository
.getAudioContentRanking( .getAudioContentRanking(
cloudfrontHost = imageHost, cloudfrontHost = imageHost,
startDate = startDate.minusDays(1), startDate = startDate,
endDate = endDate.minusDays(1), endDate = endDate,
isAdult = isAdult isAdult = isAdult
) )