dao : {
type : "org.nutz.dao.impl.NutDao",
args : [ {
refer : "dataSource"
}, {
refer : "sqlManeger"
} ]
},
dao4Sx : {
type : "org.nutz.dao.impl.NutDao",
args : [ {
refer : "dataSource4Sx"
}, {
refer : "sqlManeger"
} ]
},
6 回复
Pager<Record> pager = new Pager<Record>(PAGESIZE, page);
Condition cnd = Cnd.NEW();
Sql sql = dao4Sx.sqls().create("find.info.list.by.admin.id");
Sql sql1 = dao4Sx.sqls().create("find.info.count.by.admin.id");
cnd = Cnd.where("m.isdelete", "=", 0);
sql.setCondition(cnd);
sql1.setCondition(cnd);
sql.params().set("pageStart", (page - 1) * PAGESIZE);
sql.params().set("pageSize", PAGESIZE);
pager.setEntities(SqlActuator.runReport(sql, dao));
pager.setCount(SqlActuator.runUnq(sql1, dao));
return pager;
添加回复
请先登陆