Commit 828f40b6 by Sxy

feat: findcountAll 支持 查询全部

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