1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- package com.miniframe.bisiness.mdo;
- import java.util.Map;
- import com.miniframe.core.ExecProcessFlow;
- import com.miniframe.core.ext.UtilTools;
- import com.miniframe.generate.appcode.ComType;
- import com.miniframe.generate.business.mdo.model.MDO0074BaseModel;
- import com.miniframe.model.mdo.MdoProInoutPara;
- import com.miniframe.model.mdo.dao.MdoProInoutParaMapper;
- /**
- * 西工大系统,“流出修改设置求解组件到求解组件”逻辑处理(重新生成不覆盖)。
- */
- public class MDO0074Service extends MDO0074BaseModel implements ExecProcessFlow {
-
- private static final long serialVersionUID = -7051358269847459502L;
-
- /**
- * 西工大系统,“流出修改设置求解组件到求解组件”业务核心处理
- */
- public void transExecute() throws Exception {
- String comid = this.getA_mdo0074().getComid();
- String comtype = this.getA_mdo0074().getComtype();
- String paramstr =this.getA_mdo0074().getParamstr();
- String[] params = paramstr.split(";");
- for (String p:params) {
- String[] pt = p.split(",");
- String paramid = pt[0];
- String streamflag = pt[1];
- MdoProInoutParaMapper pdao = UtilTools.getBean(MdoProInoutParaMapper.class);
- MdoProInoutPara para = pdao.selectByPrimaryKey(paramid);
- if(para!=null){
- para.setSteamflag(Integer.valueOf(streamflag));
- para.setSteamtype(3);
- pdao.updateByPrimaryKey(para);
- }
- }
- }
-
- /**
- * 西工大系统,“流出修改设置求解组件到求解组件”业务前处理
- */
- 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();
- }
- }
|