lrf 8 months ago
parent
commit
a925a9e5f7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main/java/com/free/controller/HistoryController.java

+ 1 - 0
src/main/java/com/free/controller/HistoryController.java

@@ -89,6 +89,7 @@ public class HistoryController {
     Long skip = null, limit = null;
     Map map = new HashMap();
     QueryWrapper qw = new QueryWrapper<>();
+    qw.orderByDesc("views");
     /** 参数处理处理 */
     for (String key : allParams.keySet()) {
       Object value = allParams.get(key);