Merge pull request '라이브 정산 - 정렬 순서 추가 (라이브 방 id, 구분)' (#100) from test into main

Reviewed-on: #100
This commit is contained in:
klaus 2023-12-10 16:58:05 +00:00
commit 0fd1c2235f
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class AdminCalculateQueryRepository(private val queryFactory: JPAQueryFactory) {
.and(liveRoom.beginDateTime.loe(endDate)) .and(liveRoom.beginDateTime.loe(endDate))
) )
.groupBy(liveRoom.id, useCan.canUsage) .groupBy(liveRoom.id, useCan.canUsage)
.orderBy(member.nickname.desc(), formattedDate.desc()) .orderBy(member.nickname.desc(), liveRoom.id.desc(), useCan.canUsage.desc(), formattedDate.desc())
.fetch() .fetch()
} }

View File

@ -66,7 +66,7 @@ class CreatorAdminCalculateQueryRepository(private val queryFactory: JPAQueryFac
.and(liveRoom.beginDateTime.loe(endDate)) .and(liveRoom.beginDateTime.loe(endDate))
) )
.groupBy(liveRoom.id, useCan.canUsage) .groupBy(liveRoom.id, useCan.canUsage)
.orderBy(formattedDate.desc()) .orderBy(liveRoom.id.desc(), useCan.canUsage.desc(), formattedDate.desc())
.fetch() .fetch()
} }