浏览代码

setTotal(Long total) -> setTotal(long total)

miemie 6 年之前
父节点
当前提交
e513eb94f8

+ 1 - 3
mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/metadata/IPage.java

@@ -152,10 +152,8 @@ public interface IPage<T> extends Serializable {
      * <p>
      * 设置当前满足条件总行数
      * </p>
-     * <p>
-     * </p>
      */
-    IPage<T> setTotal(Long total);
+    IPage<T> setTotal(long total);
 
     /**
      * <p>

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

@@ -146,7 +146,7 @@ public class Page<T> implements IPage<T> {
     }
 
     @Override
-    public Page<T> setTotal(Long total) {
+    public Page<T> setTotal(long total) {
         this.total = total;
         return this;
     }