From 0559b2b6ab7033f8c2aec5b2a44bd53b0ed190cf Mon Sep 17 00:00:00 2001 From: zhengfangyuan Date: Tue, 2 Aug 2022 15:34:23 +0800 Subject: [PATCH] fix jinmaorentcontract --- .../com/iformall/service/impl/WxRentContractServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java index 3256f45b8..2edf94716 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java @@ -1223,7 +1223,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { JSONObject jsonObject = array.getJSONObject(i); String perMonthMoney = jsonObject.getString("perMonthMoney"); if(StringUtils.isNotBlank(perMonthMoney) && !"0".equals(perMonthMoney)){ - BigDecimal priceD = new BigDecimal(perMonthMoney).divide(new BigDecimal(100)); + BigDecimal priceD = new BigDecimal(perMonthMoney); priceArrs[i] = priceD.setScale(0, RoundingMode.HALF_EVEN).longValue(); }else{ priceArrs[i] = 0; @@ -1299,7 +1299,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { long rentPrice = 0l, siteMoney = 0l, facilityMoney = 0l, administratorMoney = 0l; if(!wxRentContract.getType().equals(EnumRentContractType.RENT_BY_JOINT.getCode()) && !wxRentContract.getType().equals(EnumRentContractType.RENT_BY_COUNT.getCode()) - && !wxRentContract.getType().equals(EnumRentContractType.RENT_BY_CUSTOMIZE.getCode())){ + && !wxRentContract.getType().equals(EnumRentContractType.RENT_BY_COUNT.getCode())){ if(wxRentContract.getRentInputWay().equals(EnumRentContractRentInputWay.PART.getCode())){ String rentInfo = wxRentContract.getRentInfo(); JSONArray rentInfoArray = JSONArray.parseArray(rentInfo);