From 246136b1ad7124c08c31dbe1b0d8ff9abbb26a58 Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 25 Apr 2024 02:25:16 +0900 Subject: [PATCH] . --- .../content/series/ContentSeriesRepository.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/content/series/ContentSeriesRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/content/series/ContentSeriesRepository.kt index 1148c65..6194ec2 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/series/ContentSeriesRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/series/ContentSeriesRepository.kt @@ -1,8 +1,10 @@ package kr.co.vividnext.sodalive.content.series import com.querydsl.jpa.impl.JPAQueryFactory +import kr.co.vividnext.sodalive.admin.content.series.genre.QSeriesGenre.seriesGenre import kr.co.vividnext.sodalive.creator.admin.content.series.QSeries.series import kr.co.vividnext.sodalive.creator.admin.content.series.Series +import kr.co.vividnext.sodalive.member.QMember.member import org.springframework.data.jpa.repository.JpaRepository interface ContentSeriesRepository : JpaRepository, ContentSeriesQueryRepository @@ -56,21 +58,19 @@ class ContentSeriesQueryRepositoryImpl( QGetSeriesListRawItem( series.id, series.title, - series.coverImage.coalesce("profile/default-profile.png") - .prepend("/") - .prepend(imageHost), + series.coverImage.prepend("/").prepend(imageHost), series.publishedDaysOfWeek, series.state, series.genre.genre, series.isAdult, series.member.id, series.member.nickname, - series.member.profileImage.coalesce("profile/default-profile.png") - .prepend("/") - .prepend(imageHost) + series.member.profileImage.prepend("/").prepend(imageHost) ) ) .from(series) + .innerJoin(series.member, member) + .innerJoin(series.genre, seriesGenre) .where(where) .fetch() }