소스 검색

永诚调整新能源报价bug

785834757 1 년 전
부모
커밋
c1e1584c1a
1개의 변경된 파일11개의 추가작업 그리고 1개의 파일을 삭제
  1. 11 1
      src/main/java/com/ydtech/modules/ins/model/yc/YcBuildData.java

+ 11 - 1
src/main/java/com/ydtech/modules/ins/model/yc/YcBuildData.java

@@ -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());