order by
This commit is contained in:
parent
7bab40e4fa
commit
d19d322753
@ -184,7 +184,7 @@ object Entities {
|
||||
and data @> cast(:search as jsonb)
|
||||
and deleted = false
|
||||
$createdFilter
|
||||
order by sysPk desc
|
||||
order by ${sql.orderBy}
|
||||
""".trimIndent()
|
||||
).create()
|
||||
)
|
||||
@ -386,7 +386,8 @@ object Entities {
|
||||
data class SearchParams(
|
||||
val params: Map<String, QueryParam> = mapOf(),
|
||||
val createdBy: String?,
|
||||
val dateRange: List<LocalDate> = listOf(LocalDate.now().minusDays(7), LocalDate.now())
|
||||
val dateRange: List<LocalDate> = listOf(LocalDate.now().minusDays(7), LocalDate.now()),
|
||||
val orderBy: String = "sysPk asc"
|
||||
)
|
||||
|
||||
data class SequenceNumber(val number: String)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user