Merge pull request '관리자 오디션 지원 리스트' (#250) from test into main
Reviewed-on: #250
This commit is contained in:
commit
0974d1dbf8
|
@ -74,6 +74,7 @@ class AdminAuditionRoleQueryRepositoryImpl(
|
|||
auditionApplicant.id,
|
||||
member.nickname,
|
||||
member.profileImage.prepend("/").prepend(cloudfrontHost),
|
||||
auditionApplicant.phoneNumber,
|
||||
auditionApplicant.voicePath.prepend("/").prepend(cloudfrontHost),
|
||||
auditionVote.id.count()
|
||||
)
|
||||
|
@ -82,8 +83,14 @@ class AdminAuditionRoleQueryRepositoryImpl(
|
|||
.innerJoin(auditionApplicant.member, member)
|
||||
.innerJoin(auditionApplicant.role, auditionRole)
|
||||
.leftJoin(auditionVote).on(auditionApplicant.id.eq(auditionVote.applicant.id))
|
||||
.where(auditionRole.id.eq(auditionRoleId))
|
||||
.where(
|
||||
auditionRole.id.eq(auditionRoleId),
|
||||
auditionApplicant.isActive.isTrue
|
||||
)
|
||||
.groupBy(auditionApplicant.id)
|
||||
.orderBy(auditionVote.id.count().desc())
|
||||
.offset(offset)
|
||||
.limit(limit)
|
||||
.fetch()
|
||||
}
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ data class GetAuditionRoleApplicantItem @QueryProjection constructor(
|
|||
val applicantId: Long,
|
||||
val nickname: String,
|
||||
val profileImageUrl: String,
|
||||
val phoneNumber: String,
|
||||
val voiceUrl: String,
|
||||
val voteCount: Long
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue