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