From 97f079c4de904096f2789379eddf65d3ed7cf768 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Tue, 9 Apr 2019 10:10:24 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=A7=9F=E8=B5=81=E5=90=88=E5=90=8C][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9][=E7=94=9F=E6=88=90=E8=B4=A6=E5=8D=95?= =?UTF-8?q?=E6=97=B6=E7=9A=84JSON=E6=95=B0=E6=8D=AE]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/service/impl/WxRentContractServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 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 4a271926e..7282b8534 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java @@ -631,7 +631,8 @@ public class WxRentContractServiceImpl implements WxRentContractService { int[] ints = priceList.get(i); for (int j = 0; j < ints.length; j++) { JSONObject rentInfoObject = rentInfoArray.getJSONObject(j); - shopInfo.put(rentInfoObject.getString("shopNumber"), ints[j]); + String s = new BigDecimal(ints[j]).divide(new BigDecimal(100)).toPlainString(); + shopInfo.put(rentInfoObject.getString("shopNumber"), s); } shopInfos.add(shopInfo); }