19금 콘텐츠 보기 설정 적용 #289
@@ -426,10 +426,16 @@ class RankingRepository(
 | 
			
		||||
            .and(member.role.eq(MemberRole.CREATOR))
 | 
			
		||||
            .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) {
 | 
			
		||||
            memberCondition = memberCondition.and(
 | 
			
		||||
                member.auth.isNull.or(
 | 
			
		||||
                    member.auth.gender.eq(
 | 
			
		||||
            where = where.and(
 | 
			
		||||
                audioContent.member.auth.isNull.or(
 | 
			
		||||
                    audioContent.member.auth.gender.eq(
 | 
			
		||||
                        if (contentType == ContentType.MALE) {
 | 
			
		||||
                            0
 | 
			
		||||
                        } 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
 | 
			
		||||
            .select(
 | 
			
		||||
                QContentCreatorResponse(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user