|
@@ -329,6 +329,10 @@ public class Page<T> implements IPage<T> {
|
|
return optimizeCountSql;
|
|
return optimizeCountSql;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public boolean isOptimizeCountSql() {
|
|
|
|
+ return optimizeCountSql();
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public boolean isSearchCount() {
|
|
public boolean isSearchCount() {
|
|
if (total < 0) {
|
|
if (total < 0) {
|
|
@@ -352,6 +356,10 @@ public class Page<T> implements IPage<T> {
|
|
this.hitCount = hit;
|
|
this.hitCount = hit;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public void setHitCount(boolean hit) {
|
|
|
|
+ this.hitCount = hit;
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public boolean isHitCount() {
|
|
public boolean isHitCount() {
|
|
return hitCount;
|
|
return hitCount;
|