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);