|
@ -71,6 +71,7 @@ public class BuildingServiceImpl implements BuildingService { |
|
|
private IcBuildingUnitService icBuildingUnitService; |
|
|
private IcBuildingUnitService icBuildingUnitService; |
|
|
@Resource |
|
|
@Resource |
|
|
private IcHouseDao icHouseDao; |
|
|
private IcHouseDao icHouseDao; |
|
|
|
|
|
|
|
|
@Resource |
|
|
@Resource |
|
|
private CustomerAgencyDao customerAgencyDao; |
|
|
private CustomerAgencyDao customerAgencyDao; |
|
|
@Resource |
|
|
@Resource |
|
@ -570,6 +571,16 @@ public class BuildingServiceImpl implements BuildingService { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
icBuildingUnitService.insertBatch(unitList); |
|
|
icBuildingUnitService.insertBatch(unitList); |
|
|
|
|
|
//删除楼栋下所有的房屋缓存
|
|
|
|
|
|
List<IcHouseEntity> houseList = icHouseDao.selectList(new QueryWrapper<IcHouseEntity>().lambda().eq(IcHouseEntity::getBuildingId, formDTO.getBuildingId())); |
|
|
|
|
|
if (!CollectionUtils.isEmpty(houseList)) { |
|
|
|
|
|
houseList.forEach(house -> { |
|
|
|
|
|
//删除房屋的缓存
|
|
|
|
|
|
icHouseRedis.delHouseInfo(house.getId(), customerId); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|