Browse Source

点击错误

hubin 4 years ago
parent
commit
7cad1e5be2

+ 0 - 21
mybatis-plus-extension/src/main/java/com/baomidou/mybatisplus/extension/plugins/pagination/Page.java

@@ -273,25 +273,4 @@ public class Page<T> implements IPage<T> {
         // 解决 github issues/3208
         return IPage.super.getPages();
     }
-
-    public static Page<T> of(long current, long size){
-        return this(current, size, 0);
-    }
-
-    public static Page<T> of(long current, long size, long total) {
-        this(current, size, total, true);
-    }
-
-    public static Page<T> of(long current, long size, boolean isSearchCount) {
-        this(current, size, 0, isSearchCount);
-    }
-
-    public static Page<T> of(long current, long size, long total, boolean isSearchCount) {
-        if (current > 1) {
-            this.current = current;
-        }
-        this.size = size;
-        this.total = total;
-        this.isSearchCount = isSearchCount;
-    }
 }