|  | @@ -153,7 +153,7 @@ public class TemplateGenerator {
 | 
											
												
													
														|  |          MdoProFsi fsi= findFsi(pid);
 |  |          MdoProFsi fsi= findFsi(pid);
 | 
											
												
													
														|  |          MdoProMathfunc mathfunc = findMashfunc(pid);
 |  |          MdoProMathfunc mathfunc = findMashfunc(pid);
 | 
											
												
													
														|  |          //不用生成
 |  |          //不用生成
 | 
											
												
													
														|  | -        if(xfoil==null&& adflow==null){
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if(xfoil==null&& adflow==null&&mathfunc==null){
 | 
											
												
													
														|  |              return null;
 |  |              return null;
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          HeaderVo header =new HeaderVo();
 |  |          HeaderVo header =new HeaderVo();
 | 
											
										
											
												
													
														|  | @@ -232,11 +232,8 @@ public class TemplateGenerator {
 | 
											
												
													
														|  |              pvo.setLable(uid.substring(uid.lastIndexOf("/")+1,uid.length()));
 |  |              pvo.setLable(uid.substring(uid.lastIndexOf("/")+1,uid.length()));
 | 
											
												
													
														|  |              paravos.add(pvo);
 |  |              paravos.add(pvo);
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -        return paravos;
 |  | 
 | 
											
												
													
														|  | 
 |  | +        List<ParaVo> distinctList = paravos.stream().distinct().collect(Collectors.toList());
 | 
											
												
													
														|  | 
 |  | +        return distinctList;
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |      private static List<ParaVo> getMathFuncZdlz(String pid){
 |  |      private static List<ParaVo> getMathFuncZdlz(String pid){
 | 
											
												
													
														|  |          List<ParaVo> mathfuncInPrams = new ArrayList<>();
 |  |          List<ParaVo> mathfuncInPrams = new ArrayList<>();
 | 
											
										
											
												
													
														|  | @@ -527,9 +524,17 @@ public class TemplateGenerator {
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          if(mathfunc!=null){
 |  |          if(mathfunc!=null){
 | 
											
												
													
														|  |              List<MdoProInoutPara> adInoutList = findMdoProInoutParas(pid, mathfunc.getId());
 |  |              List<MdoProInoutPara> adInoutList = findMdoProInoutParas(pid, mathfunc.getId());
 | 
											
												
													
														|  | -            MathfuncVo mathfuncVo =new MathfuncVo();
 |  | 
 | 
											
												
													
														|  | -            mathfuncVo.setCd_mass(getValByParaListAndCode(adInoutList,"cd_mass"));
 |  | 
 | 
											
												
													
														|  | -            vo.setMathfuncVo(mathfuncVo);
 |  | 
 | 
											
												
													
														|  | 
 |  | +            List<MdoProInoutPara> tList = adInoutList.stream().filter(x ->{
 | 
											
												
													
														|  | 
 |  | +                return x.getFcomid()==null;
 | 
											
												
													
														|  | 
 |  | +            }).collect(Collectors.toList());
 | 
											
												
													
														|  | 
 |  | +            List<MathfuncVo> mathfuncvos= new ArrayList<>();
 | 
											
												
													
														|  | 
 |  | +            for (MdoProInoutPara p:tList) {
 | 
											
												
													
														|  | 
 |  | +                MathfuncVo mathfuncVo =new MathfuncVo();
 | 
											
												
													
														|  | 
 |  | +                mathfuncVo.setCode(p.getCode());
 | 
											
												
													
														|  | 
 |  | +                mathfuncVo.setValue(p.getValue());
 | 
											
												
													
														|  | 
 |  | +                mathfuncvos.add(mathfuncVo);
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  | 
 |  | +            vo.setMathfuncvos(mathfuncvos);
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          MdoProCst cst = findCst(pid);
 |  |          MdoProCst cst = findCst(pid);
 |