콘텐츠 메인
- 모닝콜 탭 API
This commit is contained in:
@@ -48,7 +48,8 @@ class RankingRepository(
|
||||
endDate: LocalDateTime,
|
||||
offset: Long,
|
||||
limit: Long,
|
||||
sortType: String
|
||||
sortType: String,
|
||||
theme: String = ""
|
||||
): List<GetAudioContentRankingItem> {
|
||||
val blockMemberCondition = blockMember.member.id.eq(member.id)
|
||||
.and(blockMember.isActive.isTrue)
|
||||
@@ -67,6 +68,10 @@ class RankingRepository(
|
||||
where = where.and(audioContent.isAdult.isFalse)
|
||||
}
|
||||
|
||||
if (theme.isNotBlank()) {
|
||||
where = where.and(audioContentTheme.theme.eq(theme))
|
||||
}
|
||||
|
||||
var select = queryFactory
|
||||
.select(
|
||||
QGetAudioContentRankingItem(
|
||||
|
@@ -44,7 +44,8 @@ class RankingService(
|
||||
endDate: LocalDateTime,
|
||||
offset: Long = 0,
|
||||
limit: Long = 12,
|
||||
sortType: String = "매출"
|
||||
sortType: String = "매출",
|
||||
theme: String = ""
|
||||
): List<GetAudioContentRankingItem> {
|
||||
return repository.getAudioContentRanking(
|
||||
memberId = memberId,
|
||||
@@ -53,7 +54,8 @@ class RankingService(
|
||||
endDate = endDate,
|
||||
offset = offset,
|
||||
limit = limit,
|
||||
sortType = sortType
|
||||
sortType = sortType,
|
||||
theme = theme
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user