라이브 정산 - 정렬 순서 추가 (라이브 방 id, 구분)

This commit is contained in:
Klaus 2023-12-11 01:45:01 +09:00
parent 80930ebd3d
commit 185d7e6666
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))
)
.groupBy(liveRoom.id, useCan.canUsage)
.orderBy(member.nickname.desc(), formattedDate.desc())
.orderBy(member.nickname.desc(), liveRoom.id.desc(), useCan.canUsage.desc(), formattedDate.desc())
.fetch()
}

View File

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