123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- package com.miniframe.bisiness.system;
- import com.miniframe.generate.business.system.model.B00003BaseModel;
- import com.miniframe.service.LoginService;
- import com.miniframe.core.ExecProcessFlow;
- import java.util.Map;
- /**
- * 基础系统,“修改密码”逻辑处理(重新生成不覆盖)。
- */
- public class B00003Service extends B00003BaseModel implements ExecProcessFlow {
- private static final long serialVersionUID = -7051358269847459502L;
- /**
- * 基础系统,“修改密码”业务核心处理
- */
- public void transExecute() throws Exception {
- String userId = this.getA_systemhead().getUserId();
- String newPassword = this.getA_b00003().getNewPassword();
- String oldPassword = this.getA_b00003().getOldPassword();
- String clientToken = this.getA_systemhead().getClientToken();
- LoginService.changePassWord(userId, oldPassword, newPassword, clientToken);
- this.getD_b00003().setUserId(userId);
- }
- /**
- * 基础系统,“修改密码”业务前处理
- */
- public void preTransFlow() throws Exception {
- this.validater();
- }
- /**
- * 基础系统,“修改密码”业务后处理
- */
- public void afterTransFlow() throws Exception {
- }
- /**
- * 基础系统,“修改密码”逻辑入口处理方法
- */
- @SuppressWarnings("rawtypes")
- @Override
- public Map execute(Map vars) throws Exception {
- this.setTransMap(vars);
- preTransFlow();// 执行业务开始的规则检查和校验
- transExecute();// 执行核心业务段
- afterTransFlow();// 执行核心逻辑完成后的收尾逻辑
- return this.getTransMap();
- }
- }
|