From 017779c64bc0abb09789f8396eebcf0bd465b5e2 Mon Sep 17 00:00:00 2001 From: luozukai Date: Thu, 22 Aug 2019 16:33:59 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=90=88=E5=90=8C][=E4=BF=AE=E6=94=B9][?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E8=B4=A6=E5=8D=95=E7=BB=93=E7=AE=97]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/service/impl/WxRentContractServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 dd2133bf5..4a4f73c3b 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java @@ -278,7 +278,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { end = new BigDecimal(revenueArray[1]).divide(new BigDecimal(365), 10, BigDecimal.ROUND_HALF_DOWN).multiply(new BigDecimal(dayCount)); } if(EnumGetRatioFrom.RENT.getCode().equals(from)) { - revenue = revenue.divide(new BigDecimal(12),10, BigDecimal.ROUND_HALF_DOWN); + revenue = revenue.multiply(new BigDecimal(12)); } }else if(EnumMissTimeType.MONTH.getCode().equals(timeType)){ if(EnumGetRatioFrom.BILL.getCode().equals(from)) { @@ -287,7 +287,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { } }else if(EnumMissTimeType.PERIOD.getCode().equals(timeType)){ if(EnumGetRatioFrom.RENT.getCode().equals(from)) { - revenue = revenue.divide(new BigDecimal(period),10, BigDecimal.ROUND_HALF_DOWN); + revenue = revenue.multiply(new BigDecimal(period)); } } @@ -305,7 +305,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { end = new BigDecimal(revenueArray[1]).divide(new BigDecimal(365), 10, BigDecimal.ROUND_HALF_DOWN).multiply(new BigDecimal(dayCount)); } if(EnumGetRatioFrom.RENT.getCode().equals(from)) { - revenue = revenue.divide(new BigDecimal(12),10, BigDecimal.ROUND_HALF_DOWN); + revenue = revenue.multiply(new BigDecimal(12)); } }else if(EnumMissTimeType.MONTH.getCode().equals(timeType)){ if(EnumGetRatioFrom.BILL.getCode().equals(from)) { @@ -313,7 +313,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { } }else if(EnumMissTimeType.PERIOD.getCode().equals(timeType)){ if(EnumGetRatioFrom.RENT.getCode().equals(from)) { - revenue = revenue.divide(new BigDecimal(period),10, BigDecimal.ROUND_HALF_DOWN); + revenue = revenue.multiply(new BigDecimal(period)); } }