시리즈 상세 - 콘텐츠 리스트 두번째 정렬 조건 추가 #219
| @@ -59,10 +59,10 @@ class ContentSeriesContentQueryRepositoryImpl( | ||||
|             .and(audioContent.isActive.isTrue) | ||||
|             .and(audioContent.duration.isNotNull) | ||||
|  | ||||
|         var orderBy = audioContent.releaseDate.desc() | ||||
|         var sortOrders = listOf(audioContent.releaseDate.desc(), audioContent.id.desc()) | ||||
|  | ||||
|         if (sortType == SeriesSortType.OLDEST) { | ||||
|             orderBy = audioContent.releaseDate.asc() | ||||
|             sortOrders = listOf(audioContent.releaseDate.asc(), audioContent.id.asc()) | ||||
|         } | ||||
|  | ||||
|         if (!isAdult) { | ||||
| @@ -98,7 +98,7 @@ class ContentSeriesContentQueryRepositoryImpl( | ||||
|             .innerJoin(seriesContent.series, series) | ||||
|             .innerJoin(seriesContent.content, audioContent) | ||||
|             .where(where) | ||||
|             .orderBy(orderBy) | ||||
|             .orderBy(*sortOrders.toTypedArray()) | ||||
|             .offset(offset) | ||||
|             .limit(limit) | ||||
|             .fetch() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user