parent
82f49667a9
commit
6b138246a9
src/main/kotlin/kr/co/vividnext/sodalive/explorer
|
@ -185,7 +185,7 @@ class ExplorerQueryRepository(
|
|||
val rotatedChars = characters.drop(offset) + characters.take(offset)
|
||||
|
||||
val caseWhenClauses = rotatedChars.withIndex().joinToString(" ") {
|
||||
"WHEN {0}.email LIKE '{1}%' THEN {2}".format(member, it.value, it.index + 1)
|
||||
"WHEN ${member.email} LIKE '${it.value}%' THEN ${it.index + 1}"
|
||||
}
|
||||
val caseExpression = Expressions.stringTemplate("CASE $caseWhenClauses END")
|
||||
|
||||
|
|
Loading…
Reference in New Issue