public PageInfo selectPageByRecord(TmSectorAction tmSectorAction) throws BaseException { PageModel pageModel = tmSectorAction.getPageInfo(); PageHelper.startPage(pageModel.getPageNum(), pageModel.getPageSize()); TmSectorActionIntf mapper = this.getSqlSessionTemplate().getMapper(TmSectorActionIntf.class); mapper.selectAllByRecord(tmSectorAction); Page page = PageHelper.endPage(); return PageFormat.dataFormat(page); }
public List<TmSectorAction> selectAllByRecord(TmSectorAction tmSectorAction) throws BaseException { TmSectorActionIntf mapper = this.getSqlSessionTemplate().getMapper(TmSectorActionIntf.class); return mapper.selectAllByRecord(tmSectorAction); }