예제 #1
0
 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);
 }
예제 #2
0
 public List<TmSectorAction> selectAllByRecord(TmSectorAction tmSectorAction)
     throws BaseException {
   TmSectorActionIntf mapper = this.getSqlSessionTemplate().getMapper(TmSectorActionIntf.class);
   return mapper.selectAllByRecord(tmSectorAction);
 }