|
@@ -157,11 +157,11 @@ public class Ruote {
|
|
|
Ruote.Condition condition = new Ruote.Condition();
|
|
Ruote.Condition condition = new Ruote.Condition();
|
|
|
|
|
|
|
|
|
|
|
|
|
- //2.1投保人信息
|
|
|
|
|
- CustomerInfoVo insuredPersonInfo = yaQuoteInfoVo.getInsuredPersonInfo();
|
|
|
|
|
- //被投保人信息
|
|
|
|
|
|
|
+ //投保人信息
|
|
|
CustomerInfoVo policyHolderInfo = yaQuoteInfoVo.getPolicyHolderInfo();
|
|
CustomerInfoVo policyHolderInfo = yaQuoteInfoVo.getPolicyHolderInfo();
|
|
|
- //2.2车主
|
|
|
|
|
|
|
+ //被保人信息
|
|
|
|
|
+ CustomerInfoVo insuredPersonInfo = yaQuoteInfoVo.getInsuredPersonInfo();
|
|
|
|
|
+ //车主
|
|
|
CustomerInfoVo ownerInfo = yaQuoteInfoVo.getOwnerInfo();
|
|
CustomerInfoVo ownerInfo = yaQuoteInfoVo.getOwnerInfo();
|
|
|
/**
|
|
/**
|
|
|
* 基本信息 base
|
|
* 基本信息 base
|
|
@@ -208,6 +208,7 @@ public class Ruote {
|
|
|
String jqFlag = base.getCAppJqFlag();
|
|
String jqFlag = base.getCAppJqFlag();
|
|
|
String syFlag = base.getAppSYFlag();
|
|
String syFlag = base.getAppSYFlag();
|
|
|
String szFlag = "N";
|
|
String szFlag = "N";
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 商业险险别
|
|
* 商业险险别
|
|
|
* 代码:cvrgListSY/CvrgSY
|
|
* 代码:cvrgListSY/CvrgSY
|
|
@@ -215,9 +216,6 @@ public class Ruote {
|
|
|
CvrgListSY cvrgListSY = CvrgListSY.buildCvrgListSY(yaQuoteInfoVo.getKindList(),vhl);
|
|
CvrgListSY cvrgListSY = CvrgListSY.buildCvrgListSY(yaQuoteInfoVo.getKindList(),vhl);
|
|
|
condition.setCvrgListSY(cvrgListSY);
|
|
condition.setCvrgListSY(cvrgListSY);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 交强险费率信息
|
|
* 交强险费率信息
|
|
|
* 费率调整系数表vehicleAdjust
|
|
* 费率调整系数表vehicleAdjust
|
|
@@ -225,16 +223,13 @@ public class Ruote {
|
|
|
VehicleAdjust vehicleAdjust = new VehicleAdjust();
|
|
VehicleAdjust vehicleAdjust = new VehicleAdjust();
|
|
|
vehicleAdjust.setSecondaryOrganization("");
|
|
vehicleAdjust.setSecondaryOrganization("");
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ //投保组合
|
|
|
String groupStr = YcBuildData.buildInsureGroup(jqFlag.equals("Y")?true:false,syFlag.equals("Y")?true:false);
|
|
String groupStr = YcBuildData.buildInsureGroup(jqFlag.equals("Y")?true:false,syFlag.equals("Y")?true:false);
|
|
|
vehicleAdjust.setCInsuranceGroup(groupStr);
|
|
vehicleAdjust.setCInsuranceGroup(groupStr);
|
|
|
// vehicleAdjust.setCInsuranceGroup("DJ");
|
|
// vehicleAdjust.setCInsuranceGroup("DJ");
|
|
|
condition.setVehicleAdjust(vehicleAdjust);
|
|
condition.setVehicleAdjust(vehicleAdjust);
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
//商业险
|
|
//商业险
|
|
|
if (base.getAppSYFlag().equals("Y")) {
|
|
if (base.getAppSYFlag().equals("Y")) {
|
|
|
|
|
|
|
@@ -261,58 +256,26 @@ public class Ruote {
|
|
|
* 交强险车船税
|
|
* 交强险车船税
|
|
|
* 车船税tax
|
|
* 车船税tax
|
|
|
*/
|
|
*/
|
|
|
- Tax tax = new Tax();
|
|
|
|
|
- tax.setTaxCurrentType("349002001");
|
|
|
|
|
- tax.setVehicleCategory("K33");
|
|
|
|
|
- tax.setTaxPayerName(insuredPersonInfo.getName());
|
|
|
|
|
- //补交上年
|
|
|
|
|
- tax.setPayLastYear("0");
|
|
|
|
|
- tax.setIdType("120001");
|
|
|
|
|
- tax.setCalculatedType("349003001");
|
|
|
|
|
- tax.setVehecleTypeDetail("3490010013");
|
|
|
|
|
-
|
|
|
|
|
- //纳税人识别号 = 投保人身份证号
|
|
|
|
|
- tax.setTaxpayerNO(insuredPersonInfo.getIdentifyNumber());
|
|
|
|
|
-
|
|
|
|
|
- tax.setVehicleType("349001001");
|
|
|
|
|
- tax.setTaxpayerType("338001");
|
|
|
|
|
- tax.setConruty("156");
|
|
|
|
|
- tax.setTel(insuredPersonInfo.getMobile());
|
|
|
|
|
- //@TODO 不确定
|
|
|
|
|
- tax.setExhaust("1.5");
|
|
|
|
|
- condition.setTax(tax);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ condition.setTax(Tax.buildTax(policyHolderInfo));
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 渠道及费用信息
|
|
* 渠道及费用信息
|
|
|
* 渠道及费用信息agent
|
|
* 渠道及费用信息agent
|
|
|
*/
|
|
*/
|
|
|
-// Agent agent = new Agent();
|
|
|
|
|
-// agent.setAgentCode("250000P00004");
|
|
|
|
|
-// agent.setConferCode("250000P0000401");
|
|
|
|
|
-// agent.setAgentType("191010");
|
|
|
|
|
-// agent.setAgentNme("永鑫保险销售服务有限公司山西分公司");
|
|
|
|
|
-// agent.setQlftNo("2752454675645");
|
|
|
|
|
-// agent.setCustNature("192099");
|
|
|
|
|
-// agent.setAgentProfId("250000P00004");
|
|
|
|
|
-// agent.setSubCoNo("250000P0000401");
|
|
|
|
|
condition.setAgent(agent);
|
|
condition.setAgent(agent);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 投保人信息
|
|
* 投保人信息
|
|
|
* 代码:applicant
|
|
* 代码:applicant
|
|
|
*/
|
|
*/
|
|
|
- Applicant applicant = Applicant.buildApplicant(yaQuoteInfoVo);
|
|
|
|
|
-// Applicant applicant = Applicant.buildApplicant(policyHolderInfo);
|
|
|
|
|
|
|
+ Applicant applicant = Applicant.buildApplicant(ownerInfo,policyHolderInfo);
|
|
|
condition.setApplicant(applicant);
|
|
condition.setApplicant(applicant);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 被保人信息
|
|
* 被保人信息
|
|
|
* 代码:insured
|
|
* 代码:insured
|
|
|
*/
|
|
*/
|
|
|
- Insured insured = Insured.buildApplicant(ownerInfo);
|
|
|
|
|
|
|
+ Insured insured = Insured.buildApplicant(ownerInfo,insuredPersonInfo);
|
|
|
condition.setInsured(insured);
|
|
condition.setInsured(insured);
|
|
|
|
|
|
|
|
// /**
|
|
// /**
|
|
@@ -325,13 +288,12 @@ public class Ruote {
|
|
|
// cvrgYW.setNInsuranceQuantity("1");
|
|
// cvrgYW.setNInsuranceQuantity("1");
|
|
|
// condition.setCvrgYW(cvrgYW);
|
|
// condition.setCvrgYW(cvrgYW);
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 意健险被保人信息
|
|
|
|
|
- * 代码:VHlADDINSURED
|
|
|
|
|
- */
|
|
|
|
|
- VhlAddInsured vhlAddInsured = VhlAddInsured.buildVhladdinsured(ownerInfo);
|
|
|
|
|
- condition.setVhlAddInsured(vhlAddInsured);
|
|
|
|
|
-
|
|
|
|
|
|
|
+// /**
|
|
|
|
|
+// * 意健险被保人信息
|
|
|
|
|
+// * 代码:VHlADDINSURED
|
|
|
|
|
+// */
|
|
|
|
|
+// VhlAddInsured vhlAddInsured = VhlAddInsured.buildVhladdinsured(ownerInfo);
|
|
|
|
|
+// condition.setVhlAddInsured(vhlAddInsured);
|
|
|
|
|
|
|
|
|
|
|
|
|
requestLabel.setAuthorityData(authorityDataXml);
|
|
requestLabel.setAuthorityData(authorityDataXml);
|