|
@@ -133,7 +133,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(),
|
|
this.itemKindList = ItemKindListDTO.toItemKindListDTOList(actualValue, quoteInfoVo.getKindList(),
|
|
|
- Integer.parseInt(quoteInfoVo.getCarInfo().getSeatCount()) - 1, vehicleModelInfosDTO);
|
|
|
|
|
|
|
+ Integer.parseInt(quoteInfoVo.getCarInfo().getSeatCount()) - 1, quoteInfoVo.getCarInfo().isNewEnergy());
|
|
|
// 浮动因子信息
|
|
// 浮动因子信息
|
|
|
this.profitDataList = ProfitDataListDTO.toCoefficient(quoteVo.getCoefficient());
|
|
this.profitDataList = ProfitDataListDTO.toCoefficient(quoteVo.getCoefficient());
|
|
|
// 驾意险
|
|
// 驾意险
|
|
@@ -1152,13 +1152,14 @@ public class CalculatePremiumRequest implements Serializable {
|
|
|
return insuredListDTO;
|
|
return insuredListDTO;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static List<ItemKindListDTO> toItemKindListDTOList(String actualValue, List<KindInfoVo> kindList, int quantity,
|
|
|
|
|
- ModelQueryResponse.VehicleModelInfosDTO vehicleModelInfosDTO) {
|
|
|
|
|
|
|
+ public static List<ItemKindListDTO> toItemKindListDTOList(String actualValue, List<KindInfoVo> kindList, int quantity, boolean isEnergy ) {
|
|
|
List<ItemKindListDTO> list = new ArrayList<>();
|
|
List<ItemKindListDTO> list = new ArrayList<>();
|
|
|
String[] insuranceType = InsuranceTypeCorrespondence.getZjConnectInsuranceType();
|
|
String[] insuranceType = InsuranceTypeCorrespondence.getZjConnectInsuranceType();
|
|
|
- if ("D6,D8,D12,".contains(vehicleModelInfosDTO.getPowerTypeCode() + ",")) {//纯电动 燃料电池 插电式混合动力 归属为新能源产品
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (isEnergy) {//纯电动 燃料电池 插电式混合动力 归属为新能源产品
|
|
|
insuranceType = InsuranceTypeCorrespondence.getZjConnectInsuranceTypeNewEnergy();
|
|
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();
|