From fb739af3e97368880301a3d940d35fc79710bccf Mon Sep 17 00:00:00 2001 From: wangguorui <2069821375@qq.com> Date: Thu, 16 Apr 2026 10:18:39 +0800 Subject: [PATCH] =?UTF-8?q?20260416=20=E4=B8=9A=E7=BB=A9=E5=BD=92=E5=B1=9E?= =?UTF-8?q?=E8=B4=A6=E5=A4=87=E6=B3=A8=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/demo/serviceImpl/cash/CashCollectionServiceImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java b/src/main/java/com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java index 481417d..c5dd7e0 100644 --- a/src/main/java/com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java +++ b/src/main/java/com/example/demo/serviceImpl/cash/CashCollectionServiceImpl.java @@ -793,11 +793,13 @@ public class CashCollectionServiceImpl implements CashCollectionService { if (adjustedValue > 0) { // Positive value: row to column (转出方 to 转入方) double amountInYuan = adjustedValue / 100.0; - remark = fromName + "→" + toName + "调整金额:" + amountInYuan; + String amountStr = amountInYuan == (long) amountInYuan ? String.valueOf((long) amountInYuan) : String.valueOf(amountInYuan); + remark = fromName + "→" + toName + "调整金额:" + amountStr; } else { // Negative value: column to row (转入方 to 转出方) double amountInYuan = (-adjustedValue) / 100.0; - remark = toName + "→" + fromName + "调整金额:" + amountInYuan; + String amountStr = amountInYuan == (long) amountInYuan ? String.valueOf((long) amountInYuan) : String.valueOf(amountInYuan); + remark = toName + "→" + fromName + "调整金额:" + amountStr; } // Create CashRecord objects and call mapper adjust method twice