SYS0001Service.java 1.2 KB

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