|
|
@ -592,16 +592,16 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
configDetailVo.setMoreConfig(otherConfig); |
|
|
|
} |
|
|
|
//拼接常用配置字段
|
|
|
|
String modelInfoName = modelInfoName(currentCarVo); |
|
|
|
String modelInfoName = modelInfoName(configVo); |
|
|
|
configDetailVo.setModelInfoName(modelInfoName); |
|
|
|
return configDetailVo; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 拼接常用配置字段
|
|
|
|
public String modelInfoName(AppCurrentCarDetailVo currentCarVo) { |
|
|
|
public String modelInfoName(AppModelConfigDetailsVo configVo) { |
|
|
|
|
|
|
|
String brandName = StringUtils.isNotBlank(currentCarVo.getBrandName()) ? (currentCarVo.getBrandName() + "/") : ""; |
|
|
|
/* String brandName = StringUtils.isNotBlank(currentCarVo.getBrandName()) ? (currentCarVo.getBrandName() + "/") : ""; |
|
|
|
String vehicleType = StringUtils.isNotBlank(currentCarVo.getVehicleTypeValue()) ? (currentCarVo.getVehicleTypeValue() + "/") : ""; |
|
|
|
String productLine = StringUtils.isNotBlank(currentCarVo.getProductLineValue()) ? (currentCarVo.getProductLineValue() + "/") : ""; |
|
|
|
String driveForm = StringUtils.isNotBlank(currentCarVo.getDriveFormValue()) ? (currentCarVo.getDriveFormValue() + "/") : ""; |
|
|
@ -616,7 +616,69 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
String department = StringUtils.isNotBlank(currentCarVo.getDepartment()) ? (currentCarVo.getDepartment() + "/") : ""; |
|
|
|
String modelInfoName = brandName + vehicleType + productLine + driveForm + power + vehicleVersion + fuelType + |
|
|
|
gearboxType + emissionStandard + engineType + marketSegments + specifications + department; |
|
|
|
return modelInfoName.substring(0, modelInfoName.length() - 1); |
|
|
|
return modelInfoName.substring(0, modelInfoName.length() - 1);*/ |
|
|
|
String color = StringUtils.isNotBlank(configVo.getCarColor()) |
|
|
|
? (configVo.getCarColor() + "/") : ""; |
|
|
|
String slowMachine = StringUtils.isNotBlank(configVo.getSlowMachine()) |
|
|
|
? (configVo.getSlowMachine() + "/") : ""; |
|
|
|
//后视镜
|
|
|
|
String rearViewMirror = StringUtils.isNotBlank(configVo.getRearViewMirror()) |
|
|
|
? (configVo.getRearViewMirror() + "/") : ""; |
|
|
|
//轮胎规格
|
|
|
|
String tireSize = StringUtils.isNotBlank(configVo.getTireSize()) |
|
|
|
? (configVo.getTireSize() + "/") : ""; |
|
|
|
//驾驶室规格
|
|
|
|
String specification = StringUtils.isNotBlank(configVo.getSpecification()) |
|
|
|
? (configVo.getSpecification() + "/") : ""; |
|
|
|
//后桥
|
|
|
|
String rearAxleValue = StringUtils.isNotBlank(configVo.getRearAxleValue()) |
|
|
|
? (configVo.getRearAxleValue() + "/") : ""; |
|
|
|
//后桥速比
|
|
|
|
String rearAxleRatio = StringUtils.isNotBlank(configVo.getRearAxleRatio()) |
|
|
|
? (configVo.getRearAxleRatio() + "/") : ""; |
|
|
|
//空调
|
|
|
|
String airConditioner = StringUtils.isNotBlank(configVo.getAirConditioner()) |
|
|
|
? (configVo.getAirConditioner() + "/") : ""; |
|
|
|
|
|
|
|
String hubMaterial = StringUtils.isNotBlank(configVo.getHubMaterial()) |
|
|
|
? (configVo.getHubMaterial() + "/") : ""; |
|
|
|
|
|
|
|
String baffleModel = StringUtils.isNotBlank(configVo.getBaffleModel()) |
|
|
|
? (configVo.getBaffleModel() + "/") : ""; |
|
|
|
|
|
|
|
String suspension = StringUtils.isNotBlank(configVo.getSuspension()) |
|
|
|
? (configVo.getSuspension() + "/") : ""; |
|
|
|
|
|
|
|
String seat = StringUtils.isNotBlank(configVo.getSeat()) |
|
|
|
? (configVo.getSeat() + "/") : ""; |
|
|
|
|
|
|
|
String tireCover = StringUtils.isNotBlank(configVo.getTireCover()) |
|
|
|
? (configVo.getTireCover() + "/") : ""; |
|
|
|
|
|
|
|
String saddle = StringUtils.isNotBlank(configVo.getSaddle()) |
|
|
|
? (configVo.getSaddle() + "/") : ""; |
|
|
|
|
|
|
|
String wheelbase = StringUtils.isNotBlank(configVo.getWheelbase()) |
|
|
|
? (configVo.getWheelbase() + "/") : ""; |
|
|
|
|
|
|
|
String bumper = StringUtils.isNotBlank(configVo.getBumper()) |
|
|
|
? (configVo.getBumper() + "/") : ""; |
|
|
|
|
|
|
|
String configuringBao = StringUtils.isNotBlank(configVo.getConfiguringBao()) |
|
|
|
? (configVo.getConfiguringBao() + "/") : ""; |
|
|
|
|
|
|
|
String independentSources = StringUtils.isNotBlank(configVo.getIndependentSources()) |
|
|
|
? (configVo.getIndependentSources() + "/") : ""; |
|
|
|
|
|
|
|
String fuelTank = StringUtils.isNotBlank(configVo.getFuelTank()) |
|
|
|
? (configVo.getFuelTank() + "/") : ""; |
|
|
|
|
|
|
|
String multimedia = StringUtils.isNotBlank(configVo.getMultimedia()) |
|
|
|
? (configVo.getMultimedia() + "/") : ""; |
|
|
|
|
|
|
|
String configName = color + slowMachine + rearViewMirror + tireSize + specification + rearAxleValue + rearAxleRatio + airConditioner + hubMaterial + |
|
|
|
baffleModel + suspension + seat + tireCover + saddle + wheelbase + bumper + configuringBao + independentSources + fuelTank + multimedia; |
|
|
|
return configName; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|