|
@@ -259,17 +259,17 @@ public class DaDiInsurancePlanRequest extends DaDiBaseRequest {
|
|
|
/**
|
|
/**
|
|
|
* 意外险投保信息(可为空)
|
|
* 意外险投保信息(可为空)
|
|
|
*/
|
|
*/
|
|
|
- private List<DaDiJointSalesResponse.InsuranceDTO> accidentInsure;
|
|
|
|
|
|
|
+ private List<DaDiJointSalesResponse.InsuranceDTO.JointSalesSolutionVOSDTO> accidentInsure = new ArrayList<>();
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 健康险投保信息(可为空)
|
|
* 健康险投保信息(可为空)
|
|
|
*/
|
|
*/
|
|
|
- private List<DaDiJointSalesResponse.InsuranceDTO> healthInsure;
|
|
|
|
|
|
|
+ private List<DaDiJointSalesResponse.InsuranceDTO.JointSalesSolutionVOSDTO> healthInsure = new ArrayList<>();
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 财产险投保信息(可为空)
|
|
* 财产险投保信息(可为空)
|
|
|
*/
|
|
*/
|
|
|
- private List<DaDiJointSalesResponse.InsuranceDTO> propertyInsure;
|
|
|
|
|
|
|
+ private List<DaDiJointSalesResponse.InsuranceDTO.JointSalesSolutionVOSDTO> propertyInsure = new ArrayList<>();
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 总保费
|
|
* 总保费
|
|
@@ -279,17 +279,17 @@ public class DaDiInsurancePlanRequest extends DaDiBaseRequest {
|
|
|
/**
|
|
/**
|
|
|
* 意外险方案
|
|
* 意外险方案
|
|
|
*/
|
|
*/
|
|
|
- private List<DaDiJointSalesResponse.InsuranceDTO> accidentInsurance;
|
|
|
|
|
|
|
+ private List<DaDiJointSalesResponse.InsuranceDTO.JointSalesSolutionVOSDTO> accidentInsurance = new ArrayList<>();
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 健康险方案
|
|
* 健康险方案
|
|
|
*/
|
|
*/
|
|
|
- private List<DaDiJointSalesResponse.InsuranceDTO> healthInsurance;
|
|
|
|
|
|
|
+ private List<DaDiJointSalesResponse.InsuranceDTO.JointSalesSolutionVOSDTO> healthInsurance = new ArrayList<>();
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 财产险方案
|
|
* 财产险方案
|
|
|
*/
|
|
*/
|
|
|
- private List<DaDiJointSalesResponse.InsuranceDTO> propertyInsurance;
|
|
|
|
|
|
|
+ private List<DaDiJointSalesResponse.InsuranceDTO.JointSalesSolutionVOSDTO> propertyInsurance = new ArrayList<>();
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 再保险项
|
|
* 再保险项
|
|
@@ -454,41 +454,31 @@ public class DaDiInsurancePlanRequest extends DaDiBaseRequest {
|
|
|
this.wealthAccSeatCount = quoteVo.getCarInfoVo().getSeatCount();
|
|
this.wealthAccSeatCount = quoteVo.getCarInfoVo().getSeatCount();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- DaDiJointSalesResponse.InsuranceDTO insuranceListDTO;
|
|
|
|
|
- // 按产品分类拆分到意外险/健康险/财产险
|
|
|
|
|
- List<DaDiJointSalesResponse.InsuranceDTO> accidentList = new ArrayList<>();
|
|
|
|
|
- List<DaDiJointSalesResponse.InsuranceDTO> healthList = new ArrayList<>();
|
|
|
|
|
- List<DaDiJointSalesResponse.InsuranceDTO> propertyList = new ArrayList<>();
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
for (AccidentalDrivingVo accidentalDriving : accidentalDrivings) {
|
|
for (AccidentalDrivingVo accidentalDriving : accidentalDrivings) {
|
|
|
for (Map.Entry<String, List<DaDiJointSalesResponse.InsuranceDTO>> stringListEntry : jointSales.toMap().entrySet()) {
|
|
for (Map.Entry<String, List<DaDiJointSalesResponse.InsuranceDTO>> stringListEntry : jointSales.toMap().entrySet()) {
|
|
|
for (DaDiJointSalesResponse.InsuranceDTO insuranceDTO : stringListEntry.getValue()) {
|
|
for (DaDiJointSalesResponse.InsuranceDTO insuranceDTO : stringListEntry.getValue()) {
|
|
|
- if (accidentalDriving.getProductCode().equals(insuranceDTO.getFormulaGroupCode())) {
|
|
|
|
|
- if (accidentalDriving.getProductCode().equals(insuranceDTO.getFormulaGroupCode())) {
|
|
|
|
|
- insuranceListDTO = insuranceDTO;
|
|
|
|
|
- insuranceListDTO.setFormulaGroupCode(insuranceDTO.getFormulaGroupCode());
|
|
|
|
|
- insuranceListDTO.setFormulaGroupName(insuranceDTO.getFormulaGroupName());
|
|
|
|
|
- insuranceListDTO.setIsNingdeEraVehicleBatteryCheck(insuranceDTO.getIsNingdeEraVehicleBatteryCheck());
|
|
|
|
|
|
|
+ for (DaDiJointSalesResponse.InsuranceDTO.JointSalesSolutionVOSDTO jointSalesSolutionVO : insuranceDTO.getJointSalesSolutionVOS()) {
|
|
|
|
|
+ if (accidentalDriving.getProductCode().equals(jointSalesSolutionVO.getFormulaCode())) {
|
|
|
|
|
+ jointSalesSolutionVO.setFormulaGroupCode(insuranceDTO.getFormulaGroupCode());
|
|
|
|
|
+ jointSalesSolutionVO.setFormulaGroupName(insuranceDTO.getFormulaGroupName());
|
|
|
|
|
+ jointSalesSolutionVO.setIsNingdeEraVehicleBatteryCheck(insuranceDTO.getIsNingdeEraVehicleBatteryCheck());
|
|
|
if (stringListEntry.getKey().equals("accidentInsurance")) {
|
|
if (stringListEntry.getKey().equals("accidentInsurance")) {
|
|
|
- accidentList.add(insuranceListDTO);
|
|
|
|
|
|
|
+ accidentInsurance.add(jointSalesSolutionVO);
|
|
|
|
|
+ accidentInsure.add(jointSalesSolutionVO);
|
|
|
} else if (stringListEntry.getKey().equals("healthInsurance")) {
|
|
} else if (stringListEntry.getKey().equals("healthInsurance")) {
|
|
|
- healthList.add(insuranceListDTO);
|
|
|
|
|
|
|
+ healthInsurance.add(jointSalesSolutionVO);
|
|
|
|
|
+ healthInsure.add(jointSalesSolutionVO);
|
|
|
} else if (stringListEntry.getKey().equals("propertyInsurance")) {
|
|
} else if (stringListEntry.getKey().equals("propertyInsurance")) {
|
|
|
- propertyList.add(insuranceListDTO);
|
|
|
|
|
|
|
+ propertyInsurance.add(jointSalesSolutionVO);
|
|
|
|
|
+ propertyInsure.add(jointSalesSolutionVO);
|
|
|
}
|
|
}
|
|
|
|
|
+ break;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- this.accidentInsurance = accidentList;
|
|
|
|
|
- this.healthInsurance = healthList;
|
|
|
|
|
- this.propertyInsurance = propertyList;
|
|
|
|
|
- this.accidentInsure = accidentList.isEmpty() ? null : accidentList;
|
|
|
|
|
- this.healthInsure = healthList.isEmpty() ? null : healthList;
|
|
|
|
|
- this.propertyInsure = propertyList.isEmpty() ? null : propertyList;
|
|
|
|
|
} else {
|
|
} else {
|
|
|
this.wealthAccChecked = "0";
|
|
this.wealthAccChecked = "0";
|
|
|
this.accidentInsurance = new ArrayList<>();
|
|
this.accidentInsurance = new ArrayList<>();
|