From a3ed8b7950484a3498bf89af750376b0d7575753 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期三, 13 五月 2026 12:00:31 +0800
Subject: [PATCH] 加密

---
 xp-robotaxi-vehicle-convoy-boot/src/main/java/com/xiaopeng/vehicleConvoy/service/impl/XpVehicleServiceImpl.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/xp-robotaxi-vehicle-convoy-boot/src/main/java/com/xiaopeng/vehicleConvoy/service/impl/XpVehicleServiceImpl.java b/xp-robotaxi-vehicle-convoy-boot/src/main/java/com/xiaopeng/vehicleConvoy/service/impl/XpVehicleServiceImpl.java
index 5964f06..d5afc1f 100644
--- a/xp-robotaxi-vehicle-convoy-boot/src/main/java/com/xiaopeng/vehicleConvoy/service/impl/XpVehicleServiceImpl.java
+++ b/xp-robotaxi-vehicle-convoy-boot/src/main/java/com/xiaopeng/vehicleConvoy/service/impl/XpVehicleServiceImpl.java
@@ -423,6 +423,12 @@
         }
         String xpuid = xpuIdByVin.getData();
         xpVehicle.setXpuId(xpuid);
+
+
+        String encryptVin = SensitiveDataCryptoUtil.encrypt(vin);
+        xpVehicle.setVehicleVin(encryptVin);
+
+
         this.save(xpVehicle);
         if (isInfoComplete(xpVehicle)) {
             //如果信息完善则状态改为待运营
@@ -471,6 +477,9 @@
         } else {
             xpVehicle.setXpuId(existingVehicle.getXpuId());
         }
+
+        String encryptVin = SensitiveDataCryptoUtil.encrypt(xpVehicle.getVehicleVin());
+        xpVehicle.setVehicleVin(encryptVin);
         this.updateById(xpVehicle);
     }
 

--
Gitblit v1.7.1