From 4fa033eaa1ddfd9ed4030b2db061cfeaf49c2897 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期二, 24 二月 2026 19:39:11 +0800
Subject: [PATCH] 修改分表分库框架和XPU对接逻辑

---
 xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/service/KafkaConsumerService.java |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/service/KafkaConsumerService.java b/xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/service/KafkaConsumerService.java
index 0efb36b..a6de1a3 100644
--- a/xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/service/KafkaConsumerService.java
+++ b/xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/service/KafkaConsumerService.java
@@ -434,8 +434,13 @@
                     throw new RuntimeException("获取订单线路和运费失败");
                 }
                 RouteVo routeVo = routeVoR.getData();
+                R<String> stringR = xpMapClient.queryRouted(routeVo.getRouteID());
+                if (200 != stringR.getCode()) {
+                    throw new RuntimeException("根据导航ID获取车端需要的导航数据失败");
+                }
+
                 //构建导航下发请求对象
-                cloudPushNavigationInfo(requestId, routeVo.getRouteID(), routeVo.getRouteDataContent(), orderId, xpVehicle.getVehicleVin(), xpVehicle.getXpuId());
+                cloudPushNavigationInfo(requestId, routeVo.getRouteID(), stringR.getData(), orderId, xpVehicle.getVehicleVin(), xpVehicle.getXpuId());
             }
         }
     }
@@ -504,8 +509,12 @@
             }
             XpVehicle xpVehicle = xpVehicleClient.queryById(xpOrder.getVehicleId()).getData();
             RouteVo routeVo = routeVoR.getData();
+            R<String> stringR = xpMapClient.queryRouted(routeVo.getRouteID());
+            if (200 != stringR.getCode()) {
+                throw new RuntimeException("根据导航ID获取车端需要的导航数据失败");
+            }
             //构建导航下发请求对象
-            cloudPushNavigationInfo(requestId, routeVo.getRouteID(), routeVo.getRouteDataContent(), orderId, xpVehicle.getVehicleVin(), xpVehicle.getXpuId());
+            cloudPushNavigationInfo(requestId, routeVo.getRouteID(), stringR.getData(), orderId, xpVehicle.getVehicleVin(), xpVehicle.getXpuId());
         }
     }
 

--
Gitblit v1.7.1