作者 phper08

update ruoyi-common/src/main/java/com/ruoyi/common/utils/Arith.java.

@@ -108,7 +108,7 @@ public class Arith @@ -108,7 +108,7 @@ public class Arith
108 "The scale must be a positive integer or zero"); 108 "The scale must be a positive integer or zero");
109 } 109 }
110 BigDecimal b = new BigDecimal(Double.toString(v)); 110 BigDecimal b = new BigDecimal(Double.toString(v));
111 - BigDecimal one = new BigDecimal("1"); 111 + BigDecimal one = BigDecimal.ONE;
112 return b.divide(one, scale, RoundingMode.HALF_UP).doubleValue(); 112 return b.divide(one, scale, RoundingMode.HALF_UP).doubleValue();
113 } 113 }
114 } 114 }