HM0005Service.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package com.miniframe.bisiness.system;
  2. import org.apache.log4j.Logger;
  3. import java.util.Map;
  4. import com.miniframe.core.ExecProcessFlow;
  5. import com.miniframe.generate.business.system.model.HM0005BaseModel;
  6. /**
  7. * 基础系统,“日志清理”逻辑处理(重新生成不覆盖)。
  8. */
  9. public class HM0005Service extends HM0005BaseModel implements ExecProcessFlow {
  10. private static final Logger logger = Logger.getLogger(HM0005Service.class);
  11. private static final long serialVersionUID = -7051358269847459502L;
  12. /**
  13. * 基础系统,“日志清理”业务核心处理
  14. */
  15. public void transExecute() throws Exception {
  16. logger.error("批处理交易调用日志清理成功!");
  17. }
  18. /**
  19. * 基础系统,“日志清理”业务前处理
  20. */
  21. public void preTransFlow() throws Exception {
  22. //批处理交易,没有入口参数,屏蔽
  23. //this.validater();
  24. }
  25. /**
  26. * 基础系统,“日志清理”业务后处理
  27. */
  28. public void afterTransFolw() throws Exception {
  29. }
  30. /**
  31. * 基础系统,“日志清理”逻辑入口处理方法
  32. */
  33. @SuppressWarnings("rawtypes")
  34. @Override
  35. public Map execute(Map vars) throws Exception {
  36. //批处理交易,没有入口参数,屏蔽
  37. //this.setTransMap(vars);
  38. preTransFlow();// 执行业务开始的规则检查和校验
  39. transExecute();// 执行核心业务段
  40. afterTransFolw();// 执行核心逻辑完成后的收尾逻辑
  41. return this.getTransMap();
  42. }
  43. }