@Override public Page<AcctInfo> listForPage(int pageCurrent, int pageSize, AcctInfoExample example) { int count = this.acctInfoMapper.countByExample(example); pageSize = PageUtil.checkPageSize(pageSize); pageCurrent = PageUtil.checkPageCurrent(count, pageSize, pageCurrent); int totalPage = PageUtil.countTotalPage(count, pageSize); example.setLimitStart(PageUtil.countOffset(pageCurrent, pageSize)); example.setPageSize(pageSize); return new Page<AcctInfo>(count, totalPage, pageCurrent, pageSize, this.acctInfoMapper.selectByExample(example)); }