|
|
@@ -68,7 +68,9 @@ public class PremiumReq {
|
|
|
@JsonIgnore
|
|
|
public static PremiumReq buildQuoteParam(BaseQuoteInfoVo yaQuoteInfoVo, CarPriceResp.DataDTO carPriceResult,
|
|
|
VinQueryResp.DataDTO vinQ, boolean isNoCar,
|
|
|
- List<GuoRenSpecialAgreementVo> specialAgreementVo) {
|
|
|
+ List<GuoRenSpecialAgreementVo> specialAgreementVo,
|
|
|
+ String noCarPremium,
|
|
|
+ String goodsCode) {
|
|
|
|
|
|
CustomerInfoVo ownerInfo = yaQuoteInfoVo.getOwnerInfo();
|
|
|
|
|
|
@@ -82,13 +84,13 @@ public class PremiumReq {
|
|
|
if (a.getRiskCode().equals(InsuranceRisk.TRAFFIC_CODE)) {
|
|
|
List<GuoRenSpecialAgreementVo> trafficSpecialAgreement =
|
|
|
specialAgreementVo.stream().filter(x -> InsuranceRisk.TRAFFIC_CODE.equals(x.getRiskCode())).collect(Collectors.toList());
|
|
|
- CiDTO ciDto = buildCiDto(vehicleAndVesselTax, ownerInfo, a, isNoCar, trafficSpecialAgreement);
|
|
|
+ CiDTO ciDto = buildCiDto(vehicleAndVesselTax, ownerInfo, a, isNoCar, trafficSpecialAgreement, noCarPremium, goodsCode);
|
|
|
ciDto.setTrafficTime(a.getStartDate());
|
|
|
quoteReq.setCi(ciDto);
|
|
|
} else if (a.getRiskCode().equals(InsuranceRisk.BUSINESS_CODE)) {
|
|
|
List<GuoRenSpecialAgreementVo> businessSpecialAgreement =
|
|
|
specialAgreementVo.stream().filter(x -> InsuranceRisk.BUSINESS_CODE.equals(x.getRiskCode())).collect(Collectors.toList());
|
|
|
- BiDTO biDto = buildBiDto(ownerInfo, a, kindInfoVList, carPriceResult, vinQ, isNoCar, businessSpecialAgreement);
|
|
|
+ BiDTO biDto = buildBiDto(ownerInfo, a, kindInfoVList, carPriceResult, vinQ, isNoCar, businessSpecialAgreement, noCarPremium, goodsCode);
|
|
|
biDto.setBusinessTime(a.getStartDate());
|
|
|
quoteReq.setBi(biDto);
|
|
|
}
|
|
|
@@ -96,12 +98,12 @@ public class PremiumReq {
|
|
|
|
|
|
//未投保交强
|
|
|
if (null == quoteReq.getCi()) {
|
|
|
- CiDTO ciDto = buildCiDto(null, ownerInfo, null, false, new ArrayList<>());
|
|
|
+ CiDTO ciDto = buildCiDto(null, ownerInfo, null, false, new ArrayList<>(), "", "");
|
|
|
quoteReq.setCi(ciDto);
|
|
|
}
|
|
|
//未投保商业
|
|
|
if (null == quoteReq.getBi()) {
|
|
|
- BiDTO biDto = buildBiDto(ownerInfo, null, null, null, vinQ, false, new ArrayList<>());
|
|
|
+ BiDTO biDto = buildBiDto(ownerInfo, null, null, null, vinQ, false, new ArrayList<>(), "", "");
|
|
|
quoteReq.setBi(biDto);
|
|
|
}
|
|
|
|
|
|
@@ -122,7 +124,8 @@ public class PremiumReq {
|
|
|
*/
|
|
|
@JsonIgnore
|
|
|
public static CiDTO buildCiDto(VehicleAndVesselTax vehicleAndVesselTax, CustomerInfoVo ownerInfo, RiskInfoVo ciRiskInfo,
|
|
|
- boolean isNoCar, List<GuoRenSpecialAgreementVo> specialAgreementVo) {
|
|
|
+ boolean isNoCar, List<GuoRenSpecialAgreementVo> specialAgreementVo, String noCarPremium,
|
|
|
+ String goodsCode) {
|
|
|
CiDTO ciDto = new CiDTO();
|
|
|
ciDto.setPrpTrenewal(new ArrayList<>());
|
|
|
ciDto.setPrpTmainRate(new CiDTO.PrpTmainRateDTO());
|
|
|
@@ -157,6 +160,9 @@ public class PremiumReq {
|
|
|
ciPrpTmain.setNoCarFlag("1");
|
|
|
//车+非车标识 车加非车必传:N
|
|
|
ciPrpTmain.setOrderFlag("N");
|
|
|
+
|
|
|
+ ciPrpTmain.setNoCarCodes(goodsCode);
|
|
|
+ ciPrpTmain.setNoCarPremium(noCarPremium);
|
|
|
}
|
|
|
prpTcarshipTax = new CiDTO.PrpTcarshipTaxDTO(vehicleAndVesselTax);
|
|
|
/**
|
|
|
@@ -206,7 +212,8 @@ public class PremiumReq {
|
|
|
@JsonIgnore
|
|
|
public static BiDTO buildBiDto(CustomerInfoVo ownerInfo, RiskInfoVo biRiskInfo, List<KindInfoVo> kindInfoVList,
|
|
|
CarPriceResp.DataDTO carPriceResult, VinQueryResp.DataDTO vinQ, boolean isNoCar,
|
|
|
- List<GuoRenSpecialAgreementVo> specialAgreementVo) {
|
|
|
+ List<GuoRenSpecialAgreementVo> specialAgreementVo,String noCarPremium,
|
|
|
+ String goodsCode) {
|
|
|
|
|
|
BiDTO biDto = new BiDTO();
|
|
|
biDto.setPrpTmainRate(new BiDTO.PrpTmainRateDTO());
|
|
|
@@ -267,6 +274,9 @@ public class PremiumReq {
|
|
|
biPrpTmain.setNoCarFlag("1");
|
|
|
//车+非车标识 车加非车必传:N
|
|
|
biPrpTmain.setOrderFlag("N");
|
|
|
+
|
|
|
+ biPrpTmain.setNoCarCodes(goodsCode);
|
|
|
+ biPrpTmain.setNoCarPremium(noCarPremium);
|
|
|
}
|
|
|
|
|
|
List<BiDTO.PrptitemkindListDTO> prptitemkindList = buildBiKindList(kindInfoVList, carPriceResult, biRiskInfo, vinQ);
|
|
|
@@ -767,6 +777,14 @@ public class PremiumReq {
|
|
|
@JSONField(name = "startDate")
|
|
|
private String startDate;
|
|
|
|
|
|
+ @JsonProperty(value = "noCarCodes")
|
|
|
+ @JSONField(name = "noCarCodes")
|
|
|
+ private String noCarCodes;
|
|
|
+
|
|
|
+ @JsonProperty(value = "noCarPremium")
|
|
|
+ @JSONField(name = "noCarPremium")
|
|
|
+ private String noCarPremium;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@NoArgsConstructor
|
|
|
@@ -1231,6 +1249,14 @@ public class PremiumReq {
|
|
|
@JSONField(name = "startDate")
|
|
|
private String startDate;
|
|
|
|
|
|
+ @JsonProperty(value = "noCarCodes")
|
|
|
+ @JSONField(name = "noCarCodes")
|
|
|
+ private String noCarCodes;
|
|
|
+
|
|
|
+ @JsonProperty(value = "noCarPremium")
|
|
|
+ @JSONField(name = "noCarPremium")
|
|
|
+ private String noCarPremium;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@NoArgsConstructor
|