调用:
public List<FamilyInfo> query(FamilyInfo familyInfo, int pageSize, int pageNum) throws IllegalAccessException {
Criteria cri = getCriteria(familyInfo);
Pager pager = super.dao().createPager(pageNum, pageSize);
String sql = "SELECT * FROM V_SSC_FAMILY_QUES";
return Daos.query(super.dao(), FamilyInfo.class, sql, cri, pager);
}
执行的Sql:
SELECT * FROM (SELECT T.*, ROWNUM RN FROM (SELECT * FROM V_SSC_FAMILY_QUES) T WHERE ROWNUM <= 15) WHERE RN > 0
这段代码,调用Daos.query()方法的参数都是有值得,只能分页,不能附带条件?