parent
113d29fab0
commit
3df0b1fcec
|
@ -16,14 +16,17 @@ class CreatorAdminCategoryRepository(private val queryFactory: JPAQueryFactory)
|
||||||
.select(QSearchContentNotInCategoryResponse(audioContent.id, audioContent.title))
|
.select(QSearchContentNotInCategoryResponse(audioContent.id, audioContent.title))
|
||||||
.from(audioContent)
|
.from(audioContent)
|
||||||
.leftJoin(categoryContent)
|
.leftJoin(categoryContent)
|
||||||
.on(audioContent.id.eq(categoryContent.content.id).and(categoryContent.isActive.ne(true)))
|
.on(
|
||||||
|
audioContent.id.eq(categoryContent.content.id)
|
||||||
|
.and(categoryContent.isActive.ne(true))
|
||||||
|
.and(categoryContent.category.id.eq(categoryId))
|
||||||
|
)
|
||||||
.where(
|
.where(
|
||||||
audioContent.duration.isNotNull
|
audioContent.duration.isNotNull
|
||||||
.and(audioContent.member.isNotNull)
|
.and(audioContent.member.isNotNull)
|
||||||
.and(audioContent.member.id.eq(memberId))
|
.and(audioContent.member.id.eq(memberId))
|
||||||
.and(audioContent.isActive.isTrue.or(audioContent.releaseDate.isNotNull))
|
.and(audioContent.isActive.isTrue.or(audioContent.releaseDate.isNotNull))
|
||||||
.and(audioContent.title.contains(searchWord))
|
.and(audioContent.title.contains(searchWord))
|
||||||
.and(categoryContent.category.id.eq(categoryId))
|
|
||||||
)
|
)
|
||||||
.fetch()
|
.fetch()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue