diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/feign/BasicdataWarehouseClient.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/feign/BasicdataWarehouseClient.java index 8fd6be6d4..c34d86f6c 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/feign/BasicdataWarehouseClient.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/feign/BasicdataWarehouseClient.java @@ -264,7 +264,9 @@ public class BasicdataWarehouseClient implements IBasicdataWarehouseClient { } else { Long parentId = dept.getParentId(); Dept parentDept = deptClient.findEntityById(parentId); - warehouseEntity.setBusinessLine(parentDept.getDeptName()); + if(ObjectUtil.isNotEmpty(parentDept)){ + warehouseEntity.setBusinessLine(parentDept.getDeptName()); + } } } }