|
@@ -836,20 +836,6 @@ public class ZiJinCrawlerRequestImpl implements ZiJinCrawlerRequest {
|
|
|
return baseInfo;
|
|
return baseInfo;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 构建车主信息对象
|
|
|
|
|
- *
|
|
|
|
|
- * @return ZiJinCrawlerQuotationRequest.CarOwnerInfo
|
|
|
|
|
- */
|
|
|
|
|
-// private ZiJinCrawlerQuotationRequest.CarOwnerInfo buildCarOwnerInfo() {
|
|
|
|
|
-// ZiJinCrawlerQuotationRequest.CarOwnerInfo carOwnerInfo = new ZiJinCrawlerQuotationRequest.CarOwnerInfo();
|
|
|
|
|
-// carOwnerInfo.setCarOwner("王婧");//车主姓名
|
|
|
|
|
-// carOwnerInfo.setOwnerIdentifyNumber("14092519990322002X");//车主证件号码
|
|
|
|
|
-// carOwnerInfo.setOwnerIdentifyType("01");//车主证件类型(01-身份证)
|
|
|
|
|
-// carOwnerInfo.setVehicleOwnerNature("1");//车主性质(1-个人)
|
|
|
|
|
-// return carOwnerInfo;
|
|
|
|
|
-// }
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 构建车主信息对象
|
|
* 构建车主信息对象
|
|
@@ -919,42 +905,6 @@ public class ZiJinCrawlerRequestImpl implements ZiJinCrawlerRequest {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// /**
|
|
|
|
|
-// * 构建被保险人列表
|
|
|
|
|
-// *
|
|
|
|
|
-// * @return List<ZiJinCrawlerQuotationRequest.InsuredList>
|
|
|
|
|
-// */
|
|
|
|
|
-// private List<ZiJinCrawlerQuotationRequest.InsuredList> buildInsuredList() {
|
|
|
|
|
-// List<ZiJinCrawlerQuotationRequest.InsuredList> insuredList = new ArrayList<>();
|
|
|
|
|
-//
|
|
|
|
|
-// // 第一个被保险人
|
|
|
|
|
-// ZiJinCrawlerQuotationRequest.InsuredList insured1 = new ZiJinCrawlerQuotationRequest.InsuredList();
|
|
|
|
|
-// insured1.setInsuredName("王婧");
|
|
|
|
|
-// insured1.setInsuredNature("3");
|
|
|
|
|
-// insured1.setIdentifyType("01");
|
|
|
|
|
-// insured1.setIdentifyNumber("14092519990322002X");
|
|
|
|
|
-// insured1.setSex("2");
|
|
|
|
|
-// insured1.setInsuredType("1");
|
|
|
|
|
-// insured1.setMobile("18840186946");
|
|
|
|
|
-// insured1.setPostCode("030053");
|
|
|
|
|
-// insured1.setInsuredFlag(2);
|
|
|
|
|
-// insuredList.add(insured1);
|
|
|
|
|
-//
|
|
|
|
|
-// // 第二个被保险人
|
|
|
|
|
-// ZiJinCrawlerQuotationRequest.InsuredList insured2 = new ZiJinCrawlerQuotationRequest.InsuredList();
|
|
|
|
|
-// insured2.setInsuredName("王婧");
|
|
|
|
|
-// insured2.setInsuredNature("3");
|
|
|
|
|
-// insured2.setIdentifyType("01");
|
|
|
|
|
-// insured2.setIdentifyNumber("14092519990322002X");
|
|
|
|
|
-// insured2.setSex("2");
|
|
|
|
|
-// insured2.setInsuredType("1");
|
|
|
|
|
-// insured2.setMobile("18840186946");
|
|
|
|
|
-// insured2.setPostCode("030053");
|
|
|
|
|
-// insured2.setInsuredFlag(1);
|
|
|
|
|
-// insuredList.add(insured2);
|
|
|
|
|
-// return insuredList;
|
|
|
|
|
-// }
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 构建被保险人列表
|
|
* 构建被保险人列表
|
|
|
*
|
|
*
|
|
@@ -1384,31 +1334,19 @@ public class ZiJinCrawlerRequestImpl implements ZiJinCrawlerRequest {
|
|
|
private List<ZiJinCrawlerQuotationRequest.CarPolicySubInfoList> buildCarPolicySubInfoList(QuoteVo quoteVo) {
|
|
private List<ZiJinCrawlerQuotationRequest.CarPolicySubInfoList> buildCarPolicySubInfoList(QuoteVo quoteVo) {
|
|
|
List<ZiJinCrawlerQuotationRequest.CarPolicySubInfoList> carPolicySubInfoList = new ArrayList<>();
|
|
List<ZiJinCrawlerQuotationRequest.CarPolicySubInfoList> carPolicySubInfoList = new ArrayList<>();
|
|
|
|
|
|
|
|
- List<AccidentalDrivingVo> accidentalDrivings = quoteVo.getAccidentalDrivings();
|
|
|
|
|
- if (CollectionUtils.isEmpty(accidentalDrivings)) {
|
|
|
|
|
|
|
+ if (CollectionUtils.isEmpty(quoteVo.getAccidentalDrivings())) {
|
|
|
return carPolicySubInfoList;
|
|
return carPolicySubInfoList;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // for (AccidentalDrivingVo drivingInsurance : accidentalDrivings) {
|
|
|
|
|
- // String rideRiskCode = drivingInsurance.getRiskCode();
|
|
|
|
|
- // // 目前只支持 rideRiskCode == "0733"(紫金驾驶人意外伤害保险)
|
|
|
|
|
- // if (AccidentHealthInsuranceProductsEnum.ZIJIN_JIASHI_REN_ACCIDENT.getCode().equals(rideRiskCode)) {
|
|
|
|
|
- // carPolicySubInfoList.add(buildRideRisk0733(drivingInsurance));
|
|
|
|
|
- // }
|
|
|
|
|
- // // 其他风险代码暂未配置,Python中会抛出异常
|
|
|
|
|
- // // 这里暂时跳过,不抛出异常
|
|
|
|
|
- // }
|
|
|
|
|
-
|
|
|
|
|
- // 默认选中"0767"->"紫金驾乘人员人生意外保险"
|
|
|
|
|
for (AccidentalDrivingVo accidentalDriving : quoteVo.getAccidentalDrivings()) {
|
|
for (AccidentalDrivingVo accidentalDriving : quoteVo.getAccidentalDrivings()) {
|
|
|
ZiJinCrawlerQuotationRequest.CarPolicySubInfoList carPolicySubInfo = new ZiJinCrawlerQuotationRequest.CarPolicySubInfoList();
|
|
ZiJinCrawlerQuotationRequest.CarPolicySubInfoList carPolicySubInfo = new ZiJinCrawlerQuotationRequest.CarPolicySubInfoList();
|
|
|
carPolicySubInfo.setPlanName(accidentalDriving.getProductName());
|
|
carPolicySubInfo.setPlanName(accidentalDriving.getProductName());
|
|
|
carPolicySubInfo.setInsureGradeNo("200000736004"); // 前端没传
|
|
carPolicySubInfo.setInsureGradeNo("200000736004"); // 前端没传
|
|
|
- carPolicySubInfo.setProductCode("0736");// 这个值前端传过来的是乱码200000736004%%0736%%%0
|
|
|
|
|
|
|
+ carPolicySubInfo.setProductCode(accidentalDriving.getProductCode());// 这个值前端传过来的是乱码200000736004%%0736%%%0
|
|
|
carPolicySubInfo.setPlanName(accidentalDriving.getProductName());
|
|
carPolicySubInfo.setPlanName(accidentalDriving.getProductName());
|
|
|
- carPolicySubInfo.setRiskCode("0736"); // 完了要调整编码,是否要转换
|
|
|
|
|
- carPolicySubInfo.setRiskName("全家安行保"); // 前端没传
|
|
|
|
|
- carPolicySubInfo.setSumAmount(ObjectUtils.isEmpty(accidentalDriving.getSumAmount()) ? 2350000 : (int) Double.parseDouble(accidentalDriving.getSumAmount()));
|
|
|
|
|
|
|
+ carPolicySubInfo.setRiskCode(accidentalDriving.getRiskCode()); // 完了要调整编码,是否要转换
|
|
|
|
|
+ carPolicySubInfo.setRiskName(accidentalDriving.getProductName()); // 前端没传
|
|
|
|
|
+ carPolicySubInfo.setSumAmount(ObjectUtils.isEmpty(accidentalDriving.getSumAmount()) ? 0 : (int) Double.parseDouble(accidentalDriving.getSumAmount()));
|
|
|
carPolicySubInfo.setQuantity(accidentalDriving.getQuantity() == 0 ? "0" : String.valueOf(accidentalDriving.getQuantity()));
|
|
carPolicySubInfo.setQuantity(accidentalDriving.getQuantity() == 0 ? "0" : String.valueOf(accidentalDriving.getQuantity()));
|
|
|
carPolicySubInfo.setIsUseInsured("1");
|
|
carPolicySubInfo.setIsUseInsured("1");
|
|
|
carPolicySubInfo.setSumPremium(ObjectUtils.isEmpty(accidentalDriving.getPremium()) ? 0 : (int) Double.parseDouble(accidentalDriving.getPremium()));
|
|
carPolicySubInfo.setSumPremium(ObjectUtils.isEmpty(accidentalDriving.getPremium()) ? 0 : (int) Double.parseDouble(accidentalDriving.getPremium()));
|
|
@@ -1478,76 +1416,6 @@ public class ZiJinCrawlerRequestImpl implements ZiJinCrawlerRequest {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 构建车辆信息对象
|
|
|
|
|
- *
|
|
|
|
|
- * @return ZiJinCrawlerQuotationRequest.VehicleInfo
|
|
|
|
|
- */
|
|
|
|
|
-// private ZiJinCrawlerQuotationRequest.VehicleInfo buildVehicleInfo() {
|
|
|
|
|
-// ZiJinCrawlerQuotationRequest.VehicleInfo vehicleInfo = new ZiJinCrawlerQuotationRequest.VehicleInfo();
|
|
|
|
|
-//
|
|
|
|
|
-// // 基础车辆信息
|
|
|
|
|
-// vehicleInfo.setActualValue(73905.6);
|
|
|
|
|
-// vehicleInfo.setAgreeActualValue(73905.6);
|
|
|
|
|
-// vehicleInfo.setBrandName("荣威CSA6452NEAQ多用途乘用车");
|
|
|
|
|
-// vehicleInfo.setCarKindCode("A0");
|
|
|
|
|
-// vehicleInfo.setCarKindDetailId("KA");
|
|
|
|
|
-// vehicleInfo.setCarLoanFlag("1");
|
|
|
|
|
-// vehicleInfo.setCertificateDate("2021-11-01");
|
|
|
|
|
-// vehicleInfo.setChgOwnerFlag("1");
|
|
|
|
|
-// vehicleInfo.setCompletekerbmass(1539);
|
|
|
|
|
-// vehicleInfo.setEcdemicVehicleFlag("0");
|
|
|
|
|
-// vehicleInfo.setEngineNo("DNSM9070392");
|
|
|
|
|
-//
|
|
|
|
|
-// // 日期相关
|
|
|
|
|
-// vehicleInfo.setEnrollDate("2021-11-01");
|
|
|
|
|
-// vehicleInfo.setUpdateEnrollDate("2021-11-01");
|
|
|
|
|
-// vehicleInfo.setIssueDate("2025-10-16");
|
|
|
|
|
-// vehicleInfo.setMakeDate("2025-10-16");
|
|
|
|
|
-// vehicleInfo.setMakeDateJQ("2025-10-16");
|
|
|
|
|
-//
|
|
|
|
|
-// // 车辆技术参数
|
|
|
|
|
-// vehicleInfo.setExhaustCapacity(1490);
|
|
|
|
|
-// vehicleInfo.setFuelType("0");
|
|
|
|
|
-// vehicleInfo.setFuelTypeJY("D1");
|
|
|
|
|
-// vehicleInfo.setNewEnergyFlag("0");
|
|
|
|
|
-// vehicleInfo.setPower("133");
|
|
|
|
|
-// vehicleInfo.setModelEnergyType("D1");
|
|
|
|
|
-//
|
|
|
|
|
-// // 牌照和车辆识别
|
|
|
|
|
-// vehicleInfo.setLicenseColorCode("01");
|
|
|
|
|
-// vehicleInfo.setLicenseKindCode("02");
|
|
|
|
|
-// vehicleInfo.setLicenseNo("晋HJW581");
|
|
|
|
|
-// vehicleInfo.setLoanVehicleFlag("0");
|
|
|
|
|
-// vehicleInfo.setModelCode("RWD1598SQQ");
|
|
|
|
|
-// vehicleInfo.setNoLicenseFlag("1");
|
|
|
|
|
-// vehicleInfo.setVehicleId("1");
|
|
|
|
|
-// vehicleInfo.setVinNo("LSJA24U69MS091895");
|
|
|
|
|
-//
|
|
|
|
|
-// // 车辆分类和用途
|
|
|
|
|
-// vehicleInfo.setSeatCount(5);
|
|
|
|
|
-// vehicleInfo.setUseNatureCode("85");
|
|
|
|
|
-// vehicleInfo.setOriCarKindName("K33");
|
|
|
|
|
-// vehicleInfo.setPlatVehicleCode("CRWARJUC0001");
|
|
|
|
|
-// vehicleInfo.setVehicleStyleUniqueId("800004584");
|
|
|
|
|
-//
|
|
|
|
|
-// // 价格和商业信息
|
|
|
|
|
-// vehicleInfo.setPurchasePrice("103800");
|
|
|
|
|
-// vehicleInfo.setSale4SFlag("0");
|
|
|
|
|
-// vehicleInfo.setOriPurchasePrice("103800");
|
|
|
|
|
-// vehicleInfo.setIsInvokeJingYou("1");
|
|
|
|
|
-//
|
|
|
|
|
-// // 型号名称
|
|
|
|
|
-// vehicleInfo.setPrintVehicleModelName("荣威CSA6452NEAQ多用途乘用车");
|
|
|
|
|
-// vehicleInfo.setAliasName("荣威RX5 PLUS 330TGI 1.5T TST国潮智臻版");
|
|
|
|
|
-// vehicleInfo.setOriBrandName("荣威CSA6452NEAQ多用途乘用车");
|
|
|
|
|
-// vehicleInfo.setOriModelName("荣威CSA6452NEAQ多用途乘用车");
|
|
|
|
|
-// vehicleInfo.setPrintModelName("荣威CSA6452NEAQ多用途乘用车");
|
|
|
|
|
-//
|
|
|
|
|
-// return vehicleInfo;
|
|
|
|
|
-// }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 构建车辆信息对象
|
|
* 构建车辆信息对象
|
|
|
*
|
|
*
|