1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 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.HM0003BaseModel;
- /**
- * 基础系统,“密码修改”逻辑处理(重新生成不覆盖)。
- */
- public class HM0003Service extends HM0003BaseModel implements ExecProcessFlow {
-
- private static final long serialVersionUID = -7051358269847459502L;
-
- /**
- * 基础系统,“密码修改”业务核心处理
- */
- public void transExecute() throws Exception {
- LoginService.changePassWord(this.getA_systemhead().getUserId(), this.getA_hm0003().getOldpassword(),this.getA_hm0003().getNewpassword(),this.getA_systemhead().getClientToken());
- }
-
- /**
- * 基础系统,“密码修改”业务前处理
- */
- 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();
- }
- }
|