콘텐츠 메인 - 새로운 콘텐츠, 큐레이션

- 남성향이면 여성 크리에이터, 여성향이면 남성 크리에이터 19작품 + 비성인 작품이 조회되도록 수정
This commit is contained in:
Klaus 2024-10-10 15:47:47 +09:00
parent b9ad3bdb72
commit 057ff17240
1 changed files with 4 additions and 4 deletions

View File

@ -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)
)
}