탐색
- 남/여 크리에이터 리스트 추가 - 인기크리, 새로시작 외 나머지 섹션 제거
This commit is contained in:
@@ -185,12 +185,14 @@ class ExplorerQueryRepository(
|
||||
val rotatedChars = characters.drop(offset) + characters.take(offset)
|
||||
|
||||
val caseBuilder = Expressions.stringTemplate(
|
||||
"CASE {0}",
|
||||
rotatedChars
|
||||
.withIndex()
|
||||
.joinToString(" ") {
|
||||
"WHEN {0} THEN {1}".format(member.email.startsWith(it.value), it.index + 1)
|
||||
}
|
||||
"CASE",
|
||||
rotatedChars.withIndex().joinToString(" ") {
|
||||
"WHEN {0} LIKE {1} THEN {2}".format(
|
||||
member.email,
|
||||
"'" + it.value + "%'",
|
||||
it.index + 1
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
val randomExpression = Expressions.numberTemplate(Double::class.java, "function('rand')").asc()
|
||||
|
Reference in New Issue
Block a user