19금 콘텐츠 보기 설정 적용 #289
@@ -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(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user