라이브 중 리스트

- offset, limit 추가
This commit is contained in:
Klaus 2024-04-09 16:49:43 +09:00
parent 205deea88a
commit 476e4e8eb1
1 changed files with 3 additions and 1 deletions

View File

@ -55,6 +55,8 @@ class LiveRoomQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) : L
.innerJoin(liveRoom.member, member)
.leftJoin(quarterLiveRankings).on(liveRoom.id.eq(quarterLiveRankings.roomId))
.where(where)
.offset(offset)
.limit(limit)
.orderBy(
quarterLiveRankings.totalCan.desc(),
quarterLiveRankings.totalParticipants.desc(),
@ -86,9 +88,9 @@ class LiveRoomQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) : L
return queryFactory
.selectFrom(liveRoom)
.innerJoin(liveRoom.member, member)
.where(where)
.offset(offset)
.limit(limit)
.where(where)
.orderBy(liveRoom.beginDateTime.asc())
.fetch()
}