From 9f426efc43fa9728c9e73bc7f8fa53e104934968 Mon Sep 17 00:00:00 2001 From: luozukai Date: Tue, 7 May 2019 17:39:29 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=BB=9F=E8=AE=A1][=E4=BF=AE=E6=94=B9][?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=99=BE=E5=88=86=E6=AF=94=E7=B2=BE=E5=BA=A6?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/WxChartServiceImpl.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java index 46b51117f..c25ff63be 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java @@ -2314,8 +2314,8 @@ public class WxChartServiceImpl implements WxChartDataService { params.put("enddate", DateUtils.date2String(endDate,"yyyy-MM-dd") + " 23:59:59"); Map payinfo = wxBillRentMapper.queryPayInfoTotal(params); if (payinfo != null) { - Double receivepay = (Double) payinfo.get("receivepay"); - Double pay = (Double) payinfo.get("pay"); + Double receivepay = ((BigDecimal) payinfo.get("receivepay")).doubleValue(); + Double pay = ((BigDecimal) payinfo.get("pay")).doubleValue(); if (receivepay.doubleValue() > 0) { Double divide = pay/receivepay*100; datamap.put("rentysje", receivepay); @@ -2335,8 +2335,8 @@ public class WxChartServiceImpl implements WxChartDataService { //物业费收缴率 payinfo = wxBillPropertyMapper.queryPayInfoTotal(params); if (payinfo != null) { - Double receivepay = (Double) payinfo.get("receivepay"); - Double pay = (Double) payinfo.get("pay"); + Double receivepay = ((BigDecimal) payinfo.get("receivepay")).doubleValue(); + Double pay = ((BigDecimal) payinfo.get("pay")).doubleValue(); if (receivepay.doubleValue() > 0) { Double divide = pay/receivepay*100; datamap.put("propertyysje", receivepay); @@ -2356,8 +2356,8 @@ public class WxChartServiceImpl implements WxChartDataService { //押金收缴率 payinfo = wxBillDepositMapper.queryPayInfoAllTotal(params); if (payinfo != null) { - Double receivepay = (Double) payinfo.get("receivepay"); - Double pay = (Double) payinfo.get("pay"); + Double receivepay = ((BigDecimal) payinfo.get("receivepay")).doubleValue(); + Double pay = ((BigDecimal) payinfo.get("pay")).doubleValue(); if (receivepay.doubleValue() > 0) { Double divide = pay/receivepay* 100; datamap.put("depositysje", receivepay); @@ -2377,8 +2377,8 @@ public class WxChartServiceImpl implements WxChartDataService { //其他费用收缴率 payinfo = wxBillOtherMapper.queryPayInfoTotal(params); if (payinfo != null) { - Double receivepay = (Double) payinfo.get("receivepay"); - Double pay = (Double) payinfo.get("pay"); + Double receivepay = ((BigDecimal) payinfo.get("receivepay")).doubleValue(); + Double pay = ((BigDecimal) payinfo.get("pay")).doubleValue(); if (receivepay.doubleValue() > 0) { Double divide = pay/receivepay*100; datamap.put("otherysje", receivepay);