parent
e007a95982
commit
319893d60f
|
@ -150,8 +150,11 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
|
||||||
SortType.PRICE_LOW -> audioContent.price.asc()
|
SortType.PRICE_LOW -> audioContent.price.asc()
|
||||||
}
|
}
|
||||||
|
|
||||||
var where = audioContent.isActive.isTrue
|
var where = audioContent.member.id.eq(creatorId)
|
||||||
.and(audioContent.member.id.eq(creatorId))
|
.and(
|
||||||
|
audioContent.isActive.isTrue
|
||||||
|
.or(audioContent.releaseDate.isNotNull)
|
||||||
|
)
|
||||||
|
|
||||||
if (!isAdult) {
|
if (!isAdult) {
|
||||||
where = where.and(audioContent.isAdult.isFalse)
|
where = where.and(audioContent.isAdult.isFalse)
|
||||||
|
@ -170,8 +173,11 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
|
||||||
creatorId: Long,
|
creatorId: Long,
|
||||||
isAdult: Boolean
|
isAdult: Boolean
|
||||||
): Int {
|
): Int {
|
||||||
var where = audioContent.isActive.isTrue
|
var where = audioContent.member.id.eq(creatorId)
|
||||||
.and(audioContent.member.id.eq(creatorId))
|
.and(
|
||||||
|
audioContent.isActive.isTrue
|
||||||
|
.or(audioContent.releaseDate.isNotNull)
|
||||||
|
)
|
||||||
|
|
||||||
if (!isAdult) {
|
if (!isAdult) {
|
||||||
where = where.and(audioContent.isAdult.isFalse)
|
where = where.and(audioContent.isAdult.isFalse)
|
||||||
|
|
Loading…
Reference in New Issue