12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- package com.miniframe.bisiness.system;
- import java.util.Map;
- import com.miniframe.bisiness.service.LoginService;
- import com.miniframe.core.ExecProcessFlow;
- import com.miniframe.generate.business.system.model.HM0001BaseModel;
- import com.miniframe.generate.comm.system.D_HM0001;
- /**
- * 基础系统,“系统登录”逻辑处理(重新生成不覆盖)。
- */
- public class HM0001Service extends HM0001BaseModel implements ExecProcessFlow {
-
- private static final long serialVersionUID = -7051358269847459502L;
-
- /**
- * 基础系统,“系统登录”业务核心处理
- */
- public void transExecute() throws Exception {
- String channelNo = this.getA_systemhead().getChannelNo();
- String logintype = this.getA_hm0001().getLogintype();
- String verifygraph = this.getA_hm0001().getVerifygraph();
- String userId = this.getA_systemhead().getUserId();
- String password = this.getA_hm0001().getPassword();
- String transToken = this.getA_systemhead().getClientToken();
-
- // 调用登录服务
- D_HM0001 d_HM0001 = new D_HM0001();
- transToken = LoginService.login(channelNo,logintype, verifygraph, userId, password, transToken, d_HM0001);
- this.setD_hm0001(d_HM0001);
-
- // 对Token进行重新设置
- this.getD_systemhead().setClientToken(transToken);
- }
-
- /**
- * 基础系统,“系统登录”业务前处理
- */
- public void preTransFlow() throws Exception {
- this.validater();
- }
-
- /**
- * 基础系统,“系统登录”业务后处理
- */
- public void afterTransFolw() throws Exception {
-
- }
-
- /**
- * 基础系统,“系统登录”逻辑入口处理方法
- */
- @SuppressWarnings("rawtypes")
- @Override
- public Map execute(Map vars) throws Exception {
- this.setTransMap(vars);
- preTransFlow();// 执行业务开始的规则检查和校验
- transExecute();// 执行核心业务段
- afterTransFolw();// 执行核心逻辑完成后的收尾逻辑
- return this.getTransMap();
- }
- }
|