D30003Service.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package com.miniframe.bisiness.system;
  2. import java.util.Map;
  3. import com.miniframe.core.ExecProcessFlow;
  4. import com.miniframe.core.ext.UtilTools;
  5. import com.miniframe.generate.business.system.model.D30003BaseModel;
  6. import com.miniframe.model.system.dao.DGasMapper;
  7. /**
  8. * 基础系统,“一维瓦斯灾源删除”逻辑处理(重新生成不覆盖)。
  9. */
  10. public class D30003Service extends D30003BaseModel implements ExecProcessFlow {
  11. private static final long serialVersionUID = -7051358269847459502L;
  12. /**
  13. * 基础系统,“一维瓦斯灾源删除”业务核心处理
  14. */
  15. public void transExecute() throws Exception {
  16. Integer gid =this.getA_d30003().getGid();
  17. DGasMapper gDao = UtilTools.getBean(DGasMapper.class);
  18. gDao.deleteByPrimaryKey(gid);
  19. }
  20. /**
  21. * 基础系统,“一维瓦斯灾源删除”业务前处理
  22. */
  23. public void preTransFlow() throws Exception {
  24. this.validater();
  25. }
  26. /**
  27. * 基础系统,“一维瓦斯灾源删除”业务后处理
  28. */
  29. public void afterTransFlow() throws Exception {
  30. }
  31. /**
  32. * 基础系统,“一维瓦斯灾源删除”逻辑入口处理方法
  33. */
  34. @SuppressWarnings("rawtypes")
  35. @Override
  36. public Map execute(Map vars) throws Exception {
  37. this.setTransMap(vars);
  38. preTransFlow();// 执行业务开始的规则检查和校验
  39. transExecute();// 执行核心业务段
  40. afterTransFlow();// 执行核心逻辑完成后的收尾逻辑
  41. return this.getTransMap();
  42. }
  43. }