콘텐츠 메인 홈, 모닝콜, asmr, 단편, 무료, 다시듣기, 시리즈
- 남성향, 여성향 선택한 유저의 경우 해당 성향의 콘텐츠 + 미인증 크리에이터의 콘텐츠를 보여주도록 수정
This commit is contained in:
parent
c7eae53b22
commit
dc1c29b69d
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue