|
|
|
@@ -2630,16 +2630,6 @@ public class WxRentContractServiceImpl implements WxRentContractService { |
|
|
|
shopList.add(shopId); |
|
|
|
} |
|
|
|
} else { |
|
|
|
WxRentContract wxRentContract = new WxRentContract(); |
|
|
|
wxRentContract.updateTenantInfo(record); |
|
|
|
wxRentContract.setShopId(record.getShopId()); |
|
|
|
long count = wxRentContractMapper.queryRentContractData(wxRentContract).stream(). |
|
|
|
filter(rc -> rc.get("status").equals(EnumRentContractStatus.SIGNED_RENT_UNPAID.getCode()) |
|
|
|
|| rc.get("status").equals(EnumRentContractStatus.RENT_PAID.getCode()) |
|
|
|
|| rc.get("status").equals(EnumRentContractStatus.CONTRACT_END_SOON.getCode())).count(); |
|
|
|
if (count > 0) { |
|
|
|
return new ResultData(ErrorCode.RENT_CONTRACT_WITH_SHOP_IS_FOUND); |
|
|
|
} |
|
|
|
shopList.add(record.getShopId()); |
|
|
|
} |
|
|
|
|
|
|
|
|