123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- package com.miniframe.bisiness.system;
- import java.util.Map;
- import com.miniframe.core.ExecProcessFlow;
- import com.miniframe.core.exception.BusinessException;
- import com.miniframe.core.ext.UtilTools;
- import com.miniframe.generate.business.system.model.D10027BaseModel;
- import com.miniframe.model.system.DGasGatherArea;
- import com.miniframe.model.system.dao.DGasGatherAreaMapper;
- /**
- * 基础系统,“瓦斯积聚区修改”逻辑处理(重新生成不覆盖)。
- */
- public class D10027Service extends D10027BaseModel implements ExecProcessFlow {
-
- private static final long serialVersionUID = -7051358269847459502L;
-
- /**
- * 基础系统,“瓦斯积聚区修改”业务核心处理
- */
- public void transExecute() throws Exception {
- String type =this.getA_d10027().getType();
- Integer ggid =this.getA_d10027().getGgid();
- Double gasdensity =this.getA_d10027().getGasdensity();
- DGasGatherAreaMapper ggMapper = UtilTools.getBean(DGasGatherAreaMapper.class);
- DGasGatherArea gg =ggMapper.selectByPrimaryKey(ggid);
- if(gg==null){
- throw new BusinessException("EB3100024");
- }
- gg.setType(type);
- gg.setGasdensity(gasdensity.floatValue());
- ggMapper.updateByPrimaryKey(gg);
- }
-
- /**
- * 基础系统,“瓦斯积聚区修改”业务前处理
- */
- 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();
- }
- }
|