HM0001Service.java 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package com.miniframe.bisiness.system;
  2. import java.util.Map;
  3. import com.miniframe.bisiness.service.LoginService;
  4. import com.miniframe.core.ExecProcessFlow;
  5. import com.miniframe.generate.business.system.model.HM0001BaseModel;
  6. import com.miniframe.generate.comm.system.D_HM0001;
  7. /**
  8. * 基础系统,“系统登录”逻辑处理(重新生成不覆盖)。
  9. */
  10. public class HM0001Service extends HM0001BaseModel implements ExecProcessFlow {
  11. private static final long serialVersionUID = -7051358269847459502L;
  12. /**
  13. * 基础系统,“系统登录”业务核心处理
  14. */
  15. public void transExecute() throws Exception {
  16. String channelNo = this.getA_systemhead().getChannelNo();
  17. String logintype = this.getA_hm0001().getLogintype();
  18. String verifygraph = this.getA_hm0001().getVerifygraph();
  19. String userId = this.getA_systemhead().getUserId();
  20. String password = this.getA_hm0001().getPassword();
  21. String transToken = this.getA_systemhead().getClientToken();
  22. // 调用登录服务
  23. D_HM0001 d_HM0001 = new D_HM0001();
  24. transToken = LoginService.login(channelNo,logintype, verifygraph, userId, password, transToken, d_HM0001);
  25. this.setD_hm0001(d_HM0001);
  26. // 对Token进行重新设置
  27. this.getD_systemhead().setClientToken(transToken);
  28. }
  29. /**
  30. * 基础系统,“系统登录”业务前处理
  31. */
  32. public void preTransFlow() throws Exception {
  33. this.validater();
  34. }
  35. /**
  36. * 基础系统,“系统登录”业务后处理
  37. */
  38. public void afterTransFolw() throws Exception {
  39. }
  40. /**
  41. * 基础系统,“系统登录”逻辑入口处理方法
  42. */
  43. @SuppressWarnings("rawtypes")
  44. @Override
  45. public Map execute(Map vars) throws Exception {
  46. this.setTransMap(vars);
  47. preTransFlow();// 执行业务开始的规则检查和校验
  48. transExecute();// 执行核心业务段
  49. afterTransFolw();// 执行核心逻辑完成后的收尾逻辑
  50. return this.getTransMap();
  51. }
  52. }