From d2148d638a3bbebb94cb42b3f5ab4397a5dddff1 Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Mon, 13 Jan 2025 18:26:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=A7=E5=B1=8F=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../largeScreen/impl/MapWarehouseServiceImpl.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/blade-service/logpm-report/src/main/java/com/logpm/report/service/largeScreen/impl/MapWarehouseServiceImpl.java b/blade-service/logpm-report/src/main/java/com/logpm/report/service/largeScreen/impl/MapWarehouseServiceImpl.java index bca70eb7f..c57e17a78 100644 --- a/blade-service/logpm-report/src/main/java/com/logpm/report/service/largeScreen/impl/MapWarehouseServiceImpl.java +++ b/blade-service/logpm-report/src/main/java/com/logpm/report/service/largeScreen/impl/MapWarehouseServiceImpl.java @@ -56,13 +56,13 @@ public class MapWarehouseServiceImpl implements IMapWarehouseService { String[] endWarehouseIds = lineInfoVO.getEndWarehouseIds().split(","); Long endWarehouseId = Long.valueOf(endWarehouseIds[endWarehouseIds.length - 1]); WarehouseInfoVO warehouseInfo = warehouseInfoMap.get(endWarehouseId); - - targetWarehouse.setWarehouseId(endWarehouseId); - targetWarehouse.setWarehouseName(warehouseInfo.getWarehouseName()); - targetWarehouse.setLat(warehouseInfo.getLat()); - targetWarehouse.setLng(warehouseInfo.getLng()); - - target.add(targetWarehouse); + if(warehouseInfo!=null){ + targetWarehouse.setWarehouseId(endWarehouseId); + targetWarehouse.setWarehouseName(warehouseInfo.getWarehouseName()); + targetWarehouse.setLat(warehouseInfo.getLat()); + targetWarehouse.setLng(warehouseInfo.getLng()); + target.add(targetWarehouse); + } }); mapWarehouseVO.setTarget(target);