|
|
@ -17,6 +17,7 @@ import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
import com.epmet.commons.tools.redis.common.CustomerIcHouseRedis; |
|
|
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
@ -572,6 +573,16 @@ public class BuildingServiceImpl implements BuildingService { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//删除楼栋下所有的房屋缓存
|
|
|
|
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); |
|
|
|
}); |
|
|
|
} |
|
|
|
//删除楼栋缓存
|
|
|
|
CustomerIcHouseRedis.delBuildingInfo(formDTO.getBuildingId()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|