콘텐츠 메인 - 새로운 콘텐츠, 큐레이션
- 19금 콘텐츠 성향 데이터가 있을 때 성향 + 비성인 콘텐츠가 조회되도록 수정
This commit is contained in:
@@ -374,6 +374,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
|
|||||||
if (contentType != ContentType.ALL) {
|
if (contentType != ContentType.ALL) {
|
||||||
where = where.and(
|
where = where.and(
|
||||||
audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 1 else 0)
|
audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 1 else 0)
|
||||||
|
.or(audioContent.isAdult.isFalse)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -453,6 +454,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
|
|||||||
if (contentType != ContentType.ALL) {
|
if (contentType != ContentType.ALL) {
|
||||||
where = where.and(
|
where = where.and(
|
||||||
audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 1 else 0)
|
audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 1 else 0)
|
||||||
|
.or(audioContent.isAdult.isFalse)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -495,6 +497,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
|
|||||||
if (contentType != ContentType.ALL) {
|
if (contentType != ContentType.ALL) {
|
||||||
where = where.and(
|
where = where.and(
|
||||||
audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 1 else 0)
|
audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 1 else 0)
|
||||||
|
.or(audioContent.isAdult.isFalse)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -607,9 +610,8 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
|
|||||||
} else {
|
} else {
|
||||||
if (contentType != ContentType.ALL) {
|
if (contentType != ContentType.ALL) {
|
||||||
where = where.and(
|
where = where.and(
|
||||||
audioContent.member.auth.gender.eq(
|
audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 1 else 0)
|
||||||
if (contentType == ContentType.MALE) 1 else 0
|
.or(audioContent.isAdult.isFalse)
|
||||||
)
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user