Commit 67a97272 by Sxy

feat: 不分页

parent 69366744
...@@ -106,8 +106,10 @@ class Dao { ...@@ -106,8 +106,10 @@ class Dao {
const search = qobj.search; const search = qobj.search;
var qc = {}; var qc = {};
//设置分页查询条件 //设置分页查询条件
qc.limit = pageSize; if (pageNo != -1) {
qc.offset = (pageNo - 1) * pageSize; qc.limit = pageSize;
qc.offset = (pageNo - 1) * pageSize;
}
//默认的查询排序 //默认的查询排序
qc.order = this.orderBy(qobj); qc.order = this.orderBy(qobj);
//构造where条件 //构造where条件
......
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