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 efc6e69ff..43fba7521 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRentPropertyContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRentPropertyContractServiceImpl.java @@ -55,8 +55,8 @@ public class WxRentPropertyContractServiceImpl implements WxRentPropertyContract .filter(p -> p.getStatus().equals(EnumRentContractStatus.CONTRACT_END_SOON.getCode()) || p.getStatus().equals(EnumRentContractStatus.RENT_PAID.getCode()) || p.getStatus().equals(EnumRentContractStatus.SIGNED_RENT_UNPAID.getCode())) - .findFirst().orElseGet(null); - data.put("property", wxPropertyContract); + .findFirst().orElse(null); + data.put("property", new WxPropertyContract()); if (wxPropertyContract != null) { Map property = wxPropertyContractService.getById(wxPropertyContract.getRentContractId()); data.put("property", property);