|
|
@@ -52,7 +52,7 @@ public class AnShengCrawlerCalculatePremiumApplyMessage {
|
|
|
}
|
|
|
if (!ObjectUtils.isEmpty(quoteVo.getBiRiskInfoVo())) {
|
|
|
ContractsDTO baseContracts = getBaseContracts(quoteVo.getBiRiskInfoVo(), quoteVo, dataDTO, customerNegotiatePrice, userDetailResponse, departmentPlanCode.getCode(), departmentPlanCode.getProductCode(), checkVehicleCodeSecret);
|
|
|
- baseContracts.addBusinessInsurance(quoteVo.getKindInfoVo(),quoteVo,energyTypeCode);
|
|
|
+ baseContracts.addBusinessInsurance(quoteVo.getKindInfoVo(),quoteVo,energyTypeCode, customerNegotiatePrice);
|
|
|
baseContracts.addBiPolicyRatios();
|
|
|
this.contracts.add(baseContracts);
|
|
|
}
|
|
|
@@ -153,51 +153,65 @@ public class AnShengCrawlerCalculatePremiumApplyMessage {
|
|
|
System.out.println(i);
|
|
|
}
|
|
|
|
|
|
- public void addBusinessInsurance(List<KindInfoVo> kindInfoVo, QuoteVo quoteVo,String energyTypeCode) {
|
|
|
+ public void addBusinessInsurance(List<KindInfoVo> kindInfoVo, QuoteVo quoteVo,String energyTypeCode,String customerNegotiatePrice) {
|
|
|
String seatCount = String.valueOf(Integer.parseInt(quoteVo.getCarInfoVo().getSeatCount()) - 1);
|
|
|
for (KindInfoVo kind : kindInfoVo) {
|
|
|
PolicyCoveragesDTO dto = new PolicyCoveragesDTO(kind);
|
|
|
+ if (StringUtils.equals("机动车损失保险",dto.getDutyChineseName()) || StringUtils.equals("新能源汽车损失保险",dto.getDutyChineseName())){
|
|
|
+ dto.setInsuredAmount(customerNegotiatePrice);
|
|
|
+ }
|
|
|
String code = dto.getDutyCode();
|
|
|
if (StringUtils.equalsAny(code, "APL", "APLDUOM","NEAPL")) dto.setSeats(seatCount);
|
|
|
else if (StringUtils.equalsAny(code, "ADL", "NEADL")) dto.setSeats("1");
|
|
|
policyCoverages.add(dto);
|
|
|
}
|
|
|
- PolicyCoveragesDTO dto = new PolicyCoveragesDTO();
|
|
|
- dto.setDutyCode(StringUtils.equals("0",energyTypeCode) ? "STORRS" : "NESTORR");
|
|
|
- dto.setDutyChineseName(StringUtils.equals("0",energyTypeCode) ? "道路救援服务特约条款" : "道路救援服务特约条款(新能源车)");
|
|
|
- dto.setInsuredAmount("0");
|
|
|
- dto.setEquipmentInsureAmount("");
|
|
|
- dto.setPremiumRate("");
|
|
|
- dto.setDeductibleDiscount("");
|
|
|
- dto.setTotalActualPremium("");
|
|
|
- dto.setDeductionRate("0");
|
|
|
- dto.setServiceNum("2");
|
|
|
- dto.setIsTelpeson("1");
|
|
|
- dto.setTelPhone("");
|
|
|
- dto.setMileage("");
|
|
|
- dto.setSetMeal("");
|
|
|
- dto.setFireMultiple("");
|
|
|
- dto.setAllAmount("");
|
|
|
- dto.setRiskPremum("");
|
|
|
- dto.setSeats("");
|
|
|
- dto.setDeductible("");
|
|
|
- dto.setTotalStandardPremium(0);
|
|
|
- dto.setAddedValueTax(0);
|
|
|
- dto.setTotalAgreePremium(0);
|
|
|
- dto.setTotalNetPremium(0);
|
|
|
- dto.setNewEquipmentList(Lists.newArrayList());
|
|
|
- dto.setChargingPostDataList(Lists.newArrayList());
|
|
|
- dto.setFullYearPremium("");
|
|
|
- dto.setDieAmount("");
|
|
|
- dto.setMedicalAmount("");
|
|
|
- dto.setPropertyAmount("");
|
|
|
- dto.setNoFaultDieAmount("");
|
|
|
- dto.setNoFaultMedicalAmount("");
|
|
|
- dto.setNoFaultPropertyAmount("");
|
|
|
- dto.setBasePremium("");
|
|
|
-
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+
|
|
|
+
|
|
|
+ PolicyCoveragesDTO dto = new PolicyCoveragesDTO();
|
|
|
+ dto.setDutyCode(StringUtils.equals("0",energyTypeCode) ? "STORRS" : "NESTORR");
|
|
|
+ dto.setDutyChineseName(StringUtils.equals("0",energyTypeCode) ? "道路救援服务特约条款" : "道路救援服务特约条款(新能源车)");
|
|
|
+ dto.setInsuredAmount("0");
|
|
|
+ dto.setEquipmentInsureAmount("");
|
|
|
+ dto.setPremiumRate("");
|
|
|
+ dto.setDeductibleDiscount("");
|
|
|
+ dto.setTotalActualPremium("");
|
|
|
+ dto.setDeductionRate("0");
|
|
|
+ dto.setServiceNum("2");
|
|
|
+ dto.setIsTelpeson("1");
|
|
|
+ dto.setTelPhone("");
|
|
|
+ dto.setMileage("");
|
|
|
+ dto.setSetMeal("");
|
|
|
+ dto.setFireMultiple("");
|
|
|
+ dto.setAllAmount("");
|
|
|
+ dto.setRiskPremum("");
|
|
|
+ dto.setSeats("");
|
|
|
+ dto.setDeductible("");
|
|
|
+ dto.setTotalStandardPremium(0);
|
|
|
+ dto.setAddedValueTax(0);
|
|
|
+ dto.setTotalAgreePremium(0);
|
|
|
+ dto.setTotalNetPremium(0);
|
|
|
+ dto.setNewEquipmentList(Lists.newArrayList());
|
|
|
+ dto.setChargingPostDataList(Lists.newArrayList());
|
|
|
+ dto.setFullYearPremium("");
|
|
|
+ dto.setDieAmount("");
|
|
|
+ dto.setMedicalAmount("");
|
|
|
+ dto.setPropertyAmount("");
|
|
|
+ dto.setNoFaultDieAmount("");
|
|
|
+ dto.setNoFaultMedicalAmount("");
|
|
|
+ dto.setNoFaultPropertyAmount("");
|
|
|
+ dto.setBasePremium("");
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ */
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
public ContractsDTO(RiskInfoVo riskInfoVo, QuoteVo quoteVo, AnShengCrawlerSearchVehicleByVinResponse.DataDTO dataDTO,
|
|
|
String customerNegotiatePrice, AnShengCrawlerGetUserDetailResponse.DataDTO.AgentDefineDTO userDetailResponse,
|
|
|
String planCode, String productCode, String checkVehicleCodeSecret) {
|