lyhzzz 3 年 前
コミット
cff1ba6948

+ 1 - 1
platform-common/src/main/java/com/platform/utils/Query.java

@@ -26,7 +26,7 @@ public class Query extends LinkedHashMap<String, Object> {
 
         //分页参数
         this.page = params.get("page") == null ? 1 :  Integer.parseInt(params.get("page").toString());
-        this.limit = params.get("page") == null ? 10 :  Integer.parseInt(params.get("limit").toString());
+        this.limit = params.get("limit") == null ? 10 :  Integer.parseInt(params.get("limit").toString());
         this.put("offset", (page - 1) * limit);
         this.put("page", page);
         this.put("limit", limit);