크리에이터 관리자 - 일자별 콘텐츠 정산 페이징 안되는 버그 수정 #85

Merged
klaus merged 3 commits from test into main 2023-11-14 05:17:59 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit a215d027ec - Show all commits

View File

@ -96,8 +96,8 @@ class CreatorAdminCalculateQueryRepository(private val queryFactory: JPAQueryFac
startDate: LocalDateTime,
endDate: LocalDateTime,
memberId: Long,
offset: Long = 0,
limit: Long = 20
offset: Long,
limit: Long
): List<GetCalculateContentQueryData> {
val orderFormattedDate = getFormattedDate(order.createdAt)
return queryFactory
@ -125,9 +125,9 @@ class CreatorAdminCalculateQueryRepository(private val queryFactory: JPAQueryFac
.and(order.createdAt.loe(endDate))
)
.groupBy(audioContent.id, order.type, orderFormattedDate, order.can)
.orderBy(member.id.desc(), orderFormattedDate.desc(), audioContent.id.asc())
.offset(offset)
.limit(limit)
.orderBy(member.id.desc(), orderFormattedDate.desc(), audioContent.id.asc())
.fetch()
}