From a45ec989d16d58915e5deffc07382d3b945f6484 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期一, 16 八月 2021 12:26:45 +0800
Subject: [PATCH] 优化代码
---
service-report/src/main/java/com/java110/report/bmo/reportFeeMonthStatistics/impl/GetReportFeeMonthStatisticsBMOImpl.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/service-report/src/main/java/com/java110/report/bmo/reportFeeMonthStatistics/impl/GetReportFeeMonthStatisticsBMOImpl.java b/service-report/src/main/java/com/java110/report/bmo/reportFeeMonthStatistics/impl/GetReportFeeMonthStatisticsBMOImpl.java
index a72d89c..7522812 100755
--- a/service-report/src/main/java/com/java110/report/bmo/reportFeeMonthStatistics/impl/GetReportFeeMonthStatisticsBMOImpl.java
+++ b/service-report/src/main/java/com/java110/report/bmo/reportFeeMonthStatistics/impl/GetReportFeeMonthStatisticsBMOImpl.java
@@ -900,7 +900,7 @@
startTime = (Date) paramIn.get("startTime");
endTime = (Date) paramIn.get("startTime");
- double money = (double) paramIn.get("oweAmount");
+ BigDecimal money = (BigDecimal) paramIn.get("oweAmount");
double month = Math.ceil(computeFeeSMOImpl.dayCompare(startTime, endTime));
if (month < 1) {
paramIn.put("btAmount", 0);
@@ -909,7 +909,7 @@
}
//姣忔湀閲戦
- BigDecimal monthAmount = new BigDecimal(money).divide(new BigDecimal(month), 2, BigDecimal.ROUND_HALF_EVEN);
+ BigDecimal monthAmount = money.divide(new BigDecimal(month), 2, BigDecimal.ROUND_HALF_EVEN);
if (startTime.getTime() < curStart.getTime()) {
BigDecimal btAmountDec = monthAmount.multiply(new BigDecimal(curMonth)).setScale(2, BigDecimal.ROUND_HALF_EVEN);
@@ -921,7 +921,7 @@
}
if (startTime.getTime() >= curStart.getTime()) {
- paramIn.put("btAmount", money);
+ paramIn.put("btAmount", money.doubleValue());
paramIn.put("bfAmount", 0);
}
}
--
Gitblit v1.8.0