From 26f881bbe63ef2dcbc328bd4f32134673d79da32 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Wed, 11 Sep 2019 11:03:21 +0800 Subject: [PATCH] =?UTF-8?q?[BUG][=E4=BF=AE=E6=94=B9][=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=EF=BC=9A=E4=B8=9A=E6=80=81=E5=88=86=E6=9E=90?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E9=97=AE=E9=A2=98]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/iformall/service/impl/WxBusinessServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxBusinessServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxBusinessServiceImpl.java index da383b1e8..0fce5b60d 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxBusinessServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxBusinessServiceImpl.java @@ -132,7 +132,7 @@ public class WxBusinessServiceImpl implements WxBusinessService { e.put("rent",0); }else { BigDecimal area = new BigDecimal(e.get("area").toString()); - if (area.longValue() > 0) { + if (area.doubleValue() > 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()); }