From 0f7eb0c004d7d96b5a52632afa83bcadf0b77303 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Sat, 15 Jun 2019 17:05:57 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=A7=9F=E8=B5=81=E7=89=A9=E4=B8=9A=E5=90=88?= =?UTF-8?q?=E5=90=8C][=E4=BF=AE=E6=94=B9][=E6=A0=B9=E6=8D=AEID=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/WxRentPropertyContractServiceImpl.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxRentPropertyContractServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxRentPropertyContractServiceImpl.java index e03dd767c..6b1067962 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRentPropertyContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRentPropertyContractServiceImpl.java @@ -17,7 +17,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.HashMap; -import java.util.List; import java.util.Map; /** @@ -51,10 +50,8 @@ public class WxRentPropertyContractServiceImpl implements WxRentPropertyContract data.put("rent", rent); WxPropertyContract wxPropertyContractQuery = new WxPropertyContract(); wxPropertyContractQuery.setRentContractId(id); - List propertyContracts = wxPropertyContractMapper.select(wxPropertyContractQuery); - if (!propertyContracts.isEmpty()) { - data.put("property", propertyContracts.get(0)); - } + WxPropertyContract propertyContract = wxPropertyContractMapper.selectOne(wxPropertyContractQuery); + data.put("property", propertyContract); return new ResultData(data); }