| | |
| | | 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) |