콘텐츠 후원 랭킹 query 수정
This commit is contained in:
parent
ed3e55514a
commit
dad31fffcb
|
@ -484,8 +484,8 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
|
|||
.innerJoin(audioContent.theme, audioContentTheme)
|
||||
.where(
|
||||
where
|
||||
.and(audioContentComment.createdAt.goe(startDate))
|
||||
.and(audioContentComment.createdAt.lt(endDate))
|
||||
.and(useCan.createdAt.goe(startDate))
|
||||
.and(useCan.createdAt.lt(endDate))
|
||||
)
|
||||
.groupBy(audioContent.id)
|
||||
.orderBy(useCan.can.add(useCan.rewardCan).sum().desc(), audioContent.createdAt.asc())
|
||||
|
|
Loading…
Reference in New Issue