Commit 2b133309 by 吴佳

分页查询 total

parent 54c3c53b
...@@ -356,6 +356,7 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession ...@@ -356,6 +356,7 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession
if (cacheOption != null) { if (cacheOption != null) {
PageHelper.clearPage(); PageHelper.clearPage();
} }
baseVO.setTotal(lists[0].size());
return lists[0].size(); return lists[0].size();
} }
......
...@@ -12,6 +12,7 @@ public class BaseVO { ...@@ -12,6 +12,7 @@ public class BaseVO {
protected String id; protected String id;
protected String cifno; protected String cifno;
protected String pageId; protected String pageId;
public int total;
protected Map<String, Object> params; protected Map<String, Object> params;
protected Map<String, Object> root; protected Map<String, Object> root;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment