浏览代码

修改 limit

lyhzzz 3 年之前
父节点
当前提交
cff1ba6948
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform-common/src/main/java/com/platform/utils/Query.java

+ 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);