xuqiang 2 месяцев назад
Родитель
Сommit
fd05cff01c

+ 2 - 85
tenant/insurance/quotation-ansheng/src/main/java/com/jzg/quotation/ansheng/crawler/entity/request/AnShengCrawlerCalculatePremiumApplyMessage.java

@@ -168,89 +168,6 @@ 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) ? "道路救援服务特约条款" : "道路救援服务特约条款(新能源车)");
-         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) {
@@ -1586,13 +1503,13 @@ public class AnShengCrawlerCalculatePremiumApplyMessage {
                 boolean b = StringUtils.equals(kind.getKindCode(), "STORRS") || StringUtils.equals(kind.getKindCode(), "NESTORR");
                 this.dutyCode = kind.getKindCode();
                 this.dutyChineseName = kind.getKindName();
-                this.insuredAmount = b ? "0" : kind.getUnitAmount();
+                this.insuredAmount = b ? "0" : kind.getAmount();
                 this.equipmentInsureAmount = "";
                 this.premiumRate = "";
                 this.deductibleDiscount = "";
                 this.totalActualPremium = "";
                 this.deductionRate = "0";
-                this.serviceNum = b ? kind.getServiceTimes() : "";
+                this.serviceNum = b ? kind.getAmount() : "";
                 this.isTelpeson = b ? "1" : "";
                 this.telPhone = "";
                 this.mileage = "";