SupContractDAO extends BaseIbatisDAO { public Page<SupContract> getSupContractByParam(Map<String,Object> param, Long pageSize, Long currentPage){ Integer count = 0; count = (Integer) super.queryForObject("SUP_CONTRACT.selectRowCount",param); Page<SupContract> page = Page.page(count, pageSize, currentPage); if(page != null && count > 0){ param.put("_startRow", page.getStartRows()); param.put("_endRow", page.getEndRows()); List<SupContract> list = super.queryForList("SUP_CONTRACT.selectContract", param); page.setItems(list); } return page; }  Long insert(SupContract record); SupContract selectByPrimaryKey(Long contractId); int updateByPrimaryKey(SupContract record); List<SupContract> getSupContracts(Map param); void markIsValid(Map params); Integer selectRowCount(Map searchConds); Page<SupContract> getSupContractByParam(Map<String,Object> param, Long pageSize, Long currentPage); List<SupContract> selectContractExpiredList(Map<String, Object> params);  }
@Test public void testGetSupContractByParam() { Page<SupContract> page = supContractDAO.getSupContractByParam(new HashMap<String, Object>(), 10L, 1L); System.out.println(page.getItems().size()); }