yangyj 2 meses atrás
pai
commit
54a54cff7a

+ 1 - 1
blade-service/blade-manager/src/main/java/com/mixsmart/utils/FormulaUtils.java

@@ -938,7 +938,7 @@ public class FormulaUtils {
     /*不会自动识别小数位*/
     public static List<ElementData> setScaleMeter(Integer scale, List<ElementData> data){
         if(scale!=null){
-            return data.stream().peek(e->{if(StringUtils.isDouble(e.getValue())){e.setValue(StringUtils.number2StringZero(e.getValue(),scale));}}).collect(Collectors.toList());
+            return data.stream().peek(e->{if(StringUtils.isDouble(e.getValue())){e.setValue(StringUtils.number2String(e.getValue(),scale));}}).collect(Collectors.toList());
         }
        return data;
     }