test #368

Merged
klaus merged 2 commits from test into main 2025-11-20 16:02:26 +00:00
Showing only changes of commit 39c51825da - Show all commits

View File

@@ -64,15 +64,24 @@ class AudioContentThemeQueryRepository(
where = where.and(audioContent.isPointAvailable.isTrue)
}
return queryFactory
val query = queryFactory
.select(audioContentTheme.theme)
.from(audioContent)
.innerJoin(audioContent.member, member)
.innerJoin(audioContent.theme, audioContentTheme)
.where(where)
.groupBy(audioContentTheme.id)
.orderBy(audioContentTheme.orders.asc())
.fetch()
if (isFree) {
query.orderBy(
audioContentTheme.theme.eq("자기소개").desc(),
audioContentTheme.orders.asc()
)
} else {
query.orderBy(audioContentTheme.orders.asc())
}
return query.fetch()
}
fun findThemeByIdAndActive(id: Long): AudioContentTheme? {