Skip to content

Commit

Permalink
Add get sysconfig ordered by values
Browse files Browse the repository at this point in the history
  • Loading branch information
sprevilla committed Sep 5, 2019
1 parent 2d4f97d commit 513a0b4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ public List<SysConfig> getAll () {
orders.put("id",true);
return getAll(0,-1,orders);
}
public List<SysConfig> getAllByValue () {
HashMap<String,Boolean> orders = new HashMap<>();
orders.put("value",true);
return getAll(0,-1,orders);
}

@Override
protected Predicate[] buildFilters(Root<SysConfig> root) {
Expand Down

0 comments on commit 513a0b4

Please # to comment.