|
@@ -15,10 +15,6 @@
|
|
*/
|
|
*/
|
|
package com.baomidou.mybatisplus.extension.plugins.pagination;
|
|
package com.baomidou.mybatisplus.extension.plugins.pagination;
|
|
|
|
|
|
-import com.baomidou.mybatisplus.core.metadata.OrderItem;
|
|
|
|
-
|
|
|
|
-import java.util.List;
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 简单分页模型 DTO 用于解决跨服务数据传输问题,不影响 Page 作为返回对象序列化 JSON 产生不必要的数据
|
|
* 简单分页模型 DTO 用于解决跨服务数据传输问题,不影响 Page 作为返回对象序列化 JSON 产生不必要的数据
|
|
*
|
|
*
|
|
@@ -47,35 +43,6 @@ public class PageDTO<T> extends Page<T> {
|
|
super(current, size, total, searchCount);
|
|
super(current, size, total, searchCount);
|
|
}
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
|
- public String getCountId() {
|
|
|
|
- return this.countId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @Override
|
|
|
|
- public Long getMaxLimit() {
|
|
|
|
- return this.maxLimit;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @Override
|
|
|
|
- public List<OrderItem> getOrders() {
|
|
|
|
- return this.orders;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @Override
|
|
|
|
- public boolean isOptimizeCountSql() {
|
|
|
|
- return this.optimizeCountSql;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public boolean isOptimizeJoinOfCountSql() {
|
|
|
|
- return this.optimizeJoinOfCountSql;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @Override
|
|
|
|
- public boolean isSearchCount() {
|
|
|
|
- return this.searchCount;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/* --------------- 以下为静态构造方式 --------------- */
|
|
/* --------------- 以下为静态构造方式 --------------- */
|
|
public static <T> Page<T> of(long current, long size) {
|
|
public static <T> Page<T> of(long current, long size) {
|
|
return of(current, size, 0);
|
|
return of(current, size, 0);
|