@Override public Page<AcctLog> listForPage(int pageCurrent, int pageSize, AcctLogExample example) { int count = this.acctLogMapper.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<AcctLog>(count, totalPage, pageCurrent, pageSize, this.acctLogMapper.selectByExample(example)); } }