From f4f6ae0c036abb09dd7afbd463340adc81c8f22d Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 06 二月 2024 21:51:33 +0800
Subject: [PATCH] 优化报表进度问题
---
service-report/src/main/java/com/java110/report/cmd/reportFeeMonthStatistics/QueryReportFeeSummaryCmd.java | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/service-report/src/main/java/com/java110/report/cmd/reportFeeMonthStatistics/QueryReportFeeSummaryCmd.java b/service-report/src/main/java/com/java110/report/cmd/reportFeeMonthStatistics/QueryReportFeeSummaryCmd.java
index 4907050..eb4b310 100644
--- a/service-report/src/main/java/com/java110/report/cmd/reportFeeMonthStatistics/QueryReportFeeSummaryCmd.java
+++ b/service-report/src/main/java/com/java110/report/cmd/reportFeeMonthStatistics/QueryReportFeeSummaryCmd.java
@@ -11,6 +11,7 @@
import com.java110.report.statistics.IFeeStatistics;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
+import com.java110.utils.util.MoneyUtil;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
@@ -101,15 +102,15 @@
int oweRoomCount = feeStatisticsImpl.getOweRoomCount(queryStatisticsDto);
JSONObject data = new JSONObject();
- data.put("hisOweFee", hisOweFee);
- data.put("curOweFee", curOweFee);
- data.put("hisReceivedFee", hisReceivedFee);
- data.put("preReceivedFee", preReceivedFee);
- data.put("receivedFee", receivedFee);
+ data.put("hisOweFee", MoneyUtil.computePriceScale(hisOweFee));
+ data.put("curOweFee", MoneyUtil.computePriceScale(curOweFee));
+ data.put("hisReceivedFee", MoneyUtil.computePriceScale(hisReceivedFee));
+ data.put("preReceivedFee", MoneyUtil.computePriceScale(preReceivedFee));
+ data.put("receivedFee", MoneyUtil.computePriceScale(receivedFee));
data.put("roomCount", roomCount);
data.put("feeRoomCount", feeRoomCount);
data.put("oweRoomCount", oweRoomCount);
- data.put("curReceivableFee", curReceivableFee);
+ data.put("curReceivableFee", MoneyUtil.computePriceScale(curReceivableFee));
JSONArray datas = new JSONArray();
datas.add(data);
--
Gitblit v1.8.0