|
|
@ -22,6 +22,7 @@ import com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo; |
|
|
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
|
|
|
import com.yxt.common.base.config.component.FileUploadComponent; |
|
|
|
import com.yxt.common.base.service.MybatisBaseService; |
|
|
|
import com.yxt.common.base.utils.DateUtils; |
|
|
|
import com.yxt.common.base.utils.PagerUtil; |
|
|
|
import com.yxt.common.base.utils.StringUtils; |
|
|
|
import com.yxt.common.core.query.PagerQuery; |
|
|
@ -30,10 +31,8 @@ import com.yxt.common.core.vo.PagerVo; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import javax.xml.crypto.Data; |
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
/** |
|
|
|
* Project: anrui-base(安瑞基础信息模块) <br/> |
|
|
@ -488,6 +487,11 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
String useOrg = sysOrganizationFeign.getUseOrgByUserSid(userSid).getData().getSid(); |
|
|
|
|
|
|
|
AppCurrentCarDetailConfigVo configDetailVo = baseMapper.getAppModelConfig(modelSid, configSid, useOrg); |
|
|
|
String date = configDetailVo.getDate(); |
|
|
|
Date date1 = DateUtils.dateStrConvertDate(date, "yyyy-MM-dd"); |
|
|
|
long time = date1.getTime(); |
|
|
|
configDetailVo.setDateLong(time); |
|
|
|
|
|
|
|
//车型详细配置数据
|
|
|
|
AppCurrentCarDetailVo currentCarVo = baseMapper.getAppCurrentCarDetailConfigVo(modelSid, configSid, useOrg); |
|
|
|
List<List<ConfigInfoSpanSize>> modelInfoList = new ArrayList<>(); |
|
|
@ -747,7 +751,7 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
} |
|
|
|
IPage<AppVehicleModelPriceQuery> page = PagerUtil.queryToPage(pagerQuery); |
|
|
|
QueryWrapper<AppVehicleModelPriceVo> qw = appExistingCarBuildQW(pagerQuery.getParams()); |
|
|
|
IPage<AppVehicleModelPriceVo> iPage = baseMapper.getModelList(page, qw); |
|
|
|
IPage<AppVehicleModelPriceVo> iPage = baseMapper.getModelList(page, qw, data.getSid()); |
|
|
|
// 3、 查询更多配置(其它分公司)
|
|
|
|
for (AppVehicleModelPriceVo record : iPage.getRecords()) { |
|
|
|
String sid = record.getModelSid(); |
|
|
@ -757,7 +761,7 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
if (list.size() > 0) { |
|
|
|
String s = list.get(0); |
|
|
|
record.setModelImage(s); |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
record.setModelImage(""); |
|
|
|
} |
|
|
|
String useOrg = data.getSid(); |
|
|
@ -803,6 +807,9 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
if (StringUtils.isNotBlank(pagerQuery.getHorsepower())) { // 马力
|
|
|
|
qw.eq("bvm.powerValue", pagerQuery.getHorsepower()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(pagerQuery.getBrand())) { // 品牌
|
|
|
|
qw.eq("bvm.brandName", pagerQuery.getBrand()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(pagerQuery.getUseOrg())) { // 分公司
|
|
|
|
qw.eq("bvc.useOrgSid", pagerQuery.getUseOrg()); |
|
|
|
} |
|
|
@ -1254,14 +1261,20 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
if (StringUtils.isNotBlank(query.getNames())) { |
|
|
|
qw.like("bv.vinNo", query.getNames());//车架号
|
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getNames())) { |
|
|
|
qw.like("bv.vehicleStateValue", query.getNames());//状态
|
|
|
|
// if (StringUtils.isNotBlank(query.getNames())) {
|
|
|
|
// qw.eq("bv.vehicleStateValue", query.getNames());//状态
|
|
|
|
// }
|
|
|
|
// if (StringUtils.isNotBlank(query.getNames())) {
|
|
|
|
// qw.eq("bmc.carColor", query.getNames());//车身颜色
|
|
|
|
// }
|
|
|
|
// if (StringUtils.isNotBlank(query.getNames())) {
|
|
|
|
// qw.eq("bv.location", query.getNames());//存放地点
|
|
|
|
// }
|
|
|
|
if (StringUtils.isNotBlank(query.getModelSid())) {// 车型
|
|
|
|
qw.eq("bv.modelSid", query.getModelSid()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getNames())) { |
|
|
|
qw.like("bmc.carColor", query.getNames());//车身颜色
|
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getNames())) { |
|
|
|
qw.like("bv.location", query.getNames());//存放地点
|
|
|
|
if (StringUtils.isNotBlank(query.getConfigSid())) {//分公司
|
|
|
|
qw.eq("bv.modelConfigSid", query.getConfigSid()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getUseOrg())) {//分公司
|
|
|
|
qw.eq("bv.useOrg", query.getUseOrg()); |
|
|
@ -1300,7 +1313,7 @@ public class BaseVehicleService extends MybatisBaseService<BaseVehicleMapper, Ba |
|
|
|
QueryWrapper<AppBaseNowProduceCarVo> qw = new QueryWrapper<>(); |
|
|
|
if (query != null) { |
|
|
|
if (StringUtils.isNotBlank(query.getNames())) { |
|
|
|
qw.like("bvo.orderStatus", query.getNames());//订单状态
|
|
|
|
qw.like("bvo.orderNo", query.getNames());// 订单编号
|
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getUseOrg())) {//分公司
|
|
|
|
qw.eq("bvo.useOrg", query.getUseOrg()); |
|
|
|