Skip to content

Commit

Permalink
🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
adlered committed Jan 11, 2024
1 parent 5871808 commit 3111858
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,9 @@ public List<JSONObject> getEvolve(final String type, final int fetchSize) {

try {
Query query = new Query()
.setFilter(new PropertyFilter("gameId", FilterOperator.EQUAL, 40));
.setFilter(new PropertyFilter("gameId", FilterOperator.EQUAL, 40))
.addSort(Keys.OBJECT_ID, SortDirection.DESCENDING)
.setPage(1, 100);
List<JSONObject> gameData = cloudRepository.getList(query);

// 排序并剪切
Expand Down Expand Up @@ -372,7 +374,9 @@ public List<JSONObject> getTopLifeRestart(final int fetchSize) {

try {
Query query = new Query()
.setFilter(new PropertyFilter("gameId", FilterOperator.EQUAL, 39));
.setFilter(new PropertyFilter("gameId", FilterOperator.EQUAL, 39))
.addSort(Keys.OBJECT_ID, SortDirection.DESCENDING)
.setPage(1, 100);
final List<JSONObject> gameDataFirst = cloudRepository.getList(query);

// 排序并剪切
Expand Down

0 comments on commit 3111858

Please sign in to comment.