|
|
@@ -68,7 +68,17 @@ public class YcBuildData {
|
|
|
rd.getCvrgListSY().getCvrgSY().forEach(a -> {
|
|
|
|
|
|
String kindcode = a.getCCvrgNo();
|
|
|
- int i = ArrayUtil.indexOf(InsuranceTypeCorrespondence.getYongchengConnectInsuranceType(), kindcode);
|
|
|
+ int i = -1;
|
|
|
+ // 燃油
|
|
|
+ if(rd.getVhl().getFuelType().equals("32773001")){
|
|
|
+ i = ArrayUtil.indexOf(InsuranceTypeCorrespondence.getYongchengConnectInsuranceType(), kindcode);
|
|
|
+ }
|
|
|
+ // 新能源
|
|
|
+ if(rd.getVhl().getFuelType().equals("32773002")){
|
|
|
+ i = ArrayUtil.indexOf(InsuranceTypeCorrespondence.getYongchengConnectInsuranceTypeNewEmergy(), kindcode);
|
|
|
+ }else{
|
|
|
+ i = ArrayUtil.indexOf(InsuranceTypeCorrespondence.getYongchengConnectInsuranceTypeNewEmergy(), kindcode);
|
|
|
+ }
|
|
|
InsurKind insurKind = Enum.valueOf(InsurKind.class, InsuranceTypeCorrespondence.getJinZhangGuiType()[i]);
|
|
|
|
|
|
double premium = StringUtils.parseDouble(a.getNPrm());
|