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