| @@ -126,13 +126,16 @@ public class WxBusinessServiceImpl implements WxBusinessService { | |||||
| List<WxBillProperty> billRentList = wxPropertyContractService.buildProperty(new WxMerchant(),userid,dbRent, EnumIsPreview.YES.getCode(), false); | List<WxBillProperty> billRentList = wxPropertyContractService.buildProperty(new WxMerchant(),userid,dbRent, EnumIsPreview.YES.getCode(), false); | ||||
| businessSumMoney = businessSumMoney.add(new BigDecimal(billRentList.get(0).getReceivePay())); | businessSumMoney = businessSumMoney.add(new BigDecimal(billRentList.get(0).getReceivePay())); | ||||
| } | } | ||||
| logger.info("业态分析>>>>>>>>>>>>>>>>>>商铺面积:" + e.get("area").toString() + ">>>>>>>>>>" + "0".equals(e.get("area").toString())); | |||||
| if(e.get("area") == null || "0".equals(e.get("area").toString())){ | |||||
| logger.info("业态分析>>>>>>>>>>>>>>>>>>商铺面积:" + e.get("area").toString()); | |||||
| if (e.get("area") == null || "0".equals(e.get("area").toString()) || | |||||
| "0.0".equals(e.get("area").toString())) { | |||||
| e.put("rent",0); | e.put("rent",0); | ||||
| }else { | }else { | ||||
| BigDecimal area = new BigDecimal(e.get("area").toString()); | 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 (area.longValue() > 0) { | |||||
| 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; | ||||