mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-30 15:06:06 +00:00
BETWEEN
This commit is contained in:
parent
f33715da6d
commit
4f8a37a6b9
3 changed files with 11 additions and 2 deletions
|
|
@ -67,6 +67,9 @@ Future<Item> loadChildrenItems(Item item, List<Filter> filters) async {
|
|||
if(filter.selectedValues.isNotEmpty) {
|
||||
whereFilter = " AND (${filter.name} LIKE '%" + filter.selectedValues.join("%' OR ${filter.name} LIKE '%") + "%')";
|
||||
}
|
||||
if(filter.rangeValues != null && (filter.rangeValues.start > 0 || filter.rangeValues.end < filter.values.length - 1) ) {
|
||||
whereFilter = " AND ([${filter.name}] BETWEEN '${filter.values[filter.rangeValues.start.round()]}' AND '${filter.values[filter.rangeValues.end.round()]}')";
|
||||
}
|
||||
});
|
||||
}
|
||||
print(whereFilter);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue