From 3c94476f51df2b90787f9c7c0762a18e3094b80d Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期四, 10 七月 2025 15:01:22 +0800
Subject: [PATCH] yys  修改文件上传接口

---
 src/main/java/com/ruoyi/common/utils/Arith.java |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/ruoyi/common/utils/Arith.java b/src/main/java/com/ruoyi/common/utils/Arith.java
index 8668319..f80fb7c 100644
--- a/src/main/java/com/ruoyi/common/utils/Arith.java
+++ b/src/main/java/com/ruoyi/common/utils/Arith.java
@@ -108,7 +108,6 @@
                     "The scale must be a positive integer or zero");
         }
         BigDecimal b = new BigDecimal(Double.toString(v));
-        BigDecimal one = new BigDecimal("1");
-        return b.divide(one, scale, RoundingMode.HALF_UP).doubleValue();
+        return b.divide(BigDecimal.ONE, scale, RoundingMode.HALF_UP).doubleValue();
     }
 }

--
Gitblit v1.9.3