콘텐츠 메인 - 새로운 콘텐츠, 큐레이션
- 남성향이면 여성 크리에이터, 여성향이면 남성 크리에이터 19작품 + 비성인 작품이 조회되도록 수정
This commit is contained in:
@@ -373,7 +373,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
|
||||
} else {
|
||||
if (contentType != ContentType.ALL) {
|
||||
where = where.and(
|
||||
audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 1 else 0)
|
||||
audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 0 else 1)
|
||||
.or(audioContent.isAdult.isFalse)
|
||||
)
|
||||
}
|
||||
@@ -453,7 +453,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
|
||||
} else {
|
||||
if (contentType != ContentType.ALL) {
|
||||
where = where.and(
|
||||
audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 1 else 0)
|
||||
audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 0 else 1)
|
||||
.or(audioContent.isAdult.isFalse)
|
||||
)
|
||||
}
|
||||
@@ -496,7 +496,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
|
||||
} else {
|
||||
if (contentType != ContentType.ALL) {
|
||||
where = where.and(
|
||||
audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 1 else 0)
|
||||
audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 0 else 1)
|
||||
.or(audioContent.isAdult.isFalse)
|
||||
)
|
||||
}
|
||||
@@ -610,7 +610,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
|
||||
} else {
|
||||
if (contentType != ContentType.ALL) {
|
||||
where = where.and(
|
||||
audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 1 else 0)
|
||||
audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 0 else 1)
|
||||
.or(audioContent.isAdult.isFalse)
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user