|
|
@@ -114,9 +114,13 @@ public class WxBusinessServiceImpl implements WxBusinessService { |
|
|
businessSumMoney = businessSumMoney.add(new BigDecimal(billRentList.get(0).getReceivePay())); |
|
|
businessSumMoney = businessSumMoney.add(new BigDecimal(billRentList.get(0).getReceivePay())); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
BigDecimal area = new BigDecimal(e.get("area").toString()); |
|
|
|
|
|
BigDecimal areaRatio = businessSumMoney.divide(area,2, BigDecimal.ROUND_HALF_UP).divide(new BigDecimal(100),2, BigDecimal.ROUND_HALF_UP); |
|
|
|
|
|
e.put("rent",areaRatio.toBigInteger()); |
|
|
|
|
|
|
|
|
if(e.get("area") == null || "0".equals(e.get("area").toString())){ |
|
|
|
|
|
e.put("rent",0); |
|
|
|
|
|
}else { |
|
|
|
|
|
BigDecimal area = new BigDecimal(e.get("area").toString()); |
|
|
|
|
|
BigDecimal areaRatio = businessSumMoney.divide(area, 2, BigDecimal.ROUND_HALF_UP).divide(new BigDecimal(100), 2, BigDecimal.ROUND_HALF_UP); |
|
|
|
|
|
e.put("rent", areaRatio.toBigInteger()); |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
return resultList; |
|
|
return resultList; |
|
|
} |
|
|
} |
|
|
|