Skip to content

Commit

Permalink
0005465: Fixed ordering of batches in new method
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-miller-jumpmind committed Sep 23, 2022
1 parent f195619 commit 7f6d161
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -164,7 +164,7 @@ public List<IncomingBatch> listIncomingBatches(List<String> nodeIds, List<String
public List<IncomingBatch> listIncomingBatches(List<FilterCriterion> filter) {
String where = filter != null ? buildBatchWhereFromFilter(filter) : null;
Map<String, Object> params = filter != null ? buildBatchParams(filter) : new HashMap<String, Object>();
String sql = getSql("selectIncomingBatchPrefixSql", where);
String sql = getSql("selectIncomingBatchPrefixSql", where, " order by batch_id desc");
int maxBatches = parameterService.getInt("batch.screen.max.to.select");
if (maxBatches < 1) {
maxBatches = Integer.MAX_VALUE;
Expand Down
Expand Up @@ -455,7 +455,7 @@ public List<OutgoingBatch> listOutgoingBatches(List<String> nodeIds, List<String
public List<OutgoingBatch> listOutgoingBatches(List<FilterCriterion> filter) {
String where = filter != null ? buildBatchWhereFromFilter(filter) : null;
Map<String, Object> params = filter != null ? buildBatchParams(filter) : new HashMap<String, Object>();
String sql = getSql("selectOutgoingBatchPrefixSql", where);
String sql = getSql("selectOutgoingBatchPrefixSql", where, " order by batch_id desc");
int maxBatches = parameterService.getInt("batch.screen.max.to.select");
if (maxBatches < 1) {
maxBatches = Integer.MAX_VALUE;
Expand Down

0 comments on commit 7f6d161

Please sign in to comment.