“mitao”
2026-04-07 e02decbbdf06e21e852cf6e5fa00f1b32b5b4b14
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)