|
@@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import com.ydtech.constants.enums.InsuranceRisk;
|
|
import com.ydtech.constants.enums.InsuranceRisk;
|
|
|
import com.ydtech.modules.ins.model.vo.CarInfoVo;
|
|
import com.ydtech.modules.ins.model.vo.CarInfoVo;
|
|
|
import com.ydtech.modules.ins.model.vo.CustomerInfoVo;
|
|
import com.ydtech.modules.ins.model.vo.CustomerInfoVo;
|
|
|
-import com.ydtech.modules.ins.model.vo.KindInfoVo;
|
|
|
|
|
import com.ydtech.modules.ins.model.vo.RiskInfoVo;
|
|
import com.ydtech.modules.ins.model.vo.RiskInfoVo;
|
|
|
|
|
+import com.ydtech.modules.order.entity.api.guoren.constants.CategoriesOfVehicles;
|
|
|
import com.ydtech.modules.order.entity.api.guoren.constants.ClauseTypeSystem;
|
|
import com.ydtech.modules.order.entity.api.guoren.constants.ClauseTypeSystem;
|
|
|
import com.ydtech.modules.order.entity.api.guoren.constants.FuelType;
|
|
import com.ydtech.modules.order.entity.api.guoren.constants.FuelType;
|
|
|
import com.ydtech.modules.order.entity.api.guoren.constants.UseNatureCodeMapping;
|
|
import com.ydtech.modules.order.entity.api.guoren.constants.UseNatureCodeMapping;
|
|
@@ -17,7 +17,6 @@ import com.ydtech.utils.StringUtils;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
@@ -47,9 +46,11 @@ public class CarPriceReq {
|
|
|
CustomerInfoVo ownerInfo = yaQuoteInfoVo.getOwnerInfo();
|
|
CustomerInfoVo ownerInfo = yaQuoteInfoVo.getOwnerInfo();
|
|
|
List<RiskInfoVo> riskList = yaQuoteInfoVo.getRiskList();
|
|
List<RiskInfoVo> riskList = yaQuoteInfoVo.getRiskList();
|
|
|
//交强
|
|
//交强
|
|
|
- RiskInfoVo ciRiskInfo = riskList.stream().filter(x -> x.getRiskCode().equals(InsuranceRisk.TRAFFIC.getCode())).findFirst().orElse(null);
|
|
|
|
|
|
|
+ RiskInfoVo ciRiskInfo =
|
|
|
|
|
+ riskList.stream().filter(x -> x.getRiskCode().equals(InsuranceRisk.TRAFFIC.getCode())).findFirst().orElse(null);
|
|
|
//商业
|
|
//商业
|
|
|
- RiskInfoVo biRiskInfo = riskList.stream().filter(x -> x.getRiskCode().equals(InsuranceRisk.BUSINESS.getCode())).findFirst().orElse(null);
|
|
|
|
|
|
|
+ RiskInfoVo biRiskInfo =
|
|
|
|
|
+ riskList.stream().filter(x -> x.getRiskCode().equals(InsuranceRisk.BUSINESS.getCode())).findFirst().orElse(null);
|
|
|
CarPriceReq req = new CarPriceReq();
|
|
CarPriceReq req = new CarPriceReq();
|
|
|
BcDTO bc = new BcDTO();
|
|
BcDTO bc = new BcDTO();
|
|
|
bc.setLoginComCode(channelInfo.getComCode());
|
|
bc.setLoginComCode(channelInfo.getComCode());
|
|
@@ -119,11 +120,11 @@ public class CarPriceReq {
|
|
|
prpTitemCar.setProductType("0101");
|
|
prpTitemCar.setProductType("0101");
|
|
|
|
|
|
|
|
// 新能源车
|
|
// 新能源车
|
|
|
- if(FuelType.getEnergy().contains(vinQ.getFuelType())){
|
|
|
|
|
|
|
+ if (FuelType.getEnergy().contains(vinQ.getFuelType())) {
|
|
|
prpTitemCar.setClauseTypeSystem(ClauseTypeSystem.CTS_05.getCode());
|
|
prpTitemCar.setClauseTypeSystem(ClauseTypeSystem.CTS_05.getCode());
|
|
|
prpTitemCar.setTermsSystem(ClauseTypeSystem.CTS_05.getCode());
|
|
prpTitemCar.setTermsSystem(ClauseTypeSystem.CTS_05.getCode());
|
|
|
prpTitemCar.setNewEnergyFlag("1");
|
|
prpTitemCar.setNewEnergyFlag("1");
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
prpTitemCar.setClauseTypeSystem(ClauseTypeSystem.CTS_04.getCode());
|
|
prpTitemCar.setClauseTypeSystem(ClauseTypeSystem.CTS_04.getCode());
|
|
|
prpTitemCar.setTermsSystem(ClauseTypeSystem.CTS_04.getCode());
|
|
prpTitemCar.setTermsSystem(ClauseTypeSystem.CTS_04.getCode());
|
|
|
prpTitemCar.setNewEnergyFlag("0");
|
|
prpTitemCar.setNewEnergyFlag("0");
|
|
@@ -133,7 +134,6 @@ public class CarPriceReq {
|
|
|
prpTitemCar.setBrandName(vinQ.getBrandNameBC());
|
|
prpTitemCar.setBrandName(vinQ.getBrandNameBC());
|
|
|
prpTitemCar.setCertifiCateDate(carInfo.getIssueDate());
|
|
prpTitemCar.setCertifiCateDate(carInfo.getIssueDate());
|
|
|
|
|
|
|
|
-
|
|
|
|
|
//使用性质 8A 家庭自用
|
|
//使用性质 8A 家庭自用
|
|
|
String vehicleUse = carInfo.getVehicleUse();
|
|
String vehicleUse = carInfo.getVehicleUse();
|
|
|
UseNatureCodeMapping useNatureCodeMapping = Enum.valueOf(UseNatureCodeMapping.class, UseNatureCodeMapping.TITLE + vehicleUse);
|
|
UseNatureCodeMapping useNatureCodeMapping = Enum.valueOf(UseNatureCodeMapping.class, UseNatureCodeMapping.TITLE + vehicleUse);
|
|
@@ -147,7 +147,10 @@ public class CarPriceReq {
|
|
|
prpTitemCar.setTonCountlb(vinQ.getTonCount());
|
|
prpTitemCar.setTonCountlb(vinQ.getTonCount());
|
|
|
// prpTitemCar.setTonCountlb("0");
|
|
// prpTitemCar.setTonCountlb("0");
|
|
|
prpTitemCar.setVinClick("0");
|
|
prpTitemCar.setVinClick("0");
|
|
|
- prpTitemCar.setMaincarKindCode("A");
|
|
|
|
|
|
|
+
|
|
|
|
|
+ String cimodelclass = carInfo.getCimodelclass();
|
|
|
|
|
+ CategoriesOfVehicles categoriesOfVehicles = Enum.valueOf(CategoriesOfVehicles.class, CategoriesOfVehicles.TITLE + cimodelclass);
|
|
|
|
|
+ prpTitemCar.setMaincarKindCode(categoriesOfVehicles.getCode());
|
|
|
|
|
|
|
|
//过户日期
|
|
//过户日期
|
|
|
prpTitemCar.setChgOwnerDate(carInfo.getTransferDate());
|
|
prpTitemCar.setChgOwnerDate(carInfo.getTransferDate());
|