|
|
@@ -1,6 +1,7 @@
|
|
|
package com.jzg.quotation.bohai.crawler.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
+import com.jzg.commons.constants.dict.InsOrderStatusEnum;
|
|
|
import com.jzg.commons.entity.quote.vo.AttributionInformationVo;
|
|
|
import com.jzg.commons.entity.quote.vo.CustomerInfoVo;
|
|
|
import com.jzg.commons.entity.quote.vo.QuoteVo;
|
|
|
@@ -57,6 +58,8 @@ public class BoHaiCrawlerRequestImpl implements BoHaiCrawlerRequest {
|
|
|
|
|
|
private final BoHaiCrawlerQuoteProcessService boHaiCrawlerQuoteProcessService;
|
|
|
|
|
|
+ private static final String TOKEN = "114050281-8a2c762d10a0194b65abd37e760f18e5";
|
|
|
+
|
|
|
/**
|
|
|
* 登录
|
|
|
*
|
|
|
@@ -120,7 +123,7 @@ public class BoHaiCrawlerRequestImpl implements BoHaiCrawlerRequest {
|
|
|
BoHaiCrawlerQuotationRequest2.Head head = new BoHaiCrawlerQuotationRequest2.Head();
|
|
|
head.setTransType("Req");
|
|
|
head.setTransCode("PremiumProposal");
|
|
|
- head.setToken("114050281-4668f68536a7e145b87f94fd14449d77");
|
|
|
+ head.setToken(TOKEN);
|
|
|
boHaiCrawlerQuotationRequest2.setHead(head);
|
|
|
|
|
|
// 使用 setter 方式设置 businessData、insuredList、riskList、以及登录信息
|
|
|
@@ -311,13 +314,15 @@ public class BoHaiCrawlerRequestImpl implements BoHaiCrawlerRequest {
|
|
|
insured1.setIdentifyStartDate("");
|
|
|
insured1.setIdentifyEndDate("");
|
|
|
insured1.setCarInsuredRelation("");
|
|
|
-
|
|
|
insured1.setBusinessSort("15");
|
|
|
insured1.setLinkerName("");
|
|
|
+ //设置为空
|
|
|
+ insured1.setIsSpecialDInsured("");
|
|
|
insured1.setSpecialDInsuredName("");
|
|
|
insured1.setSpecialDInsuredIDType("");
|
|
|
insured1.setSpecialDInsuredID("");
|
|
|
insured1.setNoSpecialDInsuredP("");
|
|
|
+ insured1.setBenefitFlag("");
|
|
|
insured1.setIsGreenIndustryFlag("");
|
|
|
insured1.setGreenIndustryFCode("");
|
|
|
insured1.setGreenIndustrySCode("");
|
|
|
@@ -396,10 +401,17 @@ public class BoHaiCrawlerRequestImpl implements BoHaiCrawlerRequest {
|
|
|
insured3.setCarInsuredRelation("");
|
|
|
insured3.setBusinessSort("15");
|
|
|
insured3.setLinkerName("");
|
|
|
+ //设置为空
|
|
|
+ insured3.setIsSpecialDInsured("");
|
|
|
insured3.setSpecialDInsuredName("");
|
|
|
insured3.setSpecialDInsuredIDType("");
|
|
|
insured3.setSpecialDInsuredID("");
|
|
|
insured3.setNoSpecialDInsuredP("");
|
|
|
+ insured3.setBenefitFlag("");
|
|
|
+ insured3.setIsGreenIndustryFlag("");
|
|
|
+ insured3.setGreenIndustryFCode("");
|
|
|
+ insured3.setGreenIndustrySCode("");
|
|
|
+ insured3.setGreenIndustryTCode("");
|
|
|
insuredList.add(insured3);
|
|
|
businessData.setInsuredList(insuredList);
|
|
|
|
|
|
@@ -415,24 +427,60 @@ public class BoHaiCrawlerRequestImpl implements BoHaiCrawlerRequest {
|
|
|
jqItem.setKindCode("BZ");
|
|
|
jqItem.setKindName("机动车交通事故责任强制保险");
|
|
|
jqItem.setOperateType("");
|
|
|
+ jqItem.setStartDate("2025-10-10");
|
|
|
+ jqItem.setStartHour("");
|
|
|
+ jqItem.setEndDate("2026-10-09");
|
|
|
+ jqItem.setEndHour("");
|
|
|
+ jqItem.setAmount("");
|
|
|
+ jqItem.setUnitAmount("");
|
|
|
+ jqItem.setQuantity("");
|
|
|
+ jqItem.setModeCode("");
|
|
|
+ jqItem.setModeName("");
|
|
|
jqItem.setShortRateFlag("2");
|
|
|
+ jqItem.setShortRate("");
|
|
|
jqItem.setCalculateFlag("Y");
|
|
|
+ jqItem.setRate("");
|
|
|
jqItem.setNotDeductibleFlag("0");
|
|
|
+ jqItem.setDeductibleRatio("");
|
|
|
+ jqItem.setDiscount("");
|
|
|
+ jqItem.setAdjustRate("");
|
|
|
+ jqItem.setValue("");
|
|
|
jqItemKinds.add(jqItem);
|
|
|
jqRisk.setItemKindList(jqItemKinds);
|
|
|
|
|
|
BoHaiCrawlerQuotationRequest2.RiskMainInfo jqMain = new BoHaiCrawlerQuotationRequest2.RiskMainInfo();
|
|
|
jqMain.setIsDrivingFee("1");
|
|
|
jqMain.setAgriflag("012001");
|
|
|
+ jqMain.setClassCode("");
|
|
|
jqMain.setRiskCode("0330");
|
|
|
+ jqMain.setContractNo("");
|
|
|
+ jqMain.setDiscount("");
|
|
|
jqMain.setCurrency("CNY");
|
|
|
+ jqMain.setLastPolicyNo("");
|
|
|
jqMain.setRenewalFlag("0");
|
|
|
jqMain.setStartDate("2025-10-10");
|
|
|
jqMain.setStartHour("0");
|
|
|
jqMain.setEndDate("2026-10-09");
|
|
|
jqMain.setEndHour("24");
|
|
|
+ jqMain.setImmediatelyActiveFlag("");
|
|
|
+ jqMain.setActiveStartTime("");
|
|
|
+ jqMain.setActiveEndTime("");
|
|
|
+ jqMain.setQuerySequenceNo("");
|
|
|
+ jqMain.setConfirmSequenceNo("");
|
|
|
+ jqMain.setSpecialContractFlag("");
|
|
|
+ jqMain.setSpecialContractSummary("");
|
|
|
jqMain.setNoneFluctuateFlag("N1");
|
|
|
+ jqMain.setNcdCoefficient("");
|
|
|
jqMain.setChannelCoefficient("1.00");
|
|
|
+ jqMain.setUnderwritingCoefficient("");
|
|
|
+ jqMain.setAdjustCoefficient("");
|
|
|
+ jqMain.setTrafficViolationCoefficient("");
|
|
|
+ jqMain.setChannelCoefficientVariation("");
|
|
|
+ jqMain.setUnderwritingCoefficientVariation("");
|
|
|
+ jqMain.setIfNeedQuote("");
|
|
|
+ jqMain.setHopeRate("");
|
|
|
+ jqMain.setProposalNo("");
|
|
|
+
|
|
|
jqMain.setCustomerCoefficient("364001");
|
|
|
jqMain.setFleetCoefficient("365000");
|
|
|
jqMain.setSignDate("2025-10-09");
|
|
|
@@ -518,6 +566,10 @@ public class BoHaiCrawlerRequestImpl implements BoHaiCrawlerRequest {
|
|
|
|
|
|
BoHaiCrawlerQuotationResponse boHaiCrawlerQuotationResponse = boHaiCrawlerRequestComponent.quotation(boHaiCrawlerQuotationRequest2, headers);
|
|
|
log.info("boHaiCrawlerQuotationResponse参数的值:{}", JSON.toJSONString(boHaiCrawlerQuotationResponse));
|
|
|
+ if(boHaiCrawlerQuotationResponse.getData() == null){
|
|
|
+ //报价失败
|
|
|
+ return BoHaiCrawlerQuoteResultsVoBuild.buildQuoteFailResultsVo(boHaiCrawlerQuotationResponse);
|
|
|
+ }
|
|
|
|
|
|
// 4.0 处理报价失败
|
|
|
if (!ResponseCode.R_Z00001.equals(boHaiCrawlerQuotationResponse.getResponseCode())) {
|
|
|
@@ -530,14 +582,618 @@ public class BoHaiCrawlerRequestImpl implements BoHaiCrawlerRequest {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 核保
|
|
|
+ * @param underwritingVo
|
|
|
+ * @return UnderwritingResultsVo
|
|
|
+ */
|
|
|
@Override
|
|
|
public UnderwritingResultsVo underwriting(UnderwritingVo underwritingVo) {
|
|
|
- /*AttributionInformationVo attributionInformationVo = underwritingVo.getOrder().getAttributionInformationVo();
|
|
|
+ AttributionInformationVo attributionInformationVo = underwritingVo.getOrder().getAttributionInformationVo();
|
|
|
BoHaiCrawlerOrder boHaiCrawlerOrder = boHaiCrawlerOrderService.getById(underwritingVo.getOrder().getOrdersNo());
|
|
|
HttpHeaders headers = boHaiCrawlerQuoteProcessService.getHeaders(attributionInformationVo.getUsername(), attributionInformationVo.getPassword());
|
|
|
|
|
|
- UnderwritingRequest underwritingRequest = new UnderwritingRequest(attributionInformationVo.getConfigInfo(), boHaiCrawlerOrder.getOrderNo());
|
|
|
- BoHaiUnderwritingResponse boHaiUnderwritingResponse = boHaiCrawlerRequestComponent.underwriting(underwritingRequest, headers);
|
|
|
+ //UnderwritingRequest underwritingRequest = new UnderwritingRequest(attributionInformationVo.getConfigInfo(), boHaiCrawlerOrder.getOrderNo());
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.Head head = new BoHaiCrawlerUnderwritingRequest2.Head();
|
|
|
+ head.setTransCode("Save");
|
|
|
+ head.setTransType("Req");
|
|
|
+ head.setToken("114050281-1a2148bdef013e76e47ba4944a4df66b");
|
|
|
+
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.BusinessData businessData = new BoHaiCrawlerUnderwritingRequest2.BusinessData();
|
|
|
+
|
|
|
+ // 设置业务主信息
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.BusinessMainInfo mainInfo = new BoHaiCrawlerUnderwritingRequest2.BusinessMainInfo();
|
|
|
+ mainInfo.setReneClientType("");
|
|
|
+ mainInfo.setDriModelScoreReqNo("");
|
|
|
+ mainInfo.setPcIds("");
|
|
|
+ mainInfo.setFixPriceStatus("1");
|
|
|
+ mainInfo.setPraID("");
|
|
|
+ mainInfo.setFixPriceRuleId("AF0492EF636949E7A8DBDB99D9FA1C3C");
|
|
|
+ mainInfo.setFixPriceType("Y2");
|
|
|
+ mainInfo.setChdId("");
|
|
|
+ mainInfo.setRiskControlFlag("");
|
|
|
+ mainInfo.setFeeType("");
|
|
|
+ mainInfo.setFixPriceNo("75D0D01AEBE14733AD0A91E2583E03AC");
|
|
|
+ mainInfo.setExpectDiscount("0.0");
|
|
|
+ mainInfo.setCommissionFlag("0");
|
|
|
+ mainInfo.setEntireInitialDiscount("1.0");
|
|
|
+ mainInfo.setEntireRecommenDiscount("0");
|
|
|
+ mainInfo.setEntireFloatDiscount("0");
|
|
|
+ mainInfo.setMainCarKindBC("0");
|
|
|
+ mainInfo.setResourceTypeCode("004");
|
|
|
+ mainInfo.setBusinessNo("O140703302025063788");
|
|
|
+ mainInfo.setBusinessType("O");
|
|
|
+ mainInfo.setRelatedNo("");
|
|
|
+ mainInfo.setRelatedType("");
|
|
|
+ mainInfo.setComCode("14070201");
|
|
|
+ mainInfo.setBusinessCategories1("1");
|
|
|
+ mainInfo.setBusinessCategories2("2");
|
|
|
+ mainInfo.setBusinessCategories3("A06");
|
|
|
+ mainInfo.setBusinessCategories4("");
|
|
|
+ mainInfo.setIdentifyType("006");
|
|
|
+ mainInfo.setIdentifyDetail("00001");
|
|
|
+ mainInfo.setIdentifyCode("");
|
|
|
+ mainInfo.setIdentifyVip("");
|
|
|
+ mainInfo.setHandlerCode("114050281");
|
|
|
+ mainInfo.setHandlerPhone("18903446657");
|
|
|
+ mainInfo.setAgentCode("M140301000249");
|
|
|
+ mainInfo.setAgreementNo("C142024004345_2");
|
|
|
+ mainInfo.setSales("");
|
|
|
+ mainInfo.setProfessionalNo("");
|
|
|
+ mainInfo.setCityCode("140700");
|
|
|
+ mainInfo.setCountyCode("140781");
|
|
|
+ mainInfo.setVisitInsuredFlag("0");
|
|
|
+ mainInfo.setPayInfoAuthenticationCheckable("1");
|
|
|
+ mainInfo.setPayInfoAuthenticationComment("");
|
|
|
+ mainInfo.setPayMethod("01");
|
|
|
+ mainInfo.setGoalInsuredFlag("2");
|
|
|
+ mainInfo.setIntermediaryAgentCode("");
|
|
|
+ mainInfo.setIntermediaryAgentName("");
|
|
|
+ mainInfo.setUnderUnit("");
|
|
|
+ mainInfo.setArgueSolution("1");
|
|
|
+ mainInfo.setArbitBoardName("");
|
|
|
+ mainInfo.setOperatorCode("114050282");
|
|
|
+ mainInfo.setOperateDate("2025-10-11");
|
|
|
+ mainInfo.setMakeCom("14070201");
|
|
|
+ mainInfo.setInputDate("2025-10-11");
|
|
|
+ mainInfo.setInputHour("9");
|
|
|
+ mainInfo.setUpdaterCode("114050281");
|
|
|
+ mainInfo.setUpdateDate("2025-10-11");
|
|
|
+ mainInfo.setUpdateHour("9");
|
|
|
+ mainInfo.setSignDate("2025-10-11");
|
|
|
+ mainInfo.setRemark("");
|
|
|
+ mainInfo.setRemoteAgentFlag("0");
|
|
|
+ mainInfo.setBandCode("");
|
|
|
+ mainInfo.setCardFlag("");
|
|
|
+ mainInfo.setRemoteFlag("");
|
|
|
+ mainInfo.setCardNo("");
|
|
|
+ mainInfo.setSaleSys("");
|
|
|
+ mainInfo.setCancelFlag("0");
|
|
|
+ mainInfo.setSumAmount("");
|
|
|
+ mainInfo.setSumDiscount("0.0");
|
|
|
+ mainInfo.setSumPremium("1100.0");
|
|
|
+ mainInfo.setEmployeeComCode("");
|
|
|
+ mainInfo.setVerificationCode("");
|
|
|
+ mainInfo.setConfigInfoId("");
|
|
|
+ mainInfo.setUpdateStartTime("2025-10-11 09:59:22");
|
|
|
+ mainInfo.setProposalStartTime("2025-10-11 09:59:22");
|
|
|
+ mainInfo.setIsInsureFlag("0");
|
|
|
+ mainInfo.setSalerIdentifyNumber("142402199410021540");
|
|
|
+ mainInfo.setUuid("");
|
|
|
+ mainInfo.setCustomerNo("");
|
|
|
+ mainInfo.setDxOperatorCode("");
|
|
|
+ mainInfo.setBusinessAttribute("2");
|
|
|
+ mainInfo.setChannelType("");
|
|
|
+ mainInfo.setIsAffiliTransaction("0");
|
|
|
+ mainInfo.setResubmit("");
|
|
|
+ mainInfo.setSdId("");
|
|
|
+ mainInfo.setTbMode("");
|
|
|
+ mainInfo.setIsNewImage("1");
|
|
|
+ mainInfo.setBussUnitCodeCI("1866776104808177747");
|
|
|
+ mainInfo.setBussUnitCode("");
|
|
|
+ mainInfo.setPriceMode("个车");
|
|
|
+ mainInfo.setHighRiskAssessId("a4974f2b1b0d481b9df77a5f45ad1a5b");
|
|
|
+ mainInfo.setQuotationTime("2025-10-11T01:59:22.000Z");
|
|
|
+ mainInfo.setReCustomerType("");
|
|
|
+ mainInfo.setLastYearAdjustValue("");
|
|
|
+ mainInfo.setReStatus("");
|
|
|
+ mainInfo.setReTaskUserCode("");
|
|
|
+ mainInfo.setReTaskUserName("");
|
|
|
+ mainInfo.setFollowID("697e80c6c9cd434a97bea6e6a319f53b");
|
|
|
+ mainInfo.setOpenId("odviKt0g-CP5NVNnZKiHEStPbRoU");
|
|
|
+ mainInfo.setClientIp("");
|
|
|
+ businessData.setBusinessMainInfo(mainInfo);
|
|
|
+
|
|
|
+ // 设置投保人列表
|
|
|
+ List<BoHaiCrawlerUnderwritingRequest2.Insured> insuredList = new java.util.ArrayList<>();
|
|
|
+
|
|
|
+ // 投保人1
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.Insured insured1 = new BoHaiCrawlerUnderwritingRequest2.Insured();
|
|
|
+ insured1.setSerialNo("1");
|
|
|
+ insured1.setAppliInsuredRelation("01");
|
|
|
+ insured1.setProvinceCode("");
|
|
|
+ insured1.setCityCode("");
|
|
|
+ insured1.setCountyCode("");
|
|
|
+ insured1.setAdminAddress("");
|
|
|
+ insured1.setAgentName("");
|
|
|
+ insured1.setAgentIdcardType("01");
|
|
|
+ insured1.setAgentIdcard("");
|
|
|
+ insured1.setAgentPhone("");
|
|
|
+ insured1.setGroupPolicies("");
|
|
|
+ insured1.setInsuredCode("");
|
|
|
+ insured1.setIdentifyIssuer("");
|
|
|
+ insured1.setIdentifyNumber("140104198011062716");
|
|
|
+ insured1.setIdentifyType("01");
|
|
|
+ insured1.setIdentifyStartDate("");
|
|
|
+ insured1.setIdentifyEndDate("");
|
|
|
+ insured1.setInsuredName("封殿雷");
|
|
|
+ insured1.setInsuredFlag("2");
|
|
|
+ insured1.setInsuredType("1");
|
|
|
+ insured1.setGender("1");
|
|
|
+ insured1.setBirthDay("1980-11-06");
|
|
|
+ insured1.setInsuredNature("3");
|
|
|
+ insured1.setLinkerName("");
|
|
|
+ insured1.setPhoneNumber("");
|
|
|
+ insured1.setMobile("18703487297");
|
|
|
+ insured1.setInsuredAddress("山西省太原市万柏林区开城路26号院10排2号");
|
|
|
+ insured1.setPostCode("030600");
|
|
|
+ insured1.setAddress1("140000");
|
|
|
+ insured1.setAddress2("140100");
|
|
|
+ insured1.setAddress3("140109");
|
|
|
+ insured1.setPostAddress("");
|
|
|
+ insured1.setEmail("1004854817@qq.com");
|
|
|
+ insured1.setRiskGrade("A");
|
|
|
+ insured1.setBusinessLicenseType("");
|
|
|
+ insured1.setCarInsuredRelation("");
|
|
|
+ insured1.setOrgCode("");
|
|
|
+ insured1.setAge("44");
|
|
|
+ insured1.setBusinessSort("");
|
|
|
+ insured1.setNation("汉");
|
|
|
+ insured1.setIdentifyAddress("山西省太原市万柏林区开城路26号院10排2号");
|
|
|
+ insured1.setNationality("");
|
|
|
+ insured1.setTaxpayerType("");
|
|
|
+ insured1.setCreditCode("");
|
|
|
+ insured1.setTaxpayerIdentifier("");
|
|
|
+ insured1.setTaxpayerBank("");
|
|
|
+ insured1.setTaxpayerAccount("");
|
|
|
+ insured1.setTaxpayerPhoneNumber("");
|
|
|
+ insured1.setTaxpayerAddress("");
|
|
|
+ insured1.setRelatedParty(0);
|
|
|
+ insured1.setRelatedPartyCode("");
|
|
|
+ insured1.setRelatedPartyRelation("");
|
|
|
+ insured1.setAppliCitizenshipBC("01");
|
|
|
+ insured1.setAppliCountryBC("008zg");
|
|
|
+ insured1.setIsPhoneHolderFlag("");
|
|
|
+ insured1.setPhoneHolderName("");
|
|
|
+ insured1.setPhoneHolderCertiCode("");
|
|
|
+ insured1.setOperatorName("");
|
|
|
+ insured1.setOperatorType("");
|
|
|
+ insured1.setOperatorCertiType("");
|
|
|
+ insured1.setOperatorCertiCode("");
|
|
|
+ insured1.setOperatorPhoneNo("");
|
|
|
+ insured1.setOperatorEmail("");
|
|
|
+ insured1.setIsIndividualBusi("0");
|
|
|
+ insured1.setIsSpecialDInsured("");
|
|
|
+ insured1.setSpecialDInsuredName("");
|
|
|
+ insured1.setSpecialDInsuredIDType("");
|
|
|
+ insured1.setSpecialDInsuredID("");
|
|
|
+ insured1.setNoSpecialDInsuredP("");
|
|
|
+ insured1.setDInsuredCount("");
|
|
|
+ insured1.setBenefitFlag("");
|
|
|
+ insured1.setBenefitOrder("");
|
|
|
+ insured1.setBenefitRate("");
|
|
|
+ insured1.setIsApplicantFlag("");
|
|
|
+ insured1.setIsGreenIndustryFlag("");
|
|
|
+ insured1.setGreenIndustryFCode("");
|
|
|
+ insured1.setGreenIndustrySCode("");
|
|
|
+ insured1.setGreenIndustryTCode("");
|
|
|
+ insured1.setIsSmall("0");
|
|
|
+ insured1.setCareer("");
|
|
|
+ insured1.setAsset("");
|
|
|
+ insured1.setNumberOfUnits("");
|
|
|
+ insured1.setBusiCategory("");
|
|
|
+ insured1.setBusiCategoryType("");
|
|
|
+ insured1.setBusiCategorySub("");
|
|
|
+ insured1.setBusiCategoryExac("");
|
|
|
+ insuredList.add(insured1);
|
|
|
+
|
|
|
+ // 投保人2
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.Insured insured2 = new BoHaiCrawlerUnderwritingRequest2.Insured();
|
|
|
+ insured2.setSerialNo("2");
|
|
|
+ insured2.setAppliInsuredRelation("");
|
|
|
+ insured2.setProvinceCode("");
|
|
|
+ insured2.setCityCode("");
|
|
|
+ insured2.setCountyCode("");
|
|
|
+ insured2.setAdminAddress("");
|
|
|
+ insured2.setAgentName("");
|
|
|
+ insured2.setAgentIdcardType("");
|
|
|
+ insured2.setAgentIdcard("");
|
|
|
+ insured2.setAgentPhone("");
|
|
|
+ insured2.setGroupPolicies("");
|
|
|
+ insured2.setInsuredCode("");
|
|
|
+ insured2.setIdentifyIssuer("");
|
|
|
+ insured2.setIdentifyNumber("140104198011062716");
|
|
|
+ insured2.setIdentifyType("01");
|
|
|
+ insured2.setIdentifyStartDate("");
|
|
|
+ insured2.setIdentifyEndDate("");
|
|
|
+ insured2.setInsuredName("封殿雷");
|
|
|
+ insured2.setInsuredFlag("1");
|
|
|
+ insured2.setInsuredType("1");
|
|
|
+ insured2.setGender("1");
|
|
|
+ insured2.setBirthDay("1980-11-06");
|
|
|
+ insured2.setInsuredNature("3");
|
|
|
+ insured2.setLinkerName("");
|
|
|
+ insured2.setPhoneNumber("");
|
|
|
+ insured2.setMobile("18703487297");
|
|
|
+ insured2.setInsuredAddress("山西省太原市万柏林区开城路26号院10排2号");
|
|
|
+ insured2.setPostCode("030600");
|
|
|
+ insured2.setAddress1("140000");
|
|
|
+ insured2.setAddress2("140100");
|
|
|
+ insured2.setAddress3("140109");
|
|
|
+ insured2.setPostAddress("");
|
|
|
+ insured2.setEmail("1004854817@qq.com");
|
|
|
+ insured2.setRiskGrade("");
|
|
|
+ insured2.setBusinessLicenseType("");
|
|
|
+ insured2.setCarInsuredRelation("1");
|
|
|
+ insured2.setOrgCode("");
|
|
|
+ insured2.setAge("44");
|
|
|
+ insured2.setBusinessSort("");
|
|
|
+ insured2.setNation("汉");
|
|
|
+ insured2.setIdentifyAddress("山西省太原市万柏林区开城路26号院10排2号");
|
|
|
+ insured2.setNationality("");
|
|
|
+ insured2.setTaxpayerType("");
|
|
|
+ insured2.setCreditCode("");
|
|
|
+ insured2.setTaxpayerIdentifier("");
|
|
|
+ insured2.setTaxpayerBank("");
|
|
|
+ insured2.setTaxpayerAccount("");
|
|
|
+ insured2.setTaxpayerPhoneNumber("");
|
|
|
+ insured2.setTaxpayerAddress("");
|
|
|
+ insured2.setRelatedParty(0);
|
|
|
+ insured2.setRelatedPartyCode("");
|
|
|
+ insured2.setRelatedPartyRelation("");
|
|
|
+ insured2.setAppliCitizenshipBC("01");
|
|
|
+ insured2.setAppliCountryBC("008zg");
|
|
|
+ insured2.setIsPhoneHolderFlag("");
|
|
|
+ insured2.setPhoneHolderName("");
|
|
|
+ insured2.setPhoneHolderCertiCode("");
|
|
|
+ insured2.setOperatorName("");
|
|
|
+ insured2.setOperatorType("");
|
|
|
+ insured2.setOperatorCertiType("");
|
|
|
+ insured2.setOperatorCertiCode("");
|
|
|
+ insured2.setOperatorPhoneNo("");
|
|
|
+ insured2.setOperatorEmail("");
|
|
|
+ insured2.setIsIndividualBusi("0");
|
|
|
+ insured2.setIsSpecialDInsured("0");
|
|
|
+ insured2.setSpecialDInsuredName("");
|
|
|
+ insured2.setSpecialDInsuredIDType("");
|
|
|
+ insured2.setSpecialDInsuredID("");
|
|
|
+ insured2.setNoSpecialDInsuredP("1");
|
|
|
+ insured2.setDInsuredCount("");
|
|
|
+ insured2.setBenefitFlag("0");
|
|
|
+ insured2.setBenefitOrder("");
|
|
|
+ insured2.setBenefitRate("");
|
|
|
+ insured2.setIsApplicantFlag("");
|
|
|
+ insured2.setIsGreenIndustryFlag("");
|
|
|
+ insured2.setGreenIndustryFCode("");
|
|
|
+ insured2.setGreenIndustrySCode("");
|
|
|
+ insured2.setGreenIndustryTCode("");
|
|
|
+ insured2.setIsSmall("0");
|
|
|
+ insured2.setCareer("");
|
|
|
+ insured2.setAsset("");
|
|
|
+ insured2.setNumberOfUnits("");
|
|
|
+ insured2.setBusiCategory("");
|
|
|
+ insured2.setBusiCategoryType("");
|
|
|
+ insured2.setBusiCategorySub("");
|
|
|
+ insured2.setBusiCategoryExac("");
|
|
|
+ insuredList.add(insured2);
|
|
|
+
|
|
|
+ // 投保人3
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.Insured insured3 = new BoHaiCrawlerUnderwritingRequest2.Insured();
|
|
|
+ insured3.setSerialNo("3");
|
|
|
+ insured3.setAppliInsuredRelation("");
|
|
|
+ insured3.setProvinceCode("140000");
|
|
|
+ insured3.setCityCode("141100");
|
|
|
+ insured3.setCountyCode("141123");
|
|
|
+ insured3.setAdminAddress("山西省兴县蔚汾镇西滩坪39号");
|
|
|
+ insured3.setAgentName("");
|
|
|
+ insured3.setAgentIdcardType("");
|
|
|
+ insured3.setAgentIdcard("");
|
|
|
+ insured3.setAgentPhone("");
|
|
|
+ insured3.setGroupPolicies("");
|
|
|
+ insured3.setInsuredCode("");
|
|
|
+ insured3.setIdentifyIssuer("");
|
|
|
+ insured3.setIdentifyNumber("140104198011062716");
|
|
|
+ insured3.setIdentifyType("01");
|
|
|
+ insured3.setIdentifyStartDate("");
|
|
|
+ insured3.setIdentifyEndDate("");
|
|
|
+ insured3.setInsuredName("封殿雷");
|
|
|
+ insured3.setInsuredFlag("3");
|
|
|
+ insured3.setInsuredType("1");
|
|
|
+ insured3.setGender("1");
|
|
|
+ insured3.setBirthDay("1980-11-06");
|
|
|
+ insured3.setInsuredNature("1");
|
|
|
+ insured3.setLinkerName("");
|
|
|
+ insured3.setPhoneNumber("");
|
|
|
+ insured3.setMobile("18703487297");
|
|
|
+ insured3.setInsuredAddress("山西省太原市万柏林区开城路26号院10排2号");
|
|
|
+ insured3.setPostCode("030600");
|
|
|
+ insured3.setAddress1("140000");
|
|
|
+ insured3.setAddress2("141100");
|
|
|
+ insured3.setAddress3("");
|
|
|
+ insured3.setPostAddress("");
|
|
|
+ insured3.setEmail("1004854817@qq.com");
|
|
|
+ insured3.setRiskGrade("");
|
|
|
+ insured3.setBusinessLicenseType("");
|
|
|
+ insured3.setCarInsuredRelation("");
|
|
|
+ insured3.setOrgCode("");
|
|
|
+ insured3.setAge("30");
|
|
|
+ insured3.setBusinessSort("");
|
|
|
+ insured3.setNation("");
|
|
|
+ insured3.setIdentifyAddress("");
|
|
|
+ insured3.setNationality("");
|
|
|
+ insured3.setTaxpayerType("");
|
|
|
+ insured3.setCreditCode("");
|
|
|
+ insured3.setTaxpayerIdentifier("");
|
|
|
+ insured3.setTaxpayerBank("");
|
|
|
+ insured3.setTaxpayerAccount("");
|
|
|
+ insured3.setTaxpayerPhoneNumber("");
|
|
|
+ insured3.setTaxpayerAddress("");
|
|
|
+ insured3.setRelatedParty(0);
|
|
|
+ insured3.setRelatedPartyCode("");
|
|
|
+ insured3.setRelatedPartyRelation("");
|
|
|
+ insured3.setAppliCitizenshipBC("");
|
|
|
+ insured3.setAppliCountryBC("008zg");
|
|
|
+ insured3.setIsPhoneHolderFlag("");
|
|
|
+ insured3.setPhoneHolderName("");
|
|
|
+ insured3.setPhoneHolderCertiCode("");
|
|
|
+ insured3.setOperatorName("");
|
|
|
+ insured3.setOperatorType("");
|
|
|
+ insured3.setOperatorCertiType("");
|
|
|
+ insured3.setOperatorCertiCode("");
|
|
|
+ insured3.setOperatorPhoneNo("");
|
|
|
+ insured3.setOperatorEmail("");
|
|
|
+ insured3.setIsIndividualBusi("0");
|
|
|
+ insured3.setIsSpecialDInsured("");
|
|
|
+ insured3.setSpecialDInsuredName("");
|
|
|
+ insured3.setSpecialDInsuredIDType("");
|
|
|
+ insured3.setSpecialDInsuredID("");
|
|
|
+ insured3.setNoSpecialDInsuredP("");
|
|
|
+ insured3.setDInsuredCount("");
|
|
|
+ insured3.setBenefitFlag("");
|
|
|
+ insured3.setBenefitOrder("");
|
|
|
+ insured3.setBenefitRate("");
|
|
|
+ insured3.setIsApplicantFlag("");
|
|
|
+ insured3.setIsGreenIndustryFlag("");
|
|
|
+ insured3.setGreenIndustryFCode("");
|
|
|
+ insured3.setGreenIndustrySCode("");
|
|
|
+ insured3.setGreenIndustryTCode("");
|
|
|
+ insured3.setIsSmall("0");
|
|
|
+ insured3.setCareer("");
|
|
|
+ insured3.setAsset("");
|
|
|
+ insured3.setNumberOfUnits("");
|
|
|
+ insured3.setBusiCategory("");
|
|
|
+ insured3.setBusiCategoryType("");
|
|
|
+ insured3.setBusiCategorySub("");
|
|
|
+ insured3.setBusiCategoryExac("");
|
|
|
+ insuredList.add(insured3);
|
|
|
+ businessData.setInsuredList(insuredList);
|
|
|
+
|
|
|
+ // 设置险种列表
|
|
|
+ List<BoHaiCrawlerUnderwritingRequest2.Risk> riskList = new java.util.ArrayList<>();
|
|
|
+ // 交强险
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.Risk jqRisk = new BoHaiCrawlerUnderwritingRequest2.Risk();
|
|
|
+ List<BoHaiCrawlerUnderwritingRequest2.ItemKind> jqItemKinds = new java.util.ArrayList<>();
|
|
|
+
|
|
|
+ // 交强险险种明细
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.ItemKind jqItem = new BoHaiCrawlerUnderwritingRequest2.ItemKind();
|
|
|
+ jqItem.setItemKindNo("0");
|
|
|
+ jqItem.setKindCode("BZ");
|
|
|
+ jqItem.setKindName("机动车交通事故责任强制保险");
|
|
|
+ jqItem.setOperateType("");
|
|
|
+ jqItem.setStartDate("2025-10-11");
|
|
|
+ jqItem.setStartHour("0");
|
|
|
+ jqItem.setEndDate("2026-10-10");
|
|
|
+ jqItem.setEndHour("24");
|
|
|
+ jqItem.setAmount("");
|
|
|
+ jqItem.setUnitAmount("");
|
|
|
+ jqItem.setQuantity("");
|
|
|
+ jqItem.setModeCode("");
|
|
|
+ jqItem.setModeName("");
|
|
|
+ jqItem.setShortRateFlag("2");
|
|
|
+ jqItem.setShortRate("");
|
|
|
+ jqItem.setCalculateFlag("Y");
|
|
|
+ jqItem.setRate("");
|
|
|
+ jqItem.setNotDeductibleFlag("0");
|
|
|
+ jqItem.setDeductibleRatio("");
|
|
|
+ jqItem.setDiscount("");
|
|
|
+ jqItem.setAdjustRate("");
|
|
|
+ jqItem.setValue("");
|
|
|
+ jqItemKinds.add(jqItem);
|
|
|
+ jqRisk.setItemKindList(jqItemKinds);
|
|
|
+
|
|
|
+ // 交强险险种主信息
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.RiskMainInfo jqMain = new BoHaiCrawlerUnderwritingRequest2.RiskMainInfo();
|
|
|
+ jqMain.setIsDrivingFee("1");
|
|
|
+ jqMain.setAgriflag("012001");
|
|
|
+ jqMain.setClassCode("");
|
|
|
+ jqMain.setRiskCode("0330");
|
|
|
+ jqMain.setContractNo("");
|
|
|
+ jqMain.setDiscount("");
|
|
|
+ jqMain.setCurrency("CNY");
|
|
|
+ jqMain.setLastPolicyNo("");
|
|
|
+ jqMain.setRenewalFlag("0");
|
|
|
+ jqMain.setStartDate("2025-10-11");
|
|
|
+ jqMain.setStartHour("0");
|
|
|
+ jqMain.setEndDate("2026-10-10");
|
|
|
+ jqMain.setEndHour("24");
|
|
|
+ jqMain.setImmediatelyActiveFlag("");
|
|
|
+ jqMain.setActiveStartTime("");
|
|
|
+ jqMain.setActiveEndTime("");
|
|
|
+ jqMain.setQuerySequenceNo("");
|
|
|
+ jqMain.setConfirmSequenceNo("");
|
|
|
+ jqMain.setSpecialContractFlag("");
|
|
|
+ jqMain.setSpecialContractSummary("");
|
|
|
+ jqMain.setNoneFluctuateFlag("N1");
|
|
|
+ jqMain.setNcdCoefficient("");
|
|
|
+ jqMain.setChannelCoefficient("1.00");
|
|
|
+ jqMain.setUnderwritingCoefficient("");
|
|
|
+ jqMain.setAdjustCoefficient("");
|
|
|
+ jqMain.setTrafficViolationCoefficient("");
|
|
|
+ jqMain.setChannelCoefficientVariation("");
|
|
|
+ jqMain.setUnderwritingCoefficientVariation("");
|
|
|
+ jqMain.setIfNeedQuote("");
|
|
|
+ jqMain.setHopeRate("");
|
|
|
+ jqMain.setProposalNo("");
|
|
|
+ jqMain.setCustomerCoefficient("364001");
|
|
|
+ jqMain.setFleetCoefficient("365000");
|
|
|
+ jqMain.setSignDate("2025-10-11");
|
|
|
+ jqMain.setOperateDate("2025-10-11");
|
|
|
+ jqMain.setInputDate("2025-10-11");
|
|
|
+ jqMain.setPricingAdjustValue("1");
|
|
|
+ //jqMain.setNoneFluctuateFeeRate("N1");
|
|
|
+ jqRisk.setRiskMainInfo(jqMain);
|
|
|
+
|
|
|
+ // 交强险车船税信息
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.CarShipTaxInfo taxInfo = new BoHaiCrawlerUnderwritingRequest2.CarShipTaxInfo();
|
|
|
+ taxInfo.setTaxDocumentDate("");
|
|
|
+ taxInfo.setTaxPayerIdentifier("140104198011062716");
|
|
|
+ taxInfo.setTaxPayerName("封殿雷");
|
|
|
+ taxInfo.setTaxPayerIdentifyNumberType("01");
|
|
|
+ taxInfo.setTaxPayerIdentifyNumber("140104198011062716");
|
|
|
+ //taxInfo.setUnladenMassCS(1087);
|
|
|
+ taxInfo.setLicenseCategory("K33");
|
|
|
+ taxInfo.setCertificateDate("2013-10-14");
|
|
|
+ taxInfo.setTaxItemCode("A");
|
|
|
+ taxInfo.setTaxItemName("载客汽车");
|
|
|
+ taxInfo.setTaxRelifFlag("1");
|
|
|
+ taxInfo.setCalculateMode("1");
|
|
|
+ taxInfo.setCalLateFeeFlag("0");
|
|
|
+ taxInfo.setCalPayBalanceFeeFlag("0");
|
|
|
+ taxInfo.setTaxType("1");
|
|
|
+ taxInfo.setTaxNumType("1");
|
|
|
+ taxInfo.setPayTaxDate("202510");
|
|
|
+ taxInfo.setCarOwnerNature("1");
|
|
|
+ taxInfo.setCarAddressCode("120000");
|
|
|
+ taxInfo.setUseType("100");
|
|
|
+ taxInfo.setCalFeeFlag("00");
|
|
|
+ jqRisk.setCarShipTaxInfo(taxInfo);
|
|
|
+ riskList.add(jqRisk);
|
|
|
+
|
|
|
+ // 商业险(车辆损失险)
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.Risk syRisk = new BoHaiCrawlerUnderwritingRequest2.Risk();
|
|
|
+ List<BoHaiCrawlerUnderwritingRequest2.ItemKind> syItemKinds = new java.util.ArrayList<>();
|
|
|
+
|
|
|
+ // 车辆损失险
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.ItemKind syItem1 = new BoHaiCrawlerUnderwritingRequest2.ItemKind();
|
|
|
+ syItem1.setItemKindNo("1");
|
|
|
+ syItem1.setKindCode("A");
|
|
|
+ syItem1.setKindName("车辆损失险");
|
|
|
+ syItem1.setStartDate("2025-10-11");
|
|
|
+ syItem1.setStartHour("0");
|
|
|
+ syItem1.setEndDate("2026-10-10");
|
|
|
+ syItem1.setEndHour("24");
|
|
|
+ syItem1.setAmount("15380.00");
|
|
|
+ syItem1.setShortRateFlag("3");
|
|
|
+ syItem1.setCalculateFlag("Y");
|
|
|
+ syItem1.setNotDeductibleFlag("0");
|
|
|
+ syItemKinds.add(syItem1);
|
|
|
+
|
|
|
+ // 第三者责任险
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.ItemKind syItem2 = new BoHaiCrawlerUnderwritingRequest2.ItemKind();
|
|
|
+ syItem2.setItemKindNo("2");
|
|
|
+ syItem2.setKindCode("B");
|
|
|
+ syItem2.setKindName("第三者责任险");
|
|
|
+ syItem2.setStartDate("2025-10-11");
|
|
|
+ syItem2.setStartHour("0");
|
|
|
+ syItem2.setEndDate("2026-10-10");
|
|
|
+ syItem2.setEndHour("24");
|
|
|
+ syItem2.setAmount("2000000.00");
|
|
|
+ syItem2.setShortRateFlag("3");
|
|
|
+ syItem2.setCalculateFlag("Y");
|
|
|
+ syItem2.setNotDeductibleFlag("0");
|
|
|
+ syItemKinds.add(syItem2);
|
|
|
+
|
|
|
+ // 车上人员责任险(司机)
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.ItemKind syItem3 = new BoHaiCrawlerUnderwritingRequest2.ItemKind();
|
|
|
+ syItem3.setItemKindNo("3");
|
|
|
+ syItem3.setKindCode("D1");
|
|
|
+ syItem3.setKindName("车上人员责任险(司机)");
|
|
|
+ syItem3.setStartDate("2025-10-11");
|
|
|
+ syItem3.setStartHour("0");
|
|
|
+ syItem3.setEndDate("2026-10-10");
|
|
|
+ syItem3.setEndHour("24");
|
|
|
+ syItem3.setAmount("10000.00");
|
|
|
+ syItem3.setShortRateFlag("3");
|
|
|
+ syItem3.setCalculateFlag("Y");
|
|
|
+ syItem3.setNotDeductibleFlag("0");
|
|
|
+ syItemKinds.add(syItem3);
|
|
|
+
|
|
|
+ // 车上人员责任险(乘客)
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.ItemKind syItem4 = new BoHaiCrawlerUnderwritingRequest2.ItemKind();
|
|
|
+ syItem4.setItemKindNo("4");
|
|
|
+ syItem4.setKindCode("D2");
|
|
|
+ syItem4.setKindName("车上人员责任险(乘客)");
|
|
|
+ syItem4.setStartDate("2025-10-11");
|
|
|
+ syItem4.setStartHour("0");
|
|
|
+ syItem4.setEndDate("2026-10-10");
|
|
|
+ syItem4.setEndHour("24");
|
|
|
+ syItem4.setAmount("10000.00");
|
|
|
+ syItem4.setShortRateFlag("3");
|
|
|
+ syItem4.setCalculateFlag("Y");
|
|
|
+ syItem4.setNotDeductibleFlag("0");
|
|
|
+ syItemKinds.add(syItem4);
|
|
|
+
|
|
|
+ syRisk.setItemKindList(syItemKinds);
|
|
|
+
|
|
|
+ // 商业险险种主信息
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.RiskMainInfo syMain = new BoHaiCrawlerUnderwritingRequest2.RiskMainInfo();
|
|
|
+ syMain.setIsDrivingFee("1");
|
|
|
+ syMain.setAgriflag("012001");
|
|
|
+ syMain.setRiskCode("0380");
|
|
|
+ syMain.setCurrency("CNY");
|
|
|
+ syMain.setRenewalFlag("0");
|
|
|
+ syMain.setStartDate("2025-10-11");
|
|
|
+ syMain.setStartHour("0");
|
|
|
+ syMain.setEndDate("2026-10-10");
|
|
|
+ syMain.setEndHour("24");
|
|
|
+ syMain.setNcdCoefficient("1");
|
|
|
+ syMain.setChannelCoefficient("1.00");
|
|
|
+ syMain.setCustomerProperty("001");
|
|
|
+ syMain.setRiskCoefficient("362003");
|
|
|
+ syMain.setBusinessCoefficient("363000");
|
|
|
+ syMain.setVehicleCoefficient("000");
|
|
|
+ syMain.setCustomerCoefficient("364001");
|
|
|
+ syMain.setFleetCoefficient("365000");
|
|
|
+ syMain.setClauseType("F91");
|
|
|
+ syMain.setSignDate("2025-10-11");
|
|
|
+ syMain.setOperateDate("2025-10-11");
|
|
|
+ syMain.setInputDate("2025-10-11");
|
|
|
+ syRisk.setRiskMainInfo(syMain);
|
|
|
+ riskList.add(syRisk);
|
|
|
+
|
|
|
+ businessData.setRiskList(riskList);
|
|
|
+
|
|
|
+ // 设置特别约定列表
|
|
|
+ List<BoHaiCrawlerUnderwritingRequest2.Engage> engageList = new java.util.ArrayList<>();
|
|
|
+ businessData.setEngageList(engageList);
|
|
|
+
|
|
|
+ // 设置风控信息
|
|
|
+ BoHaiCrawlerUnderwritingRequest2.FxqInfo fxqInfo = new BoHaiCrawlerUnderwritingRequest2.FxqInfo();
|
|
|
+ fxqInfo.setRiskControlFlag("");
|
|
|
+ fxqInfo.setRiskControlId("");
|
|
|
+ fxqInfo.setRiskControlName("");
|
|
|
+ fxqInfo.setRiskControlLevel("");
|
|
|
+ fxqInfo.setRiskControlResult("");
|
|
|
+ fxqInfo.setRiskControlTime("");
|
|
|
+ businessData.setFxqInfo(fxqInfo);
|
|
|
+
|
|
|
+ // 设置缴费计划列表
|
|
|
+ List<BoHaiCrawlerUnderwritingRequest2.PayPlan> payPlanList = new java.util.ArrayList<>();
|
|
|
+ businessData.setPayPlanList(payPlanList);
|
|
|
+
|
|
|
+ BoHaiCrawlerUnderwritingRequest2 boHaiCrawlerUnderwritingRequest2 = new BoHaiCrawlerUnderwritingRequest2();
|
|
|
+
|
|
|
+ BoHaiUnderwritingResponse boHaiUnderwritingResponse = boHaiCrawlerRequestComponent.underwriting(null, "","");
|
|
|
|
|
|
UnderwritingResultsVo underwritingResultsVo = new UnderwritingResultsVo();
|
|
|
if ("R_Z00001".equals(boHaiUnderwritingResponse.getResponseCode())) {
|
|
|
@@ -563,8 +1219,7 @@ public class BoHaiCrawlerRequestImpl implements BoHaiCrawlerRequest {
|
|
|
underwritingResultsVo.setSyApplyNo(boHaiUnderwritingResponse.getData().getBusinessPolicy().getApplicationNo());
|
|
|
}
|
|
|
}
|
|
|
- return underwritingResultsVo;*/
|
|
|
- return null;
|
|
|
+ return underwritingResultsVo;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -664,12 +1319,11 @@ public class BoHaiCrawlerRequestImpl implements BoHaiCrawlerRequest {
|
|
|
headDTO.setTransCode("CarModelsQuery");
|
|
|
headDTO.setTransType("Req");
|
|
|
//token先写死
|
|
|
- headDTO.setToken("114050281-de6614d0af8b92ed9fd72f3ea80b324d");
|
|
|
+ headDTO.setToken(TOKEN);
|
|
|
boHaiCrawlerVehicleConfirmationReqeust1.setHead(headDTO);
|
|
|
|
|
|
BoHaiCrawlerVehicleConfirmationReqeust1.BodyDTO bodyDTO = new BoHaiCrawlerVehicleConfirmationReqeust1.BodyDTO();
|
|
|
bodyDTO.setBasicRateCode("");
|
|
|
-
|
|
|
// 登录机构编码,先写死
|
|
|
bodyDTO.setComCode("14070201");
|
|
|
bodyDTO.setEffectiveDate("2025-09-30");
|