plant wise filter

This commit is contained in:
gowthaman 2024-05-16 17:27:05 +05:30
parent e68b24b557
commit cad5a647f1

View File

@ -121,7 +121,7 @@ fun <T> applyPlantFilter(q: io.ebean.ExpressionList<T>, vids: List<Long>?) {
if (vids.isNullOrEmpty()) {
q.`in`("unloadingPlantId", Session.currentUserPlants().map { it.plantId })
} else {
q.`in`("unloadingPlantId", vids)
q.`in`("unloadingPlantId", vids.map { it.toString() })
}
}