|
@@ -791,12 +791,6 @@ public List<ElementData> setScale(Integer scale,List<ElementData> data){
|
|
|
if(fd.getFormula()!=null&&!fd.empty()&&fd.getValues().stream().map(ElementData::getValue).anyMatch(StringUtils::isDouble)){
|
|
|
Formula f = fd.getFormula();
|
|
|
fd.setValues(setScale(f.getScale(),fd.getValues()));
|
|
|
-// Integer scale =f.getScale();
|
|
|
-// if(scale==null){
|
|
|
-// scale=2;
|
|
|
-// }
|
|
|
-// Integer finalScale = scale;
|
|
|
-// fd.setValues(fd.getValues().stream().peek(e->{if(StringUtils.isDouble(e.getValue())){e.setValue(StringUtils.number2String(e.getValue(),finalScale));}}).collect(Collectors.toList()));
|
|
|
}
|
|
|
}
|
|
|
}
|