diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/CarsLoadAsyncServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/CarsLoadAsyncServiceImpl.java index 40cdc4598..1f4401dd1 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/CarsLoadAsyncServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/CarsLoadAsyncServiceImpl.java @@ -289,9 +289,11 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService { trunklineCostShareRecordEntity.setLoadingWarehouseId(warehouseId); trunklineCostShareRecordEntity.setLoadingWarehouseName(warehouseName); trunklineCostShareRecordEntity.setPlanUnloadWarehouseId(finalNodeId); - BasicdataWarehouseEntity finalWarehouse = warehouseClient.getEntityWarehouseId(finalNodeId); - if (!Objects.isNull(finalWarehouse)) { - trunklineCostShareRecordEntity.setPlanUnloadWarehouseName(finalWarehouse.getName()); + if(Objects.isNull(finalNodeId)){ + BasicdataWarehouseEntity finalWarehouse = warehouseClient.getEntityWarehouseId(finalNodeId); + if (!Objects.isNull(finalWarehouse)) { + trunklineCostShareRecordEntity.setPlanUnloadWarehouseName(finalWarehouse.getName()); + } } trunklineCostShareRecordEntity.setRealUnloadWarehouseId(unloadNodeId); trunklineCostShareRecordEntity.setRealUnloadWarehouseName(unloadNodeName); diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineAdvanceServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineAdvanceServiceImpl.java index 631f6e4cd..bab6b7217 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineAdvanceServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineAdvanceServiceImpl.java @@ -884,42 +884,48 @@ public class TrunklineAdvanceServiceImpl extends BaseServiceImpl