1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- 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.D20006BaseModel;
- import com.miniframe.model.system.DPumpHf;
- import com.miniframe.model.system.dao.DPumpHfMapper;
- /**
- * 基础系统,“水泵水位流量删除”逻辑处理(重新生成不覆盖)。
- */
- public class D20006Service extends D20006BaseModel implements ExecProcessFlow {
-
- private static final long serialVersionUID = -7051358269847459502L;
-
- /**
- * 基础系统,“水泵水位流量删除”业务核心处理
- */
- public void transExecute() throws Exception {
- Integer pumphfid =this.getA_d20006().getPumphfid();
- DPumpHfMapper hfDao = UtilTools.getBean(DPumpHfMapper.class);
- DPumpHf hf=hfDao.selectByPrimaryKey(pumphfid);
- if(hf ==null){
- throw new BusinessException("EB3100035",new String[]{pumphfid.toString()});
- }
- hfDao.deleteByPrimaryKey(pumphfid);
- }
-
- /**
- * 基础系统,“水泵水位流量删除”业务前处理
- */
- 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();
- }
- }
|