|
|
@ -3,17 +3,16 @@ package com.yxt.anrui.base.biz.basemodelconfig; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.yxt.anrui.base.api.basemodelconfig.*; |
|
|
|
import com.yxt.anrui.base.api.basevehicle.*; |
|
|
|
import com.yxt.anrui.base.api.basevehiclemodelappendix.BaseVehicleModelAppendix; |
|
|
|
import com.yxt.anrui.base.api.basevehicle.AppMoreConfigVo; |
|
|
|
import com.yxt.anrui.base.api.basevehicle.ConfigInfo; |
|
|
|
import com.yxt.anrui.base.biz.basevehicleappendix.BaseVehicleAppendixService; |
|
|
|
import com.yxt.anrui.base.biz.basevehiclemodelappendix.BaseVehicleModelAppendixService; |
|
|
|
import com.yxt.anrui.base.common.enums.VehicleState; |
|
|
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign; |
|
|
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo; |
|
|
|
import com.yxt.common.base.config.component.FileUploadComponent; |
|
|
|
import com.yxt.common.base.service.MybatisBaseService; |
|
|
|
import com.yxt.common.base.utils.PagerUtil; |
|
|
|
import com.yxt.common.core.query.PagerQuery; |
|
|
|
import com.yxt.common.core.vo.PagerVo; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
@ -132,13 +131,13 @@ public class BaseModelConfigService extends MybatisBaseService<BaseModelConfigMa |
|
|
|
qw.like("bmc.multimediaKey", pagerQuery.getMultimediaKey()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(pagerQuery.getConfigName())) {//简述配置名称
|
|
|
|
qw.like("bmc.configName", pagerQuery.getConfigName()).or().like("bmc.otherConfig",pagerQuery.getConfigName()); |
|
|
|
qw.like("bmc.configName", pagerQuery.getConfigName()).or().like("bmc.otherConfig", pagerQuery.getConfigName()); |
|
|
|
} |
|
|
|
String configSid = pagerQuery.getConfigSid(); |
|
|
|
if (StringUtils.isNotBlank(configSid)){ |
|
|
|
if (StringUtils.isNotBlank(configSid)) { |
|
|
|
String[] configSids = configSid.split(","); |
|
|
|
for (String sid : configSids) { |
|
|
|
qw.ne("bmc.sid",sid); |
|
|
|
qw.ne("bmc.sid", sid); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -525,7 +524,7 @@ public class BaseModelConfigService extends MybatisBaseService<BaseModelConfigMa |
|
|
|
//配置列表
|
|
|
|
IPage<AppModelConfigListQuery> page = PagerUtil.queryToPage(pagerQuery); |
|
|
|
QueryWrapper<AppModelConfigListVo> qw = modelConfigQueryWrapper(pagerQuery.getParams()); |
|
|
|
List<AppModelConfigListVo> appModelConfigListVos = baseMapper.getModelConfigPageList(page, qw); |
|
|
|
List<AppModelConfigListVo> appModelConfigListVos = baseMapper.getModelConfigPageList(page, qw, VehicleState.LockEnum.UN_LOCK.getCode()); |
|
|
|
long pages = page.getPages(); |
|
|
|
vo.setPages((int) pages); |
|
|
|
//分公司配置列表查询
|
|
|
@ -544,6 +543,7 @@ public class BaseModelConfigService extends MybatisBaseService<BaseModelConfigMa |
|
|
|
vo.setModelConfigList(appModelConfigListVos); |
|
|
|
return vo; |
|
|
|
} |
|
|
|
|
|
|
|
public AppModelConfigVo getNowConfigList(PagerQuery<AppModelConfigListQuery> pagerQuery) { |
|
|
|
|
|
|
|
String userSid = pagerQuery.getParams().getUserSid(); |
|
|
@ -601,6 +601,7 @@ public class BaseModelConfigService extends MybatisBaseService<BaseModelConfigMa |
|
|
|
vo.setModelConfigList(appModelConfigListVos); |
|
|
|
return vo; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 拼接常用车型字段(configName) |
|
|
|
* |
|
|
@ -609,41 +610,60 @@ public class BaseModelConfigService extends MybatisBaseService<BaseModelConfigMa |
|
|
|
*/ |
|
|
|
public List<AppModelConfigListVo> addDonfigName(List<AppModelConfigListVo> appModelConfigListVos) { |
|
|
|
for (AppModelConfigListVo appModelConfigListVo : appModelConfigListVos) { |
|
|
|
String slowMachine = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getSlowMachine()) ? (appModelConfigListVo.getSlowMachine() + "/") : ""; |
|
|
|
|
|
|
|
String rearViewMirror = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getRearViewMirror()) ? (appModelConfigListVo.getRearViewMirror() + "/") : ""; |
|
|
|
|
|
|
|
String tireSize = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getTireSize()) ? (appModelConfigListVo.getTireSize() + "/") : ""; |
|
|
|
|
|
|
|
String specification = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getSpecification()) ? (appModelConfigListVo.getSpecification() + "/") : ""; |
|
|
|
|
|
|
|
String rearAxleRatio = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getRearAxleRatio()) ? (appModelConfigListVo.getRearAxleRatio() + "/") : ""; |
|
|
|
|
|
|
|
String airConditioner = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getAirConditioner()) && com.yxt.common.base.utils.StringUtils.equals(appModelConfigListVo.getAirConditioner(), "有") ? ("空调" + "/") : ""; |
|
|
|
//缓速器
|
|
|
|
String slowMachine = StringUtils.isNotBlank(appModelConfigListVo.getSlowMachine()) |
|
|
|
&& "有".equals(appModelConfigListVo.getSlowMachine()) ? ("缓速器" + "/") : ""; |
|
|
|
//后视镜
|
|
|
|
String rearViewMirror = StringUtils.isNotBlank(appModelConfigListVo.getRearViewMirror()) |
|
|
|
? (appModelConfigListVo.getRearViewMirror() + "/") : ""; |
|
|
|
//轮胎规格
|
|
|
|
String tireSize = StringUtils.isNotBlank(appModelConfigListVo.getTireSize()) |
|
|
|
? (appModelConfigListVo.getTireSize() + "/") : ""; |
|
|
|
//驾驶室规格
|
|
|
|
String specification = StringUtils.isNotBlank(appModelConfigListVo.getSpecification()) |
|
|
|
? (appModelConfigListVo.getSpecification() + "/") : ""; |
|
|
|
//后桥速比
|
|
|
|
String rearAxleRatio = StringUtils.isNotBlank(appModelConfigListVo.getRearAxleRatio()) |
|
|
|
? (appModelConfigListVo.getRearAxleRatio() + "/") : ""; |
|
|
|
//空调
|
|
|
|
String airConditioner = StringUtils.isNotBlank(appModelConfigListVo.getAirConditioner()) |
|
|
|
&& "有".equals(appModelConfigListVo.getAirConditioner()) ? ("空调" + "/") : ""; |
|
|
|
|
|
|
|
String hubMaterial = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getHubMaterial()) ? (appModelConfigListVo.getHubMaterial() + "/") : ""; |
|
|
|
String hubMaterial = StringUtils.isNotBlank(appModelConfigListVo.getHubMaterial()) |
|
|
|
? (appModelConfigListVo.getHubMaterial() + "/") : ""; |
|
|
|
|
|
|
|
String baffleModel = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getBaffleModel()) && com.yxt.common.base.utils.StringUtils.equals(appModelConfigListVo.getBaffleModel(), "有") ? ("导流罩" + "/") : ""; |
|
|
|
String baffleModel = StringUtils.isNotBlank(appModelConfigListVo.getBaffleModel()) |
|
|
|
&& "有".equals(appModelConfigListVo.getBaffleModel()) ? ("导流罩" + "/") : ""; |
|
|
|
|
|
|
|
String suspension = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getSuspension()) ? (appModelConfigListVo.getSuspension() + "/") : ""; |
|
|
|
String suspension = StringUtils.isNotBlank(appModelConfigListVo.getSuspension()) |
|
|
|
? (appModelConfigListVo.getSuspension() + "/") : ""; |
|
|
|
|
|
|
|
String seat = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getSeat()) ? (appModelConfigListVo.getSeat() + "/") : ""; |
|
|
|
String seat = StringUtils.isNotBlank(appModelConfigListVo.getSeat()) |
|
|
|
? (appModelConfigListVo.getSeat() + "/") : ""; |
|
|
|
|
|
|
|
String tireCover = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getTireCover()) && com.yxt.common.base.utils.StringUtils.equals(appModelConfigListVo.getTireCover(), "有") ? ("护轮罩" + "/") : ""; |
|
|
|
String tireCover = StringUtils.isNotBlank(appModelConfigListVo.getTireCover()) |
|
|
|
&& "有".equals(appModelConfigListVo.getTireCover()) ? ("护轮罩" + "/") : ""; |
|
|
|
|
|
|
|
String saddle = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getSaddle()) ? (appModelConfigListVo.getSaddle() + "/") : ""; |
|
|
|
String saddle = StringUtils.isNotBlank(appModelConfigListVo.getSaddle()) |
|
|
|
? (appModelConfigListVo.getSaddle() + "/") : ""; |
|
|
|
|
|
|
|
String wheelbase = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getWheelbase()) ? (appModelConfigListVo.getWheelbase() + "/") : ""; |
|
|
|
String wheelbase = StringUtils.isNotBlank(appModelConfigListVo.getWheelbase()) |
|
|
|
? (appModelConfigListVo.getWheelbase() + "/") : ""; |
|
|
|
|
|
|
|
String bumper = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getBumper()) ? (appModelConfigListVo.getBumper() + "/") : ""; |
|
|
|
String bumper = StringUtils.isNotBlank(appModelConfigListVo.getBumper()) |
|
|
|
? (appModelConfigListVo.getBumper() + "/") : ""; |
|
|
|
|
|
|
|
String configuringBao = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getConfiguringBao()) ? (appModelConfigListVo.getConfiguringBao() + "/") : ""; |
|
|
|
String configuringBao = StringUtils.isNotBlank(appModelConfigListVo.getConfiguringBao()) |
|
|
|
? (appModelConfigListVo.getConfiguringBao() + "/") : ""; |
|
|
|
|
|
|
|
String independentSources = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getIndependentSources()) && com.yxt.common.base.utils.StringUtils.equals(appModelConfigListVo.getIndependentSources(), "有") ? ("独立热源" + "/") : ""; |
|
|
|
String independentSources = StringUtils.isNotBlank(appModelConfigListVo.getIndependentSources()) |
|
|
|
&& "有".equals(appModelConfigListVo.getIndependentSources()) ? ("独立热源" + "/") : ""; |
|
|
|
|
|
|
|
String fuelTank = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getFuelTank()) ? (appModelConfigListVo.getFuelTank() + "/") : ""; |
|
|
|
String fuelTank = StringUtils.isNotBlank(appModelConfigListVo.getFuelTank()) |
|
|
|
? (appModelConfigListVo.getFuelTank() + "/") : ""; |
|
|
|
|
|
|
|
String multimedia = com.yxt.common.base.utils.StringUtils.isNotBlank(appModelConfigListVo.getMultimedia()) && com.yxt.common.base.utils.StringUtils.equals(appModelConfigListVo.getMultimedia(), "有") ? ("多媒体") : ""; |
|
|
|
String multimedia = StringUtils.isNotBlank(appModelConfigListVo.getMultimedia()) |
|
|
|
&& "有".equals(appModelConfigListVo.getMultimedia()) ? ("多媒体") : ""; |
|
|
|
|
|
|
|
String configName = slowMachine + rearViewMirror + tireSize + specification + rearAxleRatio + airConditioner + hubMaterial + |
|
|
|
baffleModel + suspension + seat + tireCover + saddle + wheelbase + bumper + configuringBao + independentSources + fuelTank + multimedia; |
|
|
@ -754,6 +774,6 @@ public class BaseModelConfigService extends MybatisBaseService<BaseModelConfigMa |
|
|
|
} |
|
|
|
|
|
|
|
public int checkByCreateOrgSidAndConfigSid(String sid1, String sid) { |
|
|
|
return baseMapper.checkByCreateOrgSidAndConfigSid(sid1,sid); |
|
|
|
return baseMapper.checkByCreateOrgSidAndConfigSid(sid1, sid); |
|
|
|
} |
|
|
|
} |