This commit is contained in:
gowthaman 2024-08-12 17:22:18 +05:30
parent 7bab40e4fa
commit d19d322753

View File

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