|
|
@ -143,7 +143,7 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
qw.eq("bv.createOrgSid", pagerQuery.getCreateOrgSid()); |
|
|
|
} |
|
|
|
qw.eq("bv.isDelete", "0"); |
|
|
|
if (StringUtils.isNotBlank(pagerQuery.getOrgSid())){ |
|
|
|
if (StringUtils.isNotBlank(pagerQuery.getOrgSid())) { |
|
|
|
qw.eq("bv.createOrgSid", pagerQuery.getOrgSid()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(pagerQuery.getVinNo())) {//车架号
|
|
|
@ -1466,24 +1466,24 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
qw.eq("bv.createOrgSid", params.getCreateOrgSid()); |
|
|
|
} |
|
|
|
qw.eq("bv.isDelete", "0"); |
|
|
|
qw.and(wrapper -> wrapper.eq("bv.vehicleState",VehicleState.StockEnum.STOCK.getCode()).or().eq("bv.vehicleState", VehicleState.StockEnum.ING_STOCK.getCode()).or().eq("bv.vehicleState",VehicleState.StockEnum.DR_STOCK.getCode())); |
|
|
|
if (StringUtils.isNotBlank(params.getVehicleState())){ |
|
|
|
qw.eq("bv.vehicleState",params.getVehicleState()); |
|
|
|
qw.and(wrapper -> wrapper.eq("bv.vehicleState", VehicleState.StockEnum.STOCK.getCode()).or().eq("bv.vehicleState", VehicleState.StockEnum.ING_STOCK.getCode()).or().eq("bv.vehicleState", VehicleState.StockEnum.DR_STOCK.getCode())); |
|
|
|
if (StringUtils.isNotBlank(params.getVehicleState())) { |
|
|
|
qw.eq("bv.vehicleState", params.getVehicleState()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(params.getVehicleAlias())){ |
|
|
|
qw.like("bv.modelName",params.getVehicleAlias()); |
|
|
|
if (StringUtils.isNotBlank(params.getVehicleAlias())) { |
|
|
|
qw.like("bv.modelName", params.getVehicleAlias()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(params.getConfigName())){ |
|
|
|
qw.like("bv.configName",params.getConfigName()); |
|
|
|
if (StringUtils.isNotBlank(params.getConfigName())) { |
|
|
|
qw.like("bv.configName", params.getConfigName()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(params.getVinNo())){ |
|
|
|
qw.like("bv.vinNo",params.getVinNo()); |
|
|
|
if (StringUtils.isNotBlank(params.getVinNo())) { |
|
|
|
qw.like("bv.vinNo", params.getVinNo()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(params.getCarColorKey())){ |
|
|
|
qw.eq("bmc.carColorKey",params.getCarColorKey()); |
|
|
|
if (StringUtils.isNotBlank(params.getCarColorKey())) { |
|
|
|
qw.eq("bmc.carColorKey", params.getCarColorKey()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(params.getLocation())){ |
|
|
|
qw.like("bv.locationName",params.getLocation()); |
|
|
|
if (StringUtils.isNotBlank(params.getLocation())) { |
|
|
|
qw.like("bv.locationName", params.getLocation()); |
|
|
|
} |
|
|
|
return baseMapper.vehicleCrmPageList(page, qw); |
|
|
|
} |
|
|
@ -1516,16 +1516,16 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
qw.and(wrapper -> wrapper.like("bvm.modelName", params.getModelNameAndCode()).or().like("bvm.vehicleTypeCode", params.getModelNameAndCode())); |
|
|
|
} |
|
|
|
// 车架号
|
|
|
|
if (StringUtils.isNotBlank(params.getVinNo())){ |
|
|
|
qw.like("bv.vinNo",params.getVinNo()); |
|
|
|
if (StringUtils.isNotBlank(params.getVinNo())) { |
|
|
|
qw.like("bv.vinNo", params.getVinNo()); |
|
|
|
} |
|
|
|
// 颜色
|
|
|
|
if (StringUtils.isNotBlank(params.getCarColorKey())){ |
|
|
|
qw.eq("bmc.carColorKey",params.getCarColorKey()); |
|
|
|
if (StringUtils.isNotBlank(params.getCarColorKey())) { |
|
|
|
qw.eq("bmc.carColorKey", params.getCarColorKey()); |
|
|
|
} |
|
|
|
// 存放地点
|
|
|
|
if (StringUtils.isNotBlank(params.getLocation())){ |
|
|
|
qw.eq("bv.location",params.getLocation()); |
|
|
|
if (StringUtils.isNotBlank(params.getLocation())) { |
|
|
|
qw.eq("bv.location", params.getLocation()); |
|
|
|
} |
|
|
|
if (params.getVinNoList().size() > 0) { |
|
|
|
qw.notIn("bv.vinNo", params.getVinNoList()); |
|
|
@ -1688,16 +1688,16 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
qw.and(wrapper -> wrapper.like("bvm.modelName", params.getModelNameAndCode()).or().like("bvm.vehicleTypeCode", params.getModelNameAndCode())); |
|
|
|
} |
|
|
|
// 车架号
|
|
|
|
if (StringUtils.isNotBlank(params.getVinNo())){ |
|
|
|
qw.like("bv.vinNo",params.getVinNo()); |
|
|
|
if (StringUtils.isNotBlank(params.getVinNo())) { |
|
|
|
qw.like("bv.vinNo", params.getVinNo()); |
|
|
|
} |
|
|
|
// 颜色
|
|
|
|
if (StringUtils.isNotBlank(params.getCarColorKey())){ |
|
|
|
qw.eq("bmc.carColorKey",params.getCarColorKey()); |
|
|
|
if (StringUtils.isNotBlank(params.getCarColorKey())) { |
|
|
|
qw.eq("bmc.carColorKey", params.getCarColorKey()); |
|
|
|
} |
|
|
|
// 存放地点
|
|
|
|
if (StringUtils.isNotBlank(params.getLocation())){ |
|
|
|
qw.eq("bv.location",params.getLocation()); |
|
|
|
if (StringUtils.isNotBlank(params.getLocation())) { |
|
|
|
qw.eq("bv.location", params.getLocation()); |
|
|
|
} |
|
|
|
if (params.getVinNoList().size() > 0) { |
|
|
|
qw.notIn("bv.vinNo", params.getVinNoList()); |
|
|
@ -1748,16 +1748,16 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
qw.and(wrapper -> wrapper.like("bvm.modelName", params.getModelNameAndCode()).or().like("bvm.vehicleTypeCode", params.getModelNameAndCode())); |
|
|
|
} |
|
|
|
// 车架号
|
|
|
|
if (StringUtils.isNotBlank(params.getVinNo())){ |
|
|
|
qw.like("bv.vinNo",params.getVinNo()); |
|
|
|
if (StringUtils.isNotBlank(params.getVinNo())) { |
|
|
|
qw.like("bv.vinNo", params.getVinNo()); |
|
|
|
} |
|
|
|
// 颜色
|
|
|
|
if (StringUtils.isNotBlank(params.getCarColorKey())){ |
|
|
|
qw.eq("bmc.carColorKey",params.getCarColorKey()); |
|
|
|
if (StringUtils.isNotBlank(params.getCarColorKey())) { |
|
|
|
qw.eq("bmc.carColorKey", params.getCarColorKey()); |
|
|
|
} |
|
|
|
// 存放地点
|
|
|
|
if (StringUtils.isNotBlank(params.getLocation())){ |
|
|
|
qw.eq("bv.location",params.getLocation()); |
|
|
|
if (StringUtils.isNotBlank(params.getLocation())) { |
|
|
|
qw.eq("bv.location", params.getLocation()); |
|
|
|
} |
|
|
|
if (params.getVinNoList().size() > 0) { |
|
|
|
qw.notIn("bv.vinNo", params.getVinNoList()); |
|
|
@ -1988,6 +1988,7 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
} |
|
|
|
return rb.success().setData(orderVoList); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean<List<AppBaseVehicleOrderVo>> selectAppListOne(String modelSid, String configSid, String orgSid) { |
|
|
|
ResultBean<List<AppBaseVehicleOrderVo>> rb = ResultBean.fireFail(); |
|
|
|
List<AppBaseVehicleOrderVo> orderVoList = new ArrayList<>(); |
|
|
@ -2295,6 +2296,7 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
baseVehicle.setVehicleStateValue(VehicleState.StockEnum.ING_STOCK.getRemarks()); |
|
|
|
if (save(baseVehicle)) { |
|
|
|
BaseVehicleCertificate baseVehicleCertificate = new BaseVehicleCertificate(); |
|
|
|
baseVehicleCertificate.setCarModel(baseVehicle.getVehMark()); |
|
|
|
baseVehicleCertificate.setVinNo(baseVehicle.getVinNo()); |
|
|
|
baseVehicleCertificate.setCertificateState(CertificState.CertificateState.CERSTATE_XN.getCode()); |
|
|
|
baseVehicleCertificate.setCertificateStateValue(CertificState.CertificateState.CERSTATE_XN.getRemarks()); |
|
|
@ -2337,6 +2339,7 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
|
|
|
|
if (save(baseVehicle)) { |
|
|
|
BaseVehicleCertificate baseVehicleCertificate = new BaseVehicleCertificate(); |
|
|
|
baseVehicleCertificate.setCarModel(baseVehicle.getVehMark()); |
|
|
|
baseVehicleCertificate.setVinNo(baseVehicle.getVinNo()); |
|
|
|
baseVehicleCertificate.setCertificateState(CertificState.CertificateState.CERSTATE_DZ.getCode()); |
|
|
|
baseVehicleCertificate.setCertificateStateValue(CertificState.CertificateState.CERSTATE_DZ.getRemarks()); |
|
|
@ -2392,7 +2395,7 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
new_baseVehicle.setManPurOrderTypeValue(ManPurOrderType.ManOrderType.NG_ORDER.getRemarks()); |
|
|
|
if (save(new_baseVehicle)) { |
|
|
|
BaseVehicleCertificate baseVehicleCertificate = new BaseVehicleCertificate(); |
|
|
|
|
|
|
|
baseVehicleCertificate.setCarModel(baseVehicle.getVehMark()); |
|
|
|
baseVehicleCertificate.setVinNo(new_baseVehicle.getVinNo()); |
|
|
|
baseVehicleCertificate.setCertificateState(CertificState.CertificateState.CERSTATE_XN.getCode()); |
|
|
|
baseVehicleCertificate.setCertificateStateValue(CertificState.CertificateState.CERSTATE_XN.getRemarks()); |
|
|
@ -3219,7 +3222,7 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
List<BaseChoiceVehicleVo> newRecords = new ArrayList<>(); |
|
|
|
for (BaseChoiceVehicleVo record : records) { |
|
|
|
ScmCollectionRebateVehDetailsVo scmCollectionRebateVehDetailsVo = scmCollectionRebateVehFeign.fetchByVehSid(record.getVinNo()); |
|
|
|
if (scmCollectionRebateVehDetailsVo == null){ |
|
|
|
if (scmCollectionRebateVehDetailsVo == null) { |
|
|
|
newRecords.add(record); |
|
|
|
} |
|
|
|
} |
|
|
@ -3249,22 +3252,22 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
qw.and(wrapper -> wrapper.like("bvm.modelName", params.getModelNameAndCode()).or().like("bvm.vehicleTypeCode", params.getModelNameAndCode())); |
|
|
|
} |
|
|
|
// 车架号
|
|
|
|
if (StringUtils.isNotBlank(params.getVinNo())){ |
|
|
|
qw.like("bv.vinNo",params.getVinNo()); |
|
|
|
if (StringUtils.isNotBlank(params.getVinNo())) { |
|
|
|
qw.like("bv.vinNo", params.getVinNo()); |
|
|
|
} |
|
|
|
// 颜色
|
|
|
|
if (StringUtils.isNotBlank(params.getCarColorKey())){ |
|
|
|
qw.eq("bmc.carColorKey",params.getCarColorKey()); |
|
|
|
if (StringUtils.isNotBlank(params.getCarColorKey())) { |
|
|
|
qw.eq("bmc.carColorKey", params.getCarColorKey()); |
|
|
|
} |
|
|
|
// 存放地点
|
|
|
|
if (StringUtils.isNotBlank(params.getLocation())){ |
|
|
|
qw.eq("bv.location",params.getLocation()); |
|
|
|
if (StringUtils.isNotBlank(params.getLocation())) { |
|
|
|
qw.eq("bv.location", params.getLocation()); |
|
|
|
} |
|
|
|
if (params.getVinNoList().size() > 0) { |
|
|
|
qw.notIn("bv.vinNo", params.getVinNoList()); |
|
|
|
} |
|
|
|
qw.eq("bv.isDelete", 0); |
|
|
|
qw.eq("bv.vehicleState",VehicleState.StockEnum.OUT_STOCK.getCode()); |
|
|
|
qw.eq("bv.vehicleState", VehicleState.StockEnum.OUT_STOCK.getCode()); |
|
|
|
} |
|
|
|
return baseMapper.vehicleCollectionPageList(page, qw); |
|
|
|
} |
|
|
|