|
@@ -85,8 +85,6 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
for(int i=0;i<fd.getValues().size();i++){
|
|
|
tmpMap.put("p"+i,fd.getValues().get(i));
|
|
|
}
|
|
|
- variables.put(fd.getCode(),fd.getValues().get(0));
|
|
|
-
|
|
|
Map<String,Object> tableMap = (Map<String, Object>) variables.get(fd.getCode());
|
|
|
if(tableMap==null){
|
|
|
tableMap= new HashMap<>();
|
|
@@ -102,11 +100,11 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
tmp= tmp.replace(m.group(),"'"+m.group()+"'");
|
|
|
}
|
|
|
Matcher m2 = P.matcher(tmp);
|
|
|
- while (m2.find()){
|
|
|
- tmp= tmp.replace(m2.group(),"'"+m2.group()+"'");
|
|
|
- fd.getRely().add(m2.group());
|
|
|
- }
|
|
|
- fd.getFormula().setFormula(tmp);
|
|
|
+ while (m2.find()){
|
|
|
+ tmp= tmp.replace(m2.group(),"'"+m2.group()+"'");
|
|
|
+ fd.getRely().add(m2.group());
|
|
|
+ }
|
|
|
+ fd.getFormula().setFormula(tmp);
|
|
|
}
|
|
|
/*执行公式*/
|
|
|
/*集合公式预处理*/
|