|  | @@ -35,7 +35,7 @@ public class D10002Service extends D10002BaseModel implements ExecProcessFlow {
 | 
											
												
													
														|  |  		String sectionPara3 =this.getA_d10002().getSectionPara3();
 |  |  		String sectionPara3 =this.getA_d10002().getSectionPara3();
 | 
											
												
													
														|  |  		String sectionPara4 =this.getA_d10002().getSectionPara4();
 |  |  		String sectionPara4 =this.getA_d10002().getSectionPara4();
 | 
											
												
													
														|  |  		String sectionPara5 =this.getA_d10002().getSectionPara5();
 |  |  		String sectionPara5 =this.getA_d10002().getSectionPara5();
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | 
 |  | +		String code =this.getA_d10002().getCode();
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  		DNodeMapper nodeMapper =UtilTools.getBean(DNodeMapper.class);
 |  |  		DNodeMapper nodeMapper =UtilTools.getBean(DNodeMapper.class);
 | 
											
												
													
														|  |  		DNode sNode = nodeMapper.selectByPrimaryKey(snId);
 |  |  		DNode sNode = nodeMapper.selectByPrimaryKey(snId);
 | 
											
										
											
												
													
														|  | @@ -46,14 +46,16 @@ public class D10002Service extends D10002BaseModel implements ExecProcessFlow {
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  		if(pid ==null || pid<=0){//添加
 |  |  		if(pid ==null || pid<=0){//添加
 | 
											
												
													
														|  |  			pdSnIdEnId(dPipeDao,snId,enId);
 |  |  			pdSnIdEnId(dPipeDao,snId,enId);
 | 
											
												
													
														|  | -			savePipe(dPipeDao, name, snId, enId, roughCoe, sectionType, sectionPara1, sectionPara2, sectionPara3, sectionPara4, sectionPara5);
 |  | 
 | 
											
												
													
														|  | 
 |  | +			savePipe(dPipeDao, name, snId, enId, roughCoe,
 | 
											
												
													
														|  | 
 |  | +					sectionType, sectionPara1, sectionPara2, sectionPara3, sectionPara4, sectionPara5,code);
 | 
											
												
													
														|  |  		}else{//修改
 |  |  		}else{//修改
 | 
											
												
													
														|  |  			DPipe pipe =dPipeDao.selectByPrimaryKey(pid);
 |  |  			DPipe pipe =dPipeDao.selectByPrimaryKey(pid);
 | 
											
												
													
														|  |  			pdSnIdEnIdNotPid(dPipeDao,snId,enId,pid);
 |  |  			pdSnIdEnIdNotPid(dPipeDao,snId,enId,pid);
 | 
											
												
													
														|  |  			if(pipe==null){
 |  |  			if(pipe==null){
 | 
											
												
													
														|  |  				throw new BusinessException("EB3100002");
 |  |  				throw new BusinessException("EB3100002");
 | 
											
												
													
														|  |  			}
 |  |  			}
 | 
											
												
													
														|  | -			updatePipe(dPipeDao, name, snId, enId, roughCoe, sectionType, sectionPara1, sectionPara2, sectionPara3, sectionPara4, sectionPara5, pipe);
 |  | 
 | 
											
												
													
														|  | 
 |  | +			updatePipe(dPipeDao, name, snId, enId, roughCoe, sectionType, sectionPara1, sectionPara2, sectionPara3, sectionPara4,
 | 
											
												
													
														|  | 
 |  | +					sectionPara5, pipe,code);
 | 
											
												
													
														|  |  		}
 |  |  		}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  	}
 |  |  	}
 | 
											
										
											
												
													
														|  | @@ -72,7 +74,9 @@ public class D10002Service extends D10002BaseModel implements ExecProcessFlow {
 | 
											
												
													
														|  |  	}
 |  |  	}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -	private void updatePipe(DPipeMapper dPipeDao, String name, Integer snId, Integer enId, String roughCoe, String sectionType, String sectionPara1, String sectionPara2, String sectionPara3, String sectionPara4, String sectionPara5, DPipe pipe) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +	private void updatePipe(DPipeMapper dPipeDao, String name, Integer snId, Integer enId, String roughCoe,
 | 
											
												
													
														|  | 
 |  | +							String sectionType, String sectionPara1, String sectionPara2, String sectionPara3,
 | 
											
												
													
														|  | 
 |  | +							String sectionPara4, String sectionPara5, DPipe pipe,String code) {
 | 
											
												
													
														|  |  		pipe.setName(name);
 |  |  		pipe.setName(name);
 | 
											
												
													
														|  |  		pipe.setSnid(snId);
 |  |  		pipe.setSnid(snId);
 | 
											
												
													
														|  |  		pipe.setEnid(enId);
 |  |  		pipe.setEnid(enId);
 | 
											
										
											
												
													
														|  | @@ -83,6 +87,7 @@ public class D10002Service extends D10002BaseModel implements ExecProcessFlow {
 | 
											
												
													
														|  |  		pipe.setSectionPara3(Float.valueOf(!StringUtil.isEmpty(sectionPara3)?sectionPara3:"0"));
 |  |  		pipe.setSectionPara3(Float.valueOf(!StringUtil.isEmpty(sectionPara3)?sectionPara3:"0"));
 | 
											
												
													
														|  |  		pipe.setSectionPara4(Float.valueOf(!StringUtil.isEmpty(sectionPara4)?sectionPara4:"0"));
 |  |  		pipe.setSectionPara4(Float.valueOf(!StringUtil.isEmpty(sectionPara4)?sectionPara4:"0"));
 | 
											
												
													
														|  |  		pipe.setSectionPara5(Float.valueOf(!StringUtil.isEmpty(sectionPara5)?sectionPara5:"0"));
 |  |  		pipe.setSectionPara5(Float.valueOf(!StringUtil.isEmpty(sectionPara5)?sectionPara5:"0"));
 | 
											
												
													
														|  | 
 |  | +		pipe.setCode(code);
 | 
											
												
													
														|  |  		dPipeDao.updateByPrimaryKey(pipe);
 |  |  		dPipeDao.updateByPrimaryKey(pipe);
 | 
											
												
													
														|  |  	}
 |  |  	}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -98,7 +103,9 @@ public class D10002Service extends D10002BaseModel implements ExecProcessFlow {
 | 
											
												
													
														|  |  		}
 |  |  		}
 | 
											
												
													
														|  |  	}
 |  |  	}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -	private void savePipe(DPipeMapper dPipeDao, String name, Integer snId, Integer enId, String roughCoe, String sectionType, String sectionPara1, String sectionPara2, String sectionPara3, String sectionPara4, String sectionPara5) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +	private void savePipe(DPipeMapper dPipeDao, String name, Integer snId, Integer enId, String roughCoe, String sectionType,
 | 
											
												
													
														|  | 
 |  | +						  String sectionPara1, String sectionPara2, String sectionPara3, String sectionPara4, String sectionPara5,
 | 
											
												
													
														|  | 
 |  | +	String code) {
 | 
											
												
													
														|  |  		DPipe pipe =new DPipe();
 |  |  		DPipe pipe =new DPipe();
 | 
											
												
													
														|  |  		pipe.setName(name);
 |  |  		pipe.setName(name);
 | 
											
												
													
														|  |  		pipe.setSnid(snId);
 |  |  		pipe.setSnid(snId);
 | 
											
										
											
												
													
														|  | @@ -110,6 +117,7 @@ public class D10002Service extends D10002BaseModel implements ExecProcessFlow {
 | 
											
												
													
														|  |  		pipe.setSectionPara3(Float.valueOf(!StringUtil.isEmpty(sectionPara3)?sectionPara3:"0"));
 |  |  		pipe.setSectionPara3(Float.valueOf(!StringUtil.isEmpty(sectionPara3)?sectionPara3:"0"));
 | 
											
												
													
														|  |  		pipe.setSectionPara4(Float.valueOf(!StringUtil.isEmpty(sectionPara4)?sectionPara4:"0"));
 |  |  		pipe.setSectionPara4(Float.valueOf(!StringUtil.isEmpty(sectionPara4)?sectionPara4:"0"));
 | 
											
												
													
														|  |  		pipe.setSectionPara5(Float.valueOf(!StringUtil.isEmpty(sectionPara5)?sectionPara5:"0"));
 |  |  		pipe.setSectionPara5(Float.valueOf(!StringUtil.isEmpty(sectionPara5)?sectionPara5:"0"));
 | 
											
												
													
														|  | 
 |  | +		pipe.setCode(code);
 | 
											
												
													
														|  |  		dPipeDao.insertSelective(pipe);
 |  |  		dPipeDao.insertSelective(pipe);
 | 
											
												
													
														|  |  	}
 |  |  	}
 | 
											
												
													
														|  |  
 |  |  
 |