浏览代码

费用同比增量单位修改为万元

lixing 3 年之前
父节点
当前提交
b8a6d52c9f

+ 2 - 2
src/main/java/com/persagy/apm/energy/report/monthly/outline/service/impl/BusinessReportCostInfoServiceImpl.java

@@ -218,13 +218,13 @@ public class BusinessReportCostInfoServiceImpl implements IBusinessReportCostInf
         if (currentMonth != null && lastMonth != null) {
             Double linkCount = DataUtils.doubleSubtract(currentMonth, lastMonth);
             Double linkRange = DataUtils.doubleDivide(linkCount, lastMonth);
-            costItemVO.setLinkCount(linkCount);
+            costItemVO.setLinkCount(DataUtils.doubleDivide(linkCount, tenThousand));
             costItemVO.setLinkRange(linkRange);
         }
 
         if (lastYearCount != null && yearCount != null) {
             double sameCount = DataUtils.doubleSubtract(yearCount, lastYearCount);
-            costItemVO.setSameCount(sameCount);
+            costItemVO.setSameCount(DataUtils.doubleDivide(sameCount, tenThousand));
             costItemVO.setSameRange(DataUtils.doubleDivide(sameCount, lastYearCount));
         }
         return costItemVO;