Compare commits

..

2 Commits

Author SHA1 Message Date
Klaus 4e84678a3c 라이브 중 리스트 - 정렬 조건 수정
- 라이브 랭킹 값이 없는 경우 0으로 처리해서 정렬 되도록 수정
2024-04-09 23:22:53 +09:00
Klaus 2ca4204775 크리에이터 채널 - 팔로워 수
- 탈퇴한 회원은 카운팅에서 제외
2024-04-09 23:09:22 +09:00
2 changed files with 3 additions and 2 deletions

View File

@ -54,6 +54,7 @@ class ExplorerQueryRepository(
.where( .where(
creatorFollowing.isActive.isTrue creatorFollowing.isActive.isTrue
.and(creatorFollowing.creator.id.eq(creatorId)) .and(creatorFollowing.creator.id.eq(creatorId))
.and(creatorFollowing.member.isActive.isTrue)
) )
.fetch() .fetch()
} }

View File

@ -58,8 +58,8 @@ class LiveRoomQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) : L
.offset(offset) .offset(offset)
.limit(limit) .limit(limit)
.orderBy( .orderBy(
quarterLiveRankings.totalCan.desc(), quarterLiveRankings.totalCan.coalesce(0).desc(),
quarterLiveRankings.totalParticipants.desc(), quarterLiveRankings.totalParticipants.coalesce(0).desc(),
liveRoom.beginDateTime.desc(), liveRoom.beginDateTime.desc(),
liveRoom.member.createdAt.desc() liveRoom.member.createdAt.desc()
) )