src/main/java/org/springblade/modules/house/service/impl/HouseholdServiceImpl.java
@@ -455,7 +455,7 @@ } } // 判断是否租户导入 if (StringUtils.isNotBlank(isTenant) || householdEntity.getRelationship() == 18) { if (StringUtils.isNotBlank(isTenant) || (householdEntity.getRelationship() != null && householdEntity.getRelationship() == 18)) { householdEntity.setRelationship(18); HouseRentalEntity houseRentalEntity = iHouseRentalService.getOne(Wrappers.<HouseRentalEntity>lambdaQuery() .eq(HouseRentalEntity::getHouseCode, householdEntity.getHouseCode()).last("limit 1"));