콘텐츠 메인 홈

- 로그인 없이 조회가 가능하도록 수정
This commit is contained in:
Klaus 2025-03-22 01:50:00 +09:00
parent 82afdecf6c
commit 387d364861
1 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,6 @@ class RankingRepository(
.and(audioContent.duration.isNotNull) .and(audioContent.duration.isNotNull)
.and(audioContentTheme.isActive.isTrue) .and(audioContentTheme.isActive.isTrue)
.and(audioContent.limited.isNull) .and(audioContent.limited.isNull)
.and(blockMember.id.isNull)
if (!isAdult) { if (!isAdult) {
where = where.and(audioContent.isAdult.isFalse) where = where.and(audioContent.isAdult.isFalse)
@ -142,6 +141,7 @@ class RankingRepository(
} }
if (memberId != null) { if (memberId != null) {
where = where.and(blockMember.id.isNull)
select = select.leftJoin(blockMember).on(blockMemberCondition) select = select.leftJoin(blockMember).on(blockMemberCondition)
} }
@ -224,7 +224,6 @@ class RankingRepository(
.and(member.role.eq(MemberRole.CREATOR)) .and(member.role.eq(MemberRole.CREATOR))
.and(audioContent.duration.isNotNull) .and(audioContent.duration.isNotNull)
.and(audioContent.limited.isNull) .and(audioContent.limited.isNull)
.and(blockMember.id.isNull)
.and(order.isActive.isTrue) .and(order.isActive.isTrue)
.and(order.createdAt.goe(startDate)) .and(order.createdAt.goe(startDate))
.and(order.createdAt.lt(endDate)) .and(order.createdAt.lt(endDate))
@ -256,6 +255,7 @@ class RankingRepository(
.leftJoin(order).on(audioContent.id.eq(order.audioContent.id)) .leftJoin(order).on(audioContent.id.eq(order.audioContent.id))
if (memberId != null) { if (memberId != null) {
where = where.and(blockMember.id.isNull)
select = select.leftJoin(blockMember).on(blockMemberCondition) select = select.leftJoin(blockMember).on(blockMemberCondition)
} }
@ -466,7 +466,6 @@ class RankingRepository(
.and(audioContent.price.gt(0)) .and(audioContent.price.gt(0))
.and(audioContent.duration.isNotNull) .and(audioContent.duration.isNotNull)
.and(audioContent.limited.isNull) .and(audioContent.limited.isNull)
.and(blockMember.id.isNull)
if (!isAdult) { if (!isAdult) {
where = where.and(audioContent.isAdult.isFalse) where = where.and(audioContent.isAdult.isFalse)
@ -499,6 +498,7 @@ class RankingRepository(
.leftJoin(order).on(ordersCondition) .leftJoin(order).on(ordersCondition)
if (memberId != null) { if (memberId != null) {
where = where.and(blockMember.id.isNull)
select = select.leftJoin(blockMember).on(blockMemberCondition) select = select.leftJoin(blockMember).on(blockMemberCondition)
} }