Browse Source

mathfunc 自建变量

huangxingxing 3 tháng trước cách đây
mục cha
commit
90f993950b

+ 5 - 6
src/main/java/com/miniframe/modo/temp/TemplateGenerator.java

@@ -228,16 +228,15 @@ public class TemplateGenerator {
         return paravos;
     }
     private static List<ParaVo> getMathFuncZdlz(String pid){
-        List<ParaVo> mathfuncInPram = new ArrayList<>();
+        List<ParaVo> mathfuncInPrams = new ArrayList<>();
         MdoProInoutParaMapper dao = UtilTools.getBean(MdoProInoutParaMapper.class);
         MdoProInoutParaSQLBuilder sb = new MdoProInoutParaSQLBuilder();
         MdoProInoutParaSQLBuilder.Criteria sc = sb.createCriteria();
         sc.andPidEqualTo(pid);
-        sc.andComtypeEqualTo(Integer.valueOf(ComType.MathFunc.getIndex()));
+        sc.andComtypeEqualTo(Integer.valueOf(ComType.MathFunc.getIndex()));//match
         sc.andFlagEqualTo(1);//启用
         sc.andTypeEqualTo(1);//输入参数
         sc.andFcomidIsNotNull();//非自建
-        sc.andComtypeEqualTo(Integer.valueOf(ComType.MathFunc.getIndex()));//match
         List<MdoProInoutPara> paras = dao.selectByExample(sb);
         for (MdoProInoutPara para:paras) {
             ParaVo vo = new ParaVo();
@@ -245,9 +244,9 @@ public class TemplateGenerator {
             uid =MdoUidUtils.getUidByComTyeAndPcode(para.getComtype().toString(),para.getCode());
             vo.setUid(uid);
             vo.setLable(para.getCode());
-            mathfuncInPram.add(vo);
+            mathfuncInPrams.add(vo);
         }
-        return  mathfuncInPram;
+        return  mathfuncInPrams;
     }
     private static List<ParaVo> getInParaVos(String pid) {
         MdoProjectVariateMapper vDao =UtilTools.getBean(MdoProjectVariateMapper.class);
@@ -388,7 +387,7 @@ public class TemplateGenerator {
         //自动流转变量
         List<ParaVo> mathfuncInPrams = getMathFuncZdlz(pid);
         for (ParaVo vo:mathfuncInPrams) {
-            ouids.add(vo.getUid());
+            outUids.add(vo.getUid());
         }
         return  outUids;
     }