From 867efe02f6c7e44150209d4b8651c2ce470d6a0e Mon Sep 17 00:00:00 2001 From: gongbiao Date: Fri, 25 Jan 2019 10:54:13 +0800 Subject: [PATCH] =?UTF-8?q?[BUG][ID1000879][=E8=81=94=E8=90=A5=E6=89=A3?= =?UTF-8?q?=E7=82=B9=E5=92=8C=E7=A7=9F=E9=87=91=E8=AE=A1=E7=AE=97=E6=9C=89?= =?UTF-8?q?=E8=AF=AF]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/service/impl/WxRentContractServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 11fe0a14b..39ffe8102 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java @@ -235,7 +235,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { if (record.getType().equals(EnumRentContractType.RENT_BY_JOINT.getCode())) { BigDecimal hundred = new BigDecimal(100); BigDecimal revenue = new BigDecimal(record.getRevenue() == null ? 0 : record.getRevenue()).divide(hundred); - BigDecimal payRatio = new BigDecimal(record.getPayRatio() == null ? 0 : record.getPayRatio()).divide(hundred); + BigDecimal payRatio = new BigDecimal(record.getPayRatio() == null ? 0 : record.getPayRatio()).divide(new BigDecimal(10000)); BigDecimal price = revenue.multiply(payRatio).setScale(2, RoundingMode.HALF_EVEN); record.setPrice(price.multiply(hundred).intValue()); }