|
|
@@ -172,6 +172,45 @@ public class AnShengCrawlerCalculatePremiumApplyMessage {
|
|
|
*
|
|
|
|
|
|
|
|
|
+ public PolicyCoveragesDTO(KindInfoVo kind) {
|
|
|
+ this.dutyCode = kind.getKindCode();
|
|
|
+ this.dutyChineseName = kind.getKindName();
|
|
|
+ this.insuredAmount = (StringUtils.equals(kind.getKindCode(),"STORRS") || StringUtils.equals(kind.getKindCode(),"NESTORR")) ? "" : kind.getUnitAmount() ;
|
|
|
+ this.equipmentInsureAmount = "";
|
|
|
+ this.premiumRate = "";
|
|
|
+ this.deductibleDiscount = "";
|
|
|
+ this.totalActualPremium = "";
|
|
|
+ this.deductionRate = "0";
|
|
|
+ this.serviceNum = StringUtils.isNotEmpty(kind.getServiceTimes()) ? kind.getServiceTimes() : "";
|
|
|
+ this.isTelpeson = (StringUtils.equals(kind.getKindCode(),"STORRS") || StringUtils.equals(kind.getKindCode(),"NESTORR")) ? "1" : "";
|
|
|
+ this.telPhone = "";
|
|
|
+ this.mileage = "";
|
|
|
+ this.setMeal = "";
|
|
|
+ this.fireMultiple = "";
|
|
|
+ this.allAmount = "";
|
|
|
+ this.riskPremum = "";
|
|
|
+ this.seats = kind.getQuantity();
|
|
|
+ this.deductible = "";
|
|
|
+ this.totalStandardPremium = 0;
|
|
|
+ this.addedValueTax = 0;
|
|
|
+ this.totalAgreePremium = 0;
|
|
|
+ this.totalNetPremium = 0;
|
|
|
+ this.newEquipmentList = new ArrayList<>();
|
|
|
+ this.chargingPostDataList = new ArrayList<>();
|
|
|
+ this.fullYearPremium = "";
|
|
|
+ this.dieAmount = "";
|
|
|
+ this.medicalAmount = "";
|
|
|
+ this.propertyAmount = "";
|
|
|
+ this.noFaultDieAmount = "";
|
|
|
+ this.noFaultMedicalAmount = "";
|
|
|
+ this.noFaultPropertyAmount = "";
|
|
|
+ this.basePremium = "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
PolicyCoveragesDTO dto = new PolicyCoveragesDTO();
|
|
|
dto.setDutyCode(StringUtils.equals("0",energyTypeCode) ? "STORRS" : "NESTORR");
|
|
|
dto.setDutyChineseName(StringUtils.equals("0",energyTypeCode) ? "道路救援服务特约条款" : "道路救援服务特约条款(新能源车)");
|
|
|
@@ -1544,16 +1583,17 @@ public class AnShengCrawlerCalculatePremiumApplyMessage {
|
|
|
private String basePremium;
|
|
|
|
|
|
public PolicyCoveragesDTO(KindInfoVo kind) {
|
|
|
+ boolean b = StringUtils.equals(kind.getKindCode(), "STORRS") || StringUtils.equals(kind.getKindCode(), "NESTORR");
|
|
|
this.dutyCode = kind.getKindCode();
|
|
|
this.dutyChineseName = kind.getKindName();
|
|
|
- this.insuredAmount = kind.getUnitAmount();
|
|
|
+ this.insuredAmount = b ? "0" : kind.getUnitAmount();
|
|
|
this.equipmentInsureAmount = "";
|
|
|
this.premiumRate = "";
|
|
|
this.deductibleDiscount = "";
|
|
|
this.totalActualPremium = "";
|
|
|
- this.deductionRate = "";
|
|
|
- this.serviceNum = "";
|
|
|
- this.isTelpeson = "";
|
|
|
+ this.deductionRate = "0";
|
|
|
+ this.serviceNum = b ? kind.getServiceTimes() : "";
|
|
|
+ this.isTelpeson = b ? "1" : "";
|
|
|
this.telPhone = "";
|
|
|
this.mileage = "";
|
|
|
this.setMeal = "";
|