A00006Service.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package com.miniframe.bisiness.system;
  2. import com.miniframe.constant.XIConstant;
  3. import com.miniframe.core.ExecProcessFlow;
  4. import com.miniframe.core.ext.UtilTools;
  5. import com.miniframe.generate.business.system.model.A00006BaseModel;
  6. import java.util.Map;
  7. /**
  8. * 基础系统,“获取授权码”逻辑处理(重新生成不覆盖)。
  9. */
  10. public class A00006Service extends A00006BaseModel implements ExecProcessFlow {
  11. private static final long serialVersionUID = -7051358269847459502L;
  12. /**
  13. * 基础系统,“获取授权码”业务核心处理
  14. */
  15. public void transExecute() throws Exception {
  16. String authCode = UtilTools.getUUid();
  17. UtilTools.putUserCache(XIConstant.AuthKeyPre + authCode, this.getA_systemhead().getUserId());
  18. this.getD_a00006().setAuthCode(authCode);
  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. }