From e02decbbdf06e21e852cf6e5fa00f1b32b5b4b14 Mon Sep 17 00:00:00 2001
From: “mitao” <“2763622819@qq.com”>
Date: 星期二, 07 四月 2026 17:05:43 +0800
Subject: [PATCH] fix(management):修改新增编辑导入车辆车辆颜色字符限制为3个字符
---
xp-robotaxi-vehicle-convoy-boot/src/main/java/com/xiaopeng/vehicleConvoy/service/impl/XpVehicleServiceImpl.java | 4 ++--
1 files changed, 2 insertions(+), 2 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 f016164..ddcf943 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
@@ -480,8 +480,8 @@
if (StringUtils.isBlank(plateNumber) || !Validator.isPlateNumber(plateNumber)) {
throw new ServiceException("车牌号格式不正确", I18nKeyConstant.VEHICLE_PLATE_INVALID, new Object[]{plateNumber});
}
- if (StringUtils.isNotBlank(vehicleColor) && vehicleColor.length() > 2) {
- throw new ServiceException("车辆颜色长度不能超过2", I18nKeyConstant.VEHICLE_COLOR_INVALID, new Object[]{vehicleColor});
+ if (StringUtils.isNotBlank(vehicleColor) && vehicleColor.length() > 3) {
+ throw new ServiceException("车辆颜色长度不能超过3", I18nKeyConstant.VEHICLE_COLOR_INVALID, new Object[]{vehicleColor});
}
List<XpVehicle> duplicates = lambdaQuery()
.ne(excludeId != null, XpVehicle::getId, excludeId)
--
Gitblit v1.7.1