|
@@ -410,7 +410,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
total.stream().filter(p->e.getEName().contains(p.getName().replace("【水】","").trim())&&!this.formDataList.contains(e)).findAny().ifPresent(d->{
|
|
|
Formula formula=new Formula();
|
|
|
formula.setOutm(Formula.FULL);
|
|
|
- if(RegexUtil.match(ParamElements.LEVEL_REG,d.getV())){
|
|
|
+ if(RegexUtil.match(ParamElements.LEVEL_REG,d.getV().trim())){
|
|
|
/*取层级*/
|
|
|
formula.setFormula("FC.tree(trees,WP["+d.getK()+"])");
|
|
|
}else{
|
|
@@ -532,6 +532,16 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
}
|
|
|
if(fd.getCoordsList().size()>1&&f.split("[/+\\-*]").length>1){
|
|
|
LinkedHashMap<String,FormData> fdMap =new LinkedHashMap<>();
|
|
|
+ Optional<FormData> tto= ele.stream().max(Comparator.comparingInt(fe->fe.getValues().size()));
|
|
|
+ Optional<FormData> tts= ele.stream().min(Comparator.comparingInt(fe->fe.getValues().size()));
|
|
|
+ if(tto.isPresent()&&tts.isPresent()){
|
|
|
+ if(tto.get().getValues().size()!=tts.get().getValues().size()){
|
|
|
+ int baseLength=tto.get().getValues().size();
|
|
|
+ ele.forEach(e->{
|
|
|
+ e.setStep(baseLength/e.getValues().size());
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
ele.forEach(e->{
|
|
|
/*步进处理*/
|
|
|
if(e.getCode().equals("m_20220928135543_1575001284954554368:key_31")){
|