|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.yxt.anrui.scm.biz.scmapplyinbound; |
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
@ -387,7 +388,7 @@ public class ScmApplyInboundService extends MybatisBaseService<ScmApplyInboundMa |
|
|
|
} |
|
|
|
BaseVehicleDto baseVehicleDto = new BaseVehicleDto(); |
|
|
|
baseVehicleDto.setVinNo(scmApplyInboundVehicleDto.getVinNo()); |
|
|
|
baseVehicleDto.setModelSid(scmApplyInboundVehicleDto.getModelSid()); |
|
|
|
baseVehicleDto.setModelSid(dto.getModelSid()); |
|
|
|
baseVehicleDto.setModelName(dto.getModelName()); |
|
|
|
String userSid = dto.getUserSid(); |
|
|
|
ResultBean<String> pathSidByUserSid = sysStaffOrgFeign.getPathSidByUserSid(userSid); |
|
|
@ -396,17 +397,19 @@ public class ScmApplyInboundService extends MybatisBaseService<ScmApplyInboundMa |
|
|
|
baseVehicleDto.setModelConfigSid(dto.getConfigSid()); |
|
|
|
baseVehicleDto.setConfigName(dto.getConfigName()); |
|
|
|
baseVehicleDto.setInsideCode(dto.getInsideCode()); |
|
|
|
baseVehicleDto.setOrderingNo(dto.getPurchaseOrderNo()); |
|
|
|
baseVehicleDto.setSettlementStatus("0"); |
|
|
|
baseVehicleDto.setLockedState("0"); |
|
|
|
baseVehicleDto.setLockedStateValue("未锁定"); |
|
|
|
baseVehicleDto.setVehicleState("0003"); |
|
|
|
baseVehicleDto.setVehicleStateValue("在途"); |
|
|
|
baseVehicleDto.setManPurOrderTypeKey("001"); |
|
|
|
baseVehicleDto.setManPurOrderTypeValue("排产订单"); |
|
|
|
//baseVehicleDto.setContractPrice(Integer.parseInt(dto.getContractPrice().toString()));
|
|
|
|
//baseVehicleDto.setFreight(Integer.parseInt(dto.getOnceFreight().subtract(dto.getSecondaryFreight()).toString()));
|
|
|
|
//baseVehicleDto.setCostPriced(Integer.parseInt(dto.getCostPrice().toString()));
|
|
|
|
//baseVehicleDto.setPriceDate(dto.getPriceDate());
|
|
|
|
//baseVehicleDto.setDepartureDate(dto.getDepartureDate());
|
|
|
|
baseVehicleDto.setContractPrice(0);//Integer.parseInt(dto.getContractPrice().toString())
|
|
|
|
baseVehicleDto.setFreight(0);//Integer.parseInt(dto.getOnceFreight().subtract(dto.getSecondaryFreight()).toString())
|
|
|
|
baseVehicleDto.setCostPrice(0);//Integer.parseInt(dto.getCostPrice().toString())
|
|
|
|
baseVehicleDto.setPriceDate(DateUtil.today());//dto.getPriceDate()
|
|
|
|
baseVehicleDto.setDepartureDate(DateUtil.today());//dto.getDepartureDate()
|
|
|
|
baseVehicleDtos.add(baseVehicleDto); |
|
|
|
} |
|
|
|
baseVehicleFeign.saveAll(baseVehicleDtos); |
|
|
|