크리에이터 관리자 카테고리 콘텐츠 검색
- 검색 조건 수정
This commit is contained in:
@@ -16,14 +16,17 @@ class CreatorAdminCategoryRepository(private val queryFactory: JPAQueryFactory)
|
||||
.select(QSearchContentNotInCategoryResponse(audioContent.id, audioContent.title))
|
||||
.from(audioContent)
|
||||
.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(
|
||||
audioContent.duration.isNotNull
|
||||
.and(audioContent.member.isNotNull)
|
||||
.and(audioContent.member.id.eq(memberId))
|
||||
.and(audioContent.isActive.isTrue.or(audioContent.releaseDate.isNotNull))
|
||||
.and(audioContent.title.contains(searchWord))
|
||||
.and(categoryContent.category.id.eq(categoryId))
|
||||
)
|
||||
.fetch()
|
||||
}
|
||||
|
Reference in New Issue
Block a user