|
|
@ -444,16 +444,24 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
* |
|
|
|
* @param configName |
|
|
|
* @param configValue |
|
|
|
* @param spanSize |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private ConfigInfoSpanSize getConfigValueSpanSize(String configName, String configValue, Integer spanSize) { |
|
|
|
private ConfigInfoSpanSize getConfigValueSpanSize(String configName, String configValue) { |
|
|
|
ConfigInfoSpanSize configInfoSpanSize = new ConfigInfoSpanSize(); |
|
|
|
configInfoSpanSize.setSpanSize(1); |
|
|
|
configInfoSpanSize.setName(configName); |
|
|
|
configInfoSpanSize.setSpanSize(spanSize); |
|
|
|
if (configValue == null) { |
|
|
|
if (StringUtils.isBlank(configValue)) { |
|
|
|
configInfoSpanSize.setValue("-"); |
|
|
|
} else { |
|
|
|
// if (configValue.length() <= 6){
|
|
|
|
// configInfoSpanSize.setSpanSize(1);
|
|
|
|
// }
|
|
|
|
// if (configValue.length() > 6 && configValue.length() <= 20 ){
|
|
|
|
// configInfoSpanSize.setSpanSize(2);
|
|
|
|
// }
|
|
|
|
// if (configValue.length() > 20){
|
|
|
|
// configInfoSpanSize.setSpanSize(3);
|
|
|
|
// }
|
|
|
|
configInfoSpanSize.setValue(configValue); |
|
|
|
} |
|
|
|
return configInfoSpanSize; |
|
|
@ -484,23 +492,22 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
AppCurrentCarDetailVo currentCarVo = baseMapper.getAppCurrentCarDetailConfigVo(modelSid, configSid, useOrg); |
|
|
|
List<List<ConfigInfoSpanSize>> modelInfoList = new ArrayList<>(); |
|
|
|
List<ConfigInfoSpanSize> list1 = new ArrayList<>(); |
|
|
|
list1.add(getConfigValueSpanSize("品牌", currentCarVo.getBrandName(), 1)); |
|
|
|
list1.add(getConfigValueSpanSize("功能", currentCarVo.getVehicleTypeValue(), 1)); |
|
|
|
list1.add(getConfigValueSpanSize("系列", currentCarVo.getProductLineValue(), 1)); |
|
|
|
list1.add(getConfigValueSpanSize("驱动", currentCarVo.getDriveFormValue(), 1)); |
|
|
|
list1.add(getConfigValueSpanSize("马力", currentCarVo.getPowerValue(), 1)); |
|
|
|
list1.add(getConfigValueSpanSize("版本", currentCarVo.getVehicleVersionValue(), 1)); |
|
|
|
list1.add(getConfigValueSpanSize("燃料", currentCarVo.getFuelTypeValue(), 1)); |
|
|
|
list1.add(getConfigValueSpanSize("变速箱", currentCarVo.getGearboxTypeValue(), 1)); |
|
|
|
// List<ConfigInfoSpanSize> list2 = new ArrayList<>();
|
|
|
|
// list2.addAll(list1);
|
|
|
|
list1.add(getConfigValueSpanSize("细分市场", currentCarVo.getMarketSegments(), 1)); |
|
|
|
list1.add(getConfigValueSpanSize("系别", currentCarVo.getDepartment(), 1)); |
|
|
|
list1.add(getConfigValueSpanSize("发动机型号", currentCarVo.getEngineTypeValue(), 1)); |
|
|
|
list1.add(getConfigValueSpanSize("公告型号", currentCarVo.getAnnouncementModel(), 1)); |
|
|
|
list1.add(getConfigValueSpanSize("规格型号", currentCarVo.getSpecifications(), 1)); |
|
|
|
list1.add(getConfigValueSpanSize("货箱", currentCarVo.getPackingCase(), 1)); |
|
|
|
list1.add(getConfigValueSpanSize("内部编码", currentCarVo.getInsideCode(), 1)); |
|
|
|
list1.add(getConfigValueSpanSize("品牌", currentCarVo.getBrandName())); |
|
|
|
list1.add(getConfigValueSpanSize("功能", currentCarVo.getVehicleTypeValue())); |
|
|
|
list1.add(getConfigValueSpanSize("系列", currentCarVo.getProductLineValue())); |
|
|
|
list1.add(getConfigValueSpanSize("驱动", currentCarVo.getDriveFormValue())); |
|
|
|
list1.add(getConfigValueSpanSize("马力", currentCarVo.getPowerValue())); |
|
|
|
list1.add(getConfigValueSpanSize("版本", currentCarVo.getVehicleVersionValue())); |
|
|
|
list1.add(getConfigValueSpanSize("燃料", currentCarVo.getFuelTypeValue())); |
|
|
|
list1.add(getConfigValueSpanSize("变速箱", currentCarVo.getGearboxTypeValue())); |
|
|
|
list1.add(getConfigValueSpanSize("排放标准", currentCarVo.getEmissionStandardValue())); |
|
|
|
list1.add(getConfigValueSpanSize("发动机型号", currentCarVo.getEngineTypeValue())); |
|
|
|
list1.add(getConfigValueSpanSize("细分市场", currentCarVo.getMarketSegments())); |
|
|
|
list1.add(getConfigValueSpanSize("规格型号", currentCarVo.getSpecifications())); |
|
|
|
list1.add(getConfigValueSpanSize("系别", currentCarVo.getDepartment())); |
|
|
|
// list1.add(getConfigValueSpanSize("公告型号", currentCarVo.getAnnouncementModel(), 1));
|
|
|
|
// list1.add(getConfigValueSpanSize("货箱", currentCarVo.getPackingCase(), 1));
|
|
|
|
// list1.add(getConfigValueSpanSize("内部编码", currentCarVo.getInsideCode(), 1));
|
|
|
|
// modelInfoList.add(list1);
|
|
|
|
// modelInfoList.add(list2);
|
|
|
|
configDetailVo.setModeInfo(list1); |
|
|
@ -508,25 +515,25 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
AppModelConfigDetailsVo configVo = baseModelConfigService.getAppModelConfigDetailsVo(modelSid, configSid, useOrg); |
|
|
|
List<List<ConfigInfoSpanSize>> commonConfigInfoList = new ArrayList<>(); |
|
|
|
List<ConfigInfoSpanSize> list2 = new ArrayList<>(); |
|
|
|
list2.add(getConfigValueSpanSize("颜色", configVo.getCarColor(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("缓冲器", configVo.getSlowMachine(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("后视镜", configVo.getRearViewMirror(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("轮胎", configVo.getTireSize(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("驾驶室", configVo.getSpecification(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("后桥速比", configVo.getRearAxleRatio(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("空调", configVo.getAirConditioner(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("轮毂材质", configVo.getHubMaterial(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("导流罩", configVo.getBaffleModel(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("悬架", configVo.getSuspension(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("座椅", configVo.getSeat(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("护轮罩", configVo.getTireCover(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("鞍座", configVo.getSaddle(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("轴距", configVo.getWheelbase(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("保险杠", configVo.getBumper(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("配置包", configVo.getConfiguringBao(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("独立热源", configVo.getIndependentSources(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("燃料箱", configVo.getFuelTank(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("多媒体", configVo.getMultimedia(), 1)); |
|
|
|
list2.add(getConfigValueSpanSize("颜色", configVo.getCarColor())); |
|
|
|
list2.add(getConfigValueSpanSize("缓冲器", configVo.getSlowMachine())); |
|
|
|
list2.add(getConfigValueSpanSize("后视镜", configVo.getRearViewMirror())); |
|
|
|
list2.add(getConfigValueSpanSize("轮胎", configVo.getTireSize())); |
|
|
|
list2.add(getConfigValueSpanSize("驾驶室", configVo.getSpecification())); |
|
|
|
list2.add(getConfigValueSpanSize("后桥速比", configVo.getRearAxleRatio())); |
|
|
|
list2.add(getConfigValueSpanSize("空调", configVo.getAirConditioner())); |
|
|
|
list2.add(getConfigValueSpanSize("轮毂材质", configVo.getHubMaterial())); |
|
|
|
list2.add(getConfigValueSpanSize("导流罩", configVo.getBaffleModel())); |
|
|
|
list2.add(getConfigValueSpanSize("悬架", configVo.getSuspension())); |
|
|
|
list2.add(getConfigValueSpanSize("座椅", configVo.getSeat())); |
|
|
|
list2.add(getConfigValueSpanSize("护轮罩", configVo.getTireCover())); |
|
|
|
list2.add(getConfigValueSpanSize("鞍座", configVo.getSaddle())); |
|
|
|
list2.add(getConfigValueSpanSize("轴距", configVo.getWheelbase())); |
|
|
|
list2.add(getConfigValueSpanSize("保险杠", configVo.getBumper())); |
|
|
|
list2.add(getConfigValueSpanSize("配置包", configVo.getConfiguringBao())); |
|
|
|
list2.add(getConfigValueSpanSize("独立热源", configVo.getIndependentSources())); |
|
|
|
list2.add(getConfigValueSpanSize("燃料箱", configVo.getFuelTank())); |
|
|
|
list2.add(getConfigValueSpanSize("多媒体", configVo.getMultimedia())); |
|
|
|
configDetailVo.setConfigInfo(list2); |
|
|
|
//更多配置
|
|
|
|
String otherConfig = configVo.getOtherConfig(); |
|
|
|