|
|
@ -34,8 +34,8 @@ import com.yxt.anrui.base.api.basemodelconfig.AppCarConfigSummaryVo; |
|
|
|
import com.yxt.anrui.base.api.basepostprice.BaseOrderPostPriceQuery; |
|
|
|
import com.yxt.anrui.base.api.basepostprice.BaseOrderPostPriceVo; |
|
|
|
import com.yxt.anrui.base.api.basepostprice.BasePostPriceFeign; |
|
|
|
import com.yxt.anrui.base.api.basevehicle.AppVinsDetailsVo; |
|
|
|
import com.yxt.anrui.base.api.basevehicle.BaseVehicleFeign; |
|
|
|
import com.yxt.anrui.base.api.basevehicle.app.AppBaseVehicleOrderVo; |
|
|
|
import com.yxt.anrui.base.api.basevehiclepolicy.BaseVehiclePolicyFeign; |
|
|
|
import com.yxt.anrui.base.api.basevehiclepolicy.BaseVehiclePriceVo; |
|
|
|
import com.yxt.anrui.base.api.basevehmodelconfig.BaseVehmodelConfigFeign; |
|
|
@ -1317,7 +1317,7 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
AppCarInfo carInfo = new AppCarInfo(); |
|
|
|
List<AppReadyCar> readyCars = new ArrayList<>(); |
|
|
|
carInfo.setReadyCar(readyCars); |
|
|
|
List<AppNowCar> nowCars = new ArrayList<>(); |
|
|
|
List<AppNowCarVo> nowCars = new ArrayList<>(); |
|
|
|
carInfo.setNowCar(nowCars); |
|
|
|
vo.setCarInfo(carInfo); |
|
|
|
return vo; |
|
|
@ -1330,13 +1330,15 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
String userSid = appBusSaleOrderInitModelInfoQuery.getUserSid(); |
|
|
|
String special = appBusSaleOrderInitModelInfoQuery.getSpecial(); |
|
|
|
AppBusSaleOrderInitModelInfoVo vo = new AppBusSaleOrderInitModelInfoVo(); |
|
|
|
//选择的车型信息的数据
|
|
|
|
AppOrderInfo orderInfo = new AppOrderInfo(); |
|
|
|
//根据车型及配置查询除的现车及排产采购订单的列表数据
|
|
|
|
AppCarInfo appCarInfo = new AppCarInfo(); |
|
|
|
List<AppNowCar> appNowCars = new ArrayList<>(); |
|
|
|
//根据车型及配置查询除的现车列表
|
|
|
|
List<AppNowCarVo> appNowCars = new ArrayList<>(); |
|
|
|
List<AppReadyCar> appReadyCar = new ArrayList<>(); |
|
|
|
List<AppNowCarList> appNowCarLists = new ArrayList<>(); |
|
|
|
List<AppReadyCarList> appReadyCarLists = new ArrayList<>(); |
|
|
|
AppNowCar appNowCar = null; |
|
|
|
//根据车型及配置查询车型信息
|
|
|
|
ResultBean<AppCarConfigSummaryVo> appCarConfigSummaryVoResultBean = baseVehmodelConfigFeign.selectCarConfigSummary(modelSid, configSid, userSid); |
|
|
|
AppCarConfigSummaryVo data = appCarConfigSummaryVoResultBean.getData(); |
|
|
@ -1349,29 +1351,26 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
orderInfo.setNowCarList(appNowCarLists); |
|
|
|
orderInfo.setReadyCarList(appReadyCarLists); |
|
|
|
vo.setOrderInfo(orderInfo); |
|
|
|
//现车
|
|
|
|
List<AppVinsDetailsVo> appNowCarVos = baseVehicleFeign.getVins(modelSid, configSid).getData(); |
|
|
|
//排产
|
|
|
|
List<AppOrderReadyCar> appOrderReadyCars = busVehicleOrderFeign.getAppReadyCar(modelSid, configSid).getData(); |
|
|
|
//现车
|
|
|
|
if (appNowCarVos.size() > 0) { |
|
|
|
for (AppVinsDetailsVo appNowCarVo : appNowCarVos) { |
|
|
|
appNowCar = new AppNowCar(); |
|
|
|
appNowCar.setCarSid(appNowCarVo.getCarSid()); |
|
|
|
appNowCar.setAddress(appNowCarVo.getAddress()); |
|
|
|
appNowCar.setVin(appNowCarVo.getVin()); |
|
|
|
appNowCars.add(appNowCar); |
|
|
|
appCarInfo.setNowCar(appNowCars); |
|
|
|
//根据车型sid及配置sid查询现车列表
|
|
|
|
ResultBean<List<AppBaseVehicleOrderVo>> orderVoResultBean = baseVehicleFeign.selectAppList(modelSid, configSid); |
|
|
|
if (orderVoResultBean.getSuccess()) { |
|
|
|
List<AppBaseVehicleOrderVo> voList = orderVoResultBean.getData(); |
|
|
|
for (AppBaseVehicleOrderVo vehicleOrderVo : voList) { |
|
|
|
AppNowCarVo appNowCarVo = new AppNowCarVo(); |
|
|
|
BeanUtil.copyProperties(vehicleOrderVo, appNowCarVo); |
|
|
|
appNowCars.add(appNowCarVo); |
|
|
|
} |
|
|
|
} else { |
|
|
|
appCarInfo.setNowCar(appNowCars); |
|
|
|
} |
|
|
|
//排产采购订单
|
|
|
|
List<AppOrderReadyCar> appOrderReadyCars = busVehicleOrderFeign.getAppReadyCar(modelSid, configSid).getData(); |
|
|
|
//排产
|
|
|
|
BeanUtil.copyProperties(appReadyCar, appOrderReadyCars); |
|
|
|
vo.setCarInfo(appCarInfo); |
|
|
|
appCarInfo.setReadyCar(appReadyCar); |
|
|
|
return vo; |
|
|
|
} |
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public ResultBean deleteSaleOrder(String saleOrderSid, String userSid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|