From bd7b5bc66744ed8b1e4d93fe5252fcee57e14796 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Mon, 22 Oct 2018 18:39:18 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=90=88=E5=90=8C=E7=AE=A1=E7=90=86][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9][=E4=BB=B7=E6=A0=BC=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E4=B8=BA0]?= 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 b45e81c5a..2af78ff27 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java @@ -67,7 +67,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { public ResultData getById(Long id) { Map result=new HashMap<>(); WxRentContract wxRentContract = wxRentContractMapper.selectByPrimaryKey(id); - wxRentContract.setPrice(wxRentContract.getPrice()/100); + wxRentContract.setPrice(wxRentContract.getPrice()!=null?wxRentContract.getPrice()/100:0); result.put("wxRentContract",wxRentContract); //关联的商户 if(wxRentContract.getMerchantId()!=null){