test #301
|
@ -1165,7 +1165,7 @@ class AudioContentQueryRepositoryImpl(
|
|||
.and(audioContent.isActive.isTrue)
|
||||
.and(audioContent.title.lt(title))
|
||||
.and(audioContent.limited.isNull)
|
||||
.and(audioContent.releaseDate.goe(LocalDateTime.now()))
|
||||
.and(audioContent.releaseDate.loe(LocalDateTime.now()))
|
||||
|
||||
if (!isAdult) {
|
||||
where = where.and(audioContent.isAdult.isFalse)
|
||||
|
@ -1183,7 +1183,7 @@ class AudioContentQueryRepositoryImpl(
|
|||
.innerJoin(seriesContent.series, series)
|
||||
.innerJoin(seriesContent.content, audioContent)
|
||||
.where(where)
|
||||
.orderBy(audioContent.title.asc())
|
||||
.orderBy(audioContent.title.desc())
|
||||
.limit(1)
|
||||
.fetchFirst()
|
||||
}
|
||||
|
@ -1194,7 +1194,7 @@ class AudioContentQueryRepositoryImpl(
|
|||
.and(audioContent.isActive.isTrue)
|
||||
.and(audioContent.title.gt(title))
|
||||
.and(audioContent.limited.isNull)
|
||||
.and(audioContent.releaseDate.goe(LocalDateTime.now()))
|
||||
.and(audioContent.releaseDate.loe(LocalDateTime.now()))
|
||||
|
||||
if (!isAdult) {
|
||||
where = where.and(audioContent.isAdult.isFalse)
|
||||
|
@ -1211,6 +1211,7 @@ class AudioContentQueryRepositoryImpl(
|
|||
.from(seriesContent)
|
||||
.innerJoin(seriesContent.series, series)
|
||||
.innerJoin(seriesContent.content, audioContent)
|
||||
.innerJoin(series.member, member)
|
||||
.where(where)
|
||||
.orderBy(audioContent.title.asc())
|
||||
.limit(1)
|
||||
|
@ -1221,6 +1222,7 @@ class AudioContentQueryRepositoryImpl(
|
|||
var where = series.isActive.isTrue
|
||||
.and(audioContent.isActive.isTrue)
|
||||
.and(audioContent.id.eq(contentId))
|
||||
.and(member.role.eq(MemberRole.CREATOR))
|
||||
|
||||
if (!isAdult) {
|
||||
where = where.and(series.isAdult.isFalse)
|
||||
|
@ -1231,6 +1233,7 @@ class AudioContentQueryRepositoryImpl(
|
|||
.from(seriesContent)
|
||||
.innerJoin(seriesContent.series, series)
|
||||
.innerJoin(seriesContent.content, audioContent)
|
||||
.innerJoin(series.member, member)
|
||||
.where(where)
|
||||
.orderBy(seriesContent.id.asc())
|
||||
.limit(1)
|
||||
|
|
Loading…
Reference in New Issue