dao().query(ProgramInfo.class, Cnd.orderBy().desc("viewNum"), new Pager().setPageSize(7).setPageNumber(1)))
以上语句在执行时在日志中被解析成:
SELECT * FROM (SELECT ROW_NUMBER() OVER() AS ROWNUM, T.* FROM ( SELECT * FROM program_info ORDER BY view_num DESC ) T) AS A WHERE ROWNUM BETWEEN 1 AND 7