From 28ac22a4dd20a5abfa5fae11ce081d8120f1f476 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期二, 21 四月 2026 22:18:28 +0800
Subject: [PATCH] 新增加客服系统对接接口

---
 xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/service/impl/VehicleRtInfoServiceImpl.java |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/service/impl/VehicleRtInfoServiceImpl.java b/xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/service/impl/VehicleRtInfoServiceImpl.java
index 5b9bf75..c7b8606 100644
--- a/xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/service/impl/VehicleRtInfoServiceImpl.java
+++ b/xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/service/impl/VehicleRtInfoServiceImpl.java
@@ -162,16 +162,18 @@
         if (!SmsType.ACCEPT_RIDES.name().equals(smsType)) {
             return null;
         }
-//        XpVehicle vehicle = xpVehicleClient.findByVehicleVin(vin).getData();
-//        if (vehicle == null) {
-//            return XpCommonResponse.fail(RobotaxiErrorEnum.MOBILE_VIN_MISMATCH);
-//        }
-//        Integer status = vehicle.getStatus();
-//        Integer operatingStatus = vehicle.getOperatingStatus();
-//        if (status == null || status != 2 || operatingStatus == null || operatingStatus != 1) {
-//            return XpCommonResponse.fail(RobotaxiErrorEnum.VEHICLE_NOT_READY);
-//        }
-
+        XpVehicle vehicle = xpVehicleClient.findByVehicleVin(vin).getData();
+        if (vehicle == null) {
+            return XpCommonResponse.fail(RobotaxiErrorEnum.MOBILE_VIN_MISMATCH);
+        }
+        Integer status = vehicle.getStatus();
+        Integer operatingStatus = vehicle.getOperatingStatus();
+        if (smsType.equals(SmsType.ACCEPT_RIDES.name()) && operatingStatus != 1) {
+            return XpCommonResponse.fail(RobotaxiErrorEnum.VEHICLE_NOT_READY);
+        }
+        if (smsType.equals(SmsType.STOP_ACCEPT_RIDES.name()) && operatingStatus != 3) {
+            return XpCommonResponse.fail(RobotaxiErrorEnum.VEHICLE_NOT_READY);
+        }
         return null;
     }
 

--
Gitblit v1.7.1