示例#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;
 }
示例#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);
 }
示例#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;
 }
示例#4
0
 public List<TmSectorAction> selectAllByRecord(TmSectorAction tmSectorAction)
     throws BaseException {
   TmSectorActionIntf mapper = this.getSqlSessionTemplate().getMapper(TmSectorActionIntf.class);
   return mapper.selectAllByRecord(tmSectorAction);
 }
示例#5
0
 public List<TmSectorAction> selectAllTmSectorAction() throws BaseException {
   TmSectorActionIntf mapper = this.getSqlSessionTemplate().getMapper(TmSectorActionIntf.class);
   List<TmSectorAction> allTmSectorAction = mapper.selectAllTmSectorAction();
   return allTmSectorAction;
 }
示例#6
0
 public Integer deleteTmSectorAction(Integer tmSectorActionId) throws BaseException {
   TmSectorActionIntf mapper = this.getSqlSessionTemplate().getMapper(TmSectorActionIntf.class);
   return mapper.deleteTmSectorAction(tmSectorActionId);
 }
示例#7
0
 public TmSectorAction selectTmSectorActionById(Integer tmSectorActionId) throws BaseException {
   TmSectorActionIntf mapper = this.getSqlSessionTemplate().getMapper(TmSectorActionIntf.class);
   return mapper.selectTmSectorActionById(tmSectorActionId);
 }