Browse Source

[统计][修改][调整百分比精度]

release_toaliyun_real
luozukai 7 years ago
parent
commit
9f426efc43
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java

+ 8
- 8
mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java View File

@@ -2314,8 +2314,8 @@ public class WxChartServiceImpl implements WxChartDataService {
params.put("enddate", DateUtils.date2String(endDate,"yyyy-MM-dd") + " 23:59:59");
Map<String, Object> 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);


Loading…
Cancel
Save