Эх сурвалжийг харах

Merge remote-tracking branch 'origin/master'

lixiaolong 2 сар өмнө
parent
commit
4262d8bc98

+ 11 - 1
tenant/insurance/quotation-zhongmei/src/main/java/com/jzg/quotation/zhongmei/crawler/build/ZmCrawlerQuoteResultVoBuild.java

@@ -175,7 +175,7 @@ public final class ZmCrawlerQuoteResultVoBuild {
                         .orElse(List.of())
                         .stream()
                         .filter(c -> c != null && c.getContractMain() != null
-                                && "0365".equals(c.getContractMain().getRiskCode()))
+                                && "0361".equals(c.getContractMain().getRiskCode()))
                         .findFirst()
                         .orElse(null);
         JSONArray scoreJson = new JSONArray();
@@ -194,6 +194,11 @@ public final class ZmCrawlerQuoteResultVoBuild {
                         .fluentPut("scoreName", "商业不浮动原因")
                         .fluentPut("scoreKey","SyRateFloatFlag")
                         .fluentPut("score", ZmCrawlerFloatFlag.getNoAdjustReasonDesc(noAjustReasonCode)));
+            } else {
+                scoreJson.add(new JSONObject()
+                        .fluentPut("scoreName", "商业不浮动原因")
+                        .fluentPut("scoreKey","SyRateFloatFlag")
+                        .fluentPut("score", ""));
             }
         }
 
@@ -228,6 +233,11 @@ public final class ZmCrawlerQuoteResultVoBuild {
                     .fluentPut("scoreKey","JqRateFloatFlag")
                     .fluentPut("score", ZmCrawlerFloatFlag.getJqRateFloatDesc(contractMainJq.getRateFloatFlag())));
 
+        } else {
+            scoreJson.add(new JSONObject()
+                    .fluentPut("scoreName", "交强不浮动原因")
+                    .fluentPut("scoreKey","JqRateFloatFlag")
+                    .fluentPut("score", ""));
         }
         if (contractMainSy != null) {
             scoreJson.add(new JSONObject()