- 남/여 크리에이터 리스트 추가
- 인기크리, 새로시작 외 나머지 섹션 제거
This commit is contained in:
Klaus 2024-05-03 01:06:57 +09:00
parent 047446ba3a
commit 54072412f3
1 changed files with 8 additions and 6 deletions

View File

@ -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()