|
@@ -122,7 +122,7 @@ public class CalculatePremiumRequest implements Serializable {
|
|
|
// 投被保人信息
|
|
// 投被保人信息
|
|
|
this.insuredList = InsuredListDTO.toInsuredListDTOList(quoteInfoVo.getPolicyHolderInfo(), quoteInfoVo.getInsuredPersonInfo());
|
|
this.insuredList = InsuredListDTO.toInsuredListDTOList(quoteInfoVo.getPolicyHolderInfo(), quoteInfoVo.getInsuredPersonInfo());
|
|
|
// 险别信息
|
|
// 险别信息
|
|
|
- this.itemKindList = ItemKindListDTO.toItemKindListDTOList(actualValue, quoteInfoVo.getKindList(), Integer.parseInt(quoteInfoVo.getCarInfo().getSeatCount()) - 1);
|
|
|
|
|
|
|
+ this.itemKindList = ItemKindListDTO.toItemKindListDTOList(actualValue, quoteInfoVo.getKindList(), Integer.parseInt(quoteInfoVo.getCarInfo().getSeatCount()) - 1, vehicleModelInfosDTO);
|
|
|
// 驾意险
|
|
// 驾意险
|
|
|
this.carPolicySubInfoList = CarPolicySubInfoListDTO.toCarPolicySubInfoListDTO(zjQuoteAccidentVos);
|
|
this.carPolicySubInfoList = CarPolicySubInfoListDTO.toCarPolicySubInfoListDTO(zjQuoteAccidentVos);
|
|
|
// 交强险
|
|
// 交强险
|
|
@@ -838,6 +838,21 @@ public class CalculatePremiumRequest implements Serializable {
|
|
|
*/
|
|
*/
|
|
|
@JsonProperty("isInvokeJingYou")
|
|
@JsonProperty("isInvokeJingYou")
|
|
|
private String isInvokeJingYou;
|
|
private String isInvokeJingYou;
|
|
|
|
|
+ /**
|
|
|
|
|
+ *新能源车标志
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("newEnergyFlag")
|
|
|
|
|
+ private String newEnergyFlag;
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 纯电续航里程(公里)
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("pureRange")
|
|
|
|
|
+ private String pureRange;
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 能源种类
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("fuelType")
|
|
|
|
|
+ private String fuelType;
|
|
|
|
|
|
|
|
// /**
|
|
// /**
|
|
|
// * 交强险过户日期
|
|
// * 交强险过户日期
|
|
@@ -887,6 +902,17 @@ public class CalculatePremiumRequest implements Serializable {
|
|
|
this.oriModelName = vehicleModelInfosDTO.getModelName();
|
|
this.oriModelName = vehicleModelInfosDTO.getModelName();
|
|
|
this.vehicleStyleUniqueId = vehicleModelInfosDTO.getVehicleId();
|
|
this.vehicleStyleUniqueId = vehicleModelInfosDTO.getVehicleId();
|
|
|
this.isInvokeJingYou = "1";
|
|
this.isInvokeJingYou = "1";
|
|
|
|
|
+ if("D6,D8,D12,".contains(vehicleModelInfosDTO.getPowerTypeCode()+",")) {//纯电动 燃料电池 插电式混合动力 归属为新能源产品
|
|
|
|
|
+ this.newEnergyFlag = "1";
|
|
|
|
|
+ this.pureRange = "";
|
|
|
|
|
+ if("D6".equals(vehicleModelInfosDTO.getPowerTypeCode())){
|
|
|
|
|
+ this.fuelType = "1";
|
|
|
|
|
+ }else if("D8".equals(vehicleModelInfosDTO.getPowerTypeCode())){
|
|
|
|
|
+ this.fuelType = "2";
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.fuelType = "3";
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public String getCarKindDetailId(int seatCount) {
|
|
public String getCarKindDetailId(int seatCount) {
|
|
@@ -1072,16 +1098,21 @@ public class CalculatePremiumRequest implements Serializable {
|
|
|
insuredListDTO.setKindCode(MotorVehicleInsuranceEnum.MVI_BZ.getCode());
|
|
insuredListDTO.setKindCode(MotorVehicleInsuranceEnum.MVI_BZ.getCode());
|
|
|
insuredListDTO.setKindName(MotorVehicleInsuranceEnum.MVI_BZ.getName());
|
|
insuredListDTO.setKindName(MotorVehicleInsuranceEnum.MVI_BZ.getName());
|
|
|
insuredListDTO.setRiskCode(RiskCodeEnum.RC_0590.getCode());
|
|
insuredListDTO.setRiskCode(RiskCodeEnum.RC_0590.getCode());
|
|
|
|
|
+ insuredListDTO.setAmount("200000");
|
|
|
return insuredListDTO;
|
|
return insuredListDTO;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static List<ItemKindListDTO> toItemKindListDTOList(String actualValue, List<KindInfoVo> kindList, int quantity) {
|
|
|
|
|
|
|
+ public static List<ItemKindListDTO> toItemKindListDTOList(String actualValue, List<KindInfoVo> kindList, int quantity, ModelQueryResponse.VehicleModelInfosDTO vehicleModelInfosDTO) {
|
|
|
List<ItemKindListDTO> list = new ArrayList<>();
|
|
List<ItemKindListDTO> list = new ArrayList<>();
|
|
|
|
|
+ String[] insuranceType = InsuranceTypeCorrespondence.getZjConnectInsuranceType();
|
|
|
|
|
+ if("D6,D8,D12,".contains(vehicleModelInfosDTO.getPowerTypeCode()+",")) {//纯电动 燃料电池 插电式混合动力 归属为新能源产品
|
|
|
|
|
+ insuranceType = InsuranceTypeCorrespondence.getZjConnectInsuranceTypeNewEnergy();
|
|
|
|
|
+ }
|
|
|
for (KindInfoVo kindInfoVo : kindList) {
|
|
for (KindInfoVo kindInfoVo : kindList) {
|
|
|
String code = kindInfoVo.getKindCode();
|
|
String code = kindInfoVo.getKindCode();
|
|
|
ItemKindListDTO itemKindListDTO = new ItemKindListDTO();
|
|
ItemKindListDTO itemKindListDTO = new ItemKindListDTO();
|
|
|
int i = ArrayUtil.indexOf(InsuranceTypeCorrespondence.getJinZhangGuiType(), code);
|
|
int i = ArrayUtil.indexOf(InsuranceTypeCorrespondence.getJinZhangGuiType(), code);
|
|
|
- String s = InsuranceTypeCorrespondence.getZjConnectInsuranceType()[i];
|
|
|
|
|
|
|
+ String s = insuranceType[i];
|
|
|
MotorVehicleInsuranceEnum contractEnum = Enum.valueOf(MotorVehicleInsuranceEnum.class, "MVI_" + s);
|
|
MotorVehicleInsuranceEnum contractEnum = Enum.valueOf(MotorVehicleInsuranceEnum.class, "MVI_" + s);
|
|
|
itemKindListDTO.kindCode = contractEnum.getCode();
|
|
itemKindListDTO.kindCode = contractEnum.getCode();
|
|
|
itemKindListDTO.kindName = contractEnum.getName();
|
|
itemKindListDTO.kindName = contractEnum.getName();
|