test #221

Merged
klaus merged 7 commits from test into main 2024-10-11 05:06:23 +00:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 057ff17240 - Show all commits

View File

@ -373,7 +373,7 @@ 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(if (contentType == ContentType.MALE) 1 else 0) audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 0 else 1)
.or(audioContent.isAdult.isFalse) .or(audioContent.isAdult.isFalse)
) )
} }
@ -453,7 +453,7 @@ 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(if (contentType == ContentType.MALE) 1 else 0) audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 0 else 1)
.or(audioContent.isAdult.isFalse) .or(audioContent.isAdult.isFalse)
) )
} }
@ -496,7 +496,7 @@ 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(if (contentType == ContentType.MALE) 1 else 0) audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 0 else 1)
.or(audioContent.isAdult.isFalse) .or(audioContent.isAdult.isFalse)
) )
} }
@ -610,7 +610,7 @@ 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(if (contentType == ContentType.MALE) 1 else 0) audioContent.member.auth.gender.eq(if (contentType == ContentType.MALE) 0 else 1)
.or(audioContent.isAdult.isFalse) .or(audioContent.isAdult.isFalse)
) )
} }