|
|
@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.yxt.anrui.base.api.basemodelconfig.AppCarConfigSummaryVo; |
|
|
|
import com.yxt.anrui.base.api.basemodelconfig.AppModelConfigDetailsVo; |
|
|
|
import com.yxt.anrui.base.api.basemodelconfig.AppModelConfigListVo; |
|
|
|
import com.yxt.anrui.base.api.basemodelconfig.BaseModelConfig; |
|
|
|
import com.yxt.anrui.base.api.basemodelmodprice.BaseModelVehicleVersionVo; |
|
|
|
import com.yxt.anrui.base.api.basepurchasesystem.BasePurchSystemVo; |
|
|
|
import com.yxt.anrui.base.api.basevehicle.*; |
|
|
@ -208,6 +209,9 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
if (StringUtils.isNotBlank(pagerQuery.getVehicleTypeCode())) {//车型编码
|
|
|
|
qw.like("bvm.vehicleTypeCode", pagerQuery.getVehicleTypeCode()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(pagerQuery.getTranCaseTypeKey())) {//变速箱类型
|
|
|
|
qw.eq("bvm.tranCaseTypeKey", pagerQuery.getTranCaseTypeKey()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(pagerQuery.getGearboxType())) {//变速箱
|
|
|
|
qw.eq("bvm.gearboxType", pagerQuery.getGearboxType()); |
|
|
|
} |
|
|
@ -707,7 +711,7 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
vo.setPrice(guidedPriceMin + "-" + guidedPriceMax + "万元"); |
|
|
|
//拼接常用车型
|
|
|
|
List<AppModelConfigListVo> appModelConfigListVos = baseModelConfigService.selectAppConfigListByModelSid(modelSid); |
|
|
|
addDonfigName(appModelConfigListVos); |
|
|
|
baseModelConfigService.addDonfigName1(appModelConfigListVos); |
|
|
|
vo.setModelConfigList(appModelConfigListVos); |
|
|
|
return vo; |
|
|
|
} |
|
|
@ -896,7 +900,9 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
configDetailVo.setMoreConfig(otherConfig); |
|
|
|
} |
|
|
|
//拼接常用配置字段
|
|
|
|
String modelInfoName = modelInfoName(configVo); |
|
|
|
// String modelInfoName = modelInfoName(configVo);
|
|
|
|
BaseModelConfig baseModelConfig = baseModelConfigService.fetchBySid(configSid); |
|
|
|
String modelInfoName = baseModelConfigService.configNameSpell(baseModelConfig); |
|
|
|
configDetailVo.setModelInfoName(modelInfoName); |
|
|
|
return configDetailVo; |
|
|
|
} |
|
|
@ -904,23 +910,6 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
|
|
|
|
// 拼接常用配置字段
|
|
|
|
public String modelInfoName(AppModelConfigDetailsVo configVo) { |
|
|
|
|
|
|
|
/* 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() + "/") : ""; |
|
|
|
String power = StringUtils.isNotBlank(currentCarVo.getPowerValue()) ? (currentCarVo.getPowerValue() + "/") : ""; |
|
|
|
String vehicleVersion = StringUtils.isNotBlank(currentCarVo.getVehicleVersionValue()) ? (currentCarVo.getVehicleVersionValue() + "/") : ""; |
|
|
|
String fuelType = StringUtils.isNotBlank(currentCarVo.getFuelTypeValue()) ? (currentCarVo.getFuelTypeValue() + "/") : ""; |
|
|
|
String gearboxType = StringUtils.isNotBlank(currentCarVo.getGearboxTypeValue()) ? (currentCarVo.getGearboxTypeValue() + "/") : ""; |
|
|
|
String emissionStandard = StringUtils.isNotBlank(currentCarVo.getEmissionStandardValue()) ? (currentCarVo.getEmissionStandardValue() + "/") : ""; |
|
|
|
String engineType = StringUtils.isNotBlank(currentCarVo.getEngineTypeValue()) ? (currentCarVo.getEngineTypeValue() + "/") : ""; |
|
|
|
String marketSegments = StringUtils.isNotBlank(currentCarVo.getMarketSegments()) ? (currentCarVo.getMarketSegments() + "/") : ""; |
|
|
|
String specifications = StringUtils.isNotBlank(currentCarVo.getSpecifications()) ? (currentCarVo.getSpecifications() + "/") : ""; |
|
|
|
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);*/ |
|
|
|
String color = StringUtils.isNotBlank(configVo.getCarColor()) |
|
|
|
? (configVo.getCarColor() + "/") : ""; |
|
|
|
String slowMachine = StringUtils.isNotBlank(configVo.getSlowMachine()) |
|
|
@ -1436,7 +1425,7 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
*/ |
|
|
|
public AppCarConfigSummaryVo addConfigName(AppModelConfigListVo appModelConfigListVo) { |
|
|
|
AppCarConfigSummaryVo vo = new AppCarConfigSummaryVo(); |
|
|
|
String slowMachine = StringUtils.isNotBlank(appModelConfigListVo.getSlowMachine()) ? (appModelConfigListVo.getSlowMachine() + "/") : ""; |
|
|
|
/*String slowMachine = StringUtils.isNotBlank(appModelConfigListVo.getSlowMachine()) ? (appModelConfigListVo.getSlowMachine() + "/") : ""; |
|
|
|
|
|
|
|
String rearViewMirror = StringUtils.isNotBlank(appModelConfigListVo.getRearViewMirror()) ? (appModelConfigListVo.getRearViewMirror() + "/") : ""; |
|
|
|
|
|
|
@ -1475,7 +1464,9 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
String multimedia = StringUtils.isNotBlank(appModelConfigListVo.getMultimedia()) && StringUtils.equals(appModelConfigListVo.getMultimedia(), "有") ? ("多媒体") : ""; |
|
|
|
|
|
|
|
String configName = slowMachine + rearViewMirror + tireSize + specification + rearAxleValue + rearAxleRatio + airConditioner + hubMaterial + |
|
|
|
baffleModel + suspension + seat + tireCover + saddle + wheelbase + bumper + configuringBao + independentSources + fuelTank + multimedia; |
|
|
|
baffleModel + suspension + seat + tireCover + saddle + wheelbase + bumper + configuringBao + independentSources + fuelTank + multimedia;*/ |
|
|
|
BaseModelConfig baseModelConfig = baseModelConfigService.fetchBySid(appModelConfigListVo.getConfigSid()); |
|
|
|
String configName = baseModelConfigService.configNameSpell(baseModelConfig); |
|
|
|
vo.setConfig(configName); |
|
|
|
vo.setModel(appModelConfigListVo.getModel()); |
|
|
|
vo.setMoreConfig(appModelConfigListVo.getOtherConfig()); |
|
|
@ -3215,7 +3206,7 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
//配置sid
|
|
|
|
String configSid = appOrderDetailsVo.getModelInfo().getConfigSid(); |
|
|
|
qw.eq("bv.modelSid",modelSid); |
|
|
|
qw.eq("bv.configSid",configSid); |
|
|
|
qw.eq("bv.modelConfigSid",configSid); |
|
|
|
} |
|
|
|
//非删除
|
|
|
|
qw.eq("bv.isDelete",0); |
|
|
|