19금 콘텐츠 보기 설정 적용 #289

Merged
klaus merged 3 commits from test into main 2025-03-19 02:05:17 +00:00
1 changed files with 9 additions and 9 deletions
Showing only changes of commit dc1c29b69d - Show all commits

View File

@ -426,10 +426,16 @@ class RankingRepository(
.and(member.role.eq(MemberRole.CREATOR)) .and(member.role.eq(MemberRole.CREATOR))
.and(member.id.eq(audioContent.member.id)) .and(member.id.eq(audioContent.member.id))
var where = audioContent.isActive.isTrue
.and(audioContent.price.gt(0))
.and(audioContent.duration.isNotNull)
.and(audioContent.limited.isNull)
.and(blockMember.id.isNull)
if (contentType != ContentType.ALL) { if (contentType != ContentType.ALL) {
memberCondition = memberCondition.and( where = where.and(
member.auth.isNull.or( audioContent.member.auth.isNull.or(
member.auth.gender.eq( audioContent.member.auth.gender.eq(
if (contentType == ContentType.MALE) { if (contentType == ContentType.MALE) {
0 0
} else { } else {
@ -440,12 +446,6 @@ class RankingRepository(
) )
} }
val where = audioContent.isActive.isTrue
.and(audioContent.price.gt(0))
.and(audioContent.duration.isNotNull)
.and(audioContent.limited.isNull)
.and(blockMember.id.isNull)
return queryFactory return queryFactory
.select( .select(
QContentCreatorResponse( QContentCreatorResponse(