From b6fe63d091293992dc37f7a4aee3c3f9365ecdea Mon Sep 17 00:00:00 2001 From: gongbiao Date: Wed, 19 Jun 2019 21:08:13 +0800 Subject: [PATCH] =?UTF-8?q?[BUG][=E4=BF=AE=E6=94=B9][dev=20=20version:.151?= =?UTF-8?q?0.1953=EF=BC=9A=E5=95=86=E9=93=BA=E7=A7=9F=E8=B5=81=E5=90=88?= =?UTF-8?q?=E5=90=8C=E4=B8=8B=E5=AE=A1=E6=89=B9=E9=80=9A=E8=BF=87=E5=90=8E?= =?UTF-8?q?=E7=A7=9F=E9=87=91=E8=B4=A6=E5=8D=95=E7=94=9F=E4=BA=A7=EF=BC=8C?= =?UTF-8?q?=E7=89=A9=E4=B8=9A=E6=B2=A1=E6=9C=89=E7=94=9F=E6=88=90=E8=B4=A6?= =?UTF-8?q?=E5=8D=95]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/service/impl/WxRentContractServiceImpl.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 585747e8d..70a4c054a 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java @@ -1372,11 +1372,8 @@ public class WxRentContractServiceImpl implements WxRentContractService { if (record.getOperationType().equals(EnumContractOperationType.WHOLE.getCode())) { WxPropertyContract wxPropertyContract = new WxPropertyContract(); wxPropertyContract.setRentContractId(record.getId()); - WxPropertyContract propertyContract = wxPropertyContractMapper.select(wxPropertyContract).parallelStream() - .filter(p -> p.getStatus().equals(EnumRentContractStatus.SIGNED_RENT_UNPAID.getCode()) || - p.getStatus().equals(EnumRentContractStatus.RENT_PAID.getCode()) || - p.getStatus().equals(EnumRentContractStatus.CONTRACT_END_SOON.getCode())). - findFirst().orElse(null); + wxPropertyContract.setStatus(EnumRentContractStatus.WAIT_SIGN.getCode()); + WxPropertyContract propertyContract = wxPropertyContractMapper.selectOne(wxPropertyContract); if (propertyContract != null) { wxPropertyContractService.updatePropertyContractStatus(propertyContract.getId()); }