Ejemplo n.º 1
0
 public TmSectorAction updateTmSectorAction(
     TmSectorAction tmSectorAction, String user, String programId) throws BaseException {
   TmSectorActionIntf mapper = this.getSqlSessionTemplate().getMapper(TmSectorActionIntf.class);
   tmSectorAction.setUpdateDateTime(getCurrentGMTDate());
   tmSectorAction.setUpdateUserCode(user);
   mapper.updateTmSectorAction(tmSectorAction);
   return tmSectorAction;
 }
Ejemplo n.º 2
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);
 }
Ejemplo n.º 3
0
 public TmSectorAction insertTmSectorAction(
     TmSectorAction tmSectorAction, String user, String programId) throws BaseException {
   TmSectorActionIntf mapper = this.getSqlSessionTemplate().getMapper(TmSectorActionIntf.class);
   tmSectorAction.setCreateDateTime(getCurrentGMTDate());
   tmSectorAction.setCreateUserCode(user);
   tmSectorAction.setUpdateDateTime(getCurrentGMTDate());
   tmSectorAction.setUpdateUserCode(user);
   mapper.insertTmSectorAction(tmSectorAction);
   if (tmSectorAction.getTmSectorActionId() == null) {
     tmSectorAction.setTmSectorActionId(getLastPk());
   }
   return tmSectorAction;
 }
Ejemplo n.º 4
0
 public List<TmSectorAction> selectAllByRecord(TmSectorAction tmSectorAction)
     throws BaseException {
   TmSectorActionIntf mapper = this.getSqlSessionTemplate().getMapper(TmSectorActionIntf.class);
   return mapper.selectAllByRecord(tmSectorAction);
 }
Ejemplo n.º 5
0
 public List<TmSectorAction> selectAllTmSectorAction() throws BaseException {
   TmSectorActionIntf mapper = this.getSqlSessionTemplate().getMapper(TmSectorActionIntf.class);
   List<TmSectorAction> allTmSectorAction = mapper.selectAllTmSectorAction();
   return allTmSectorAction;
 }
Ejemplo n.º 6
0
 public Integer deleteTmSectorAction(Integer tmSectorActionId) throws BaseException {
   TmSectorActionIntf mapper = this.getSqlSessionTemplate().getMapper(TmSectorActionIntf.class);
   return mapper.deleteTmSectorAction(tmSectorActionId);
 }
Ejemplo n.º 7
0
 public TmSectorAction selectTmSectorActionById(Integer tmSectorActionId) throws BaseException {
   TmSectorActionIntf mapper = this.getSqlSessionTemplate().getMapper(TmSectorActionIntf.class);
   return mapper.selectTmSectorActionById(tmSectorActionId);
 }