自定义 SQL分页
Sql sql = Sqls.create("sql" );
sql.setCallback(Sqls.callback.entities());
sql.setEntity(dao.getEntity(Model.class));
Pager pager = dao.createPager(1, 15);
Long count = Daos.queryCount(dao, sql);
pager.setRecordCount(count.intValue());
sql.setPager(pager);
dao.execute(sql);
List<Model> querylist = sql.getList(Model.class);