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,
|
auditionApplicant.id,
|
||||||
member.nickname,
|
member.nickname,
|
||||||
member.profileImage.prepend("/").prepend(cloudfrontHost),
|
member.profileImage.prepend("/").prepend(cloudfrontHost),
|
||||||
|
auditionApplicant.phoneNumber,
|
||||||
auditionApplicant.voicePath.prepend("/").prepend(cloudfrontHost),
|
auditionApplicant.voicePath.prepend("/").prepend(cloudfrontHost),
|
||||||
auditionVote.id.count()
|
auditionVote.id.count()
|
||||||
)
|
)
|
||||||
|
@ -82,8 +83,14 @@ class AdminAuditionRoleQueryRepositoryImpl(
|
||||||
.innerJoin(auditionApplicant.member, member)
|
.innerJoin(auditionApplicant.member, member)
|
||||||
.innerJoin(auditionApplicant.role, auditionRole)
|
.innerJoin(auditionApplicant.role, auditionRole)
|
||||||
.leftJoin(auditionVote).on(auditionApplicant.id.eq(auditionVote.applicant.id))
|
.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)
|
.groupBy(auditionApplicant.id)
|
||||||
|
.orderBy(auditionVote.id.count().desc())
|
||||||
|
.offset(offset)
|
||||||
|
.limit(limit)
|
||||||
.fetch()
|
.fetch()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ data class GetAuditionRoleApplicantItem @QueryProjection constructor(
|
||||||
val applicantId: Long,
|
val applicantId: Long,
|
||||||
val nickname: String,
|
val nickname: String,
|
||||||
val profileImageUrl: String,
|
val profileImageUrl: String,
|
||||||
|
val phoneNumber: String,
|
||||||
val voiceUrl: String,
|
val voiceUrl: String,
|
||||||
val voteCount: Long
|
val voteCount: Long
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue