فهرست منبع

Merge remote-tracking branch 'origin/master'

785834757 3 ماه پیش
والد
کامیت
475e20bdb8

+ 6 - 0
tenant/insurance/quotation-taishan/src/main/java/com/jzg/quotation/taishan/crawler/build/TaiShanCrawlerQuoteRequestVoBuild.java

@@ -254,6 +254,12 @@ public class TaiShanCrawlerQuoteRequestVoBuild {
                 continue;
                 continue;
             }
             }
 
 
+            // 跳过保额为空的险种,避免数值解析时空指针异常
+            if (infoVo.getAmount() == null) {
+                log.warn("泰山报价-跳过保额为空的险种: platformKindCode={}, kindCode={}", kindCode, infoVo.getKindCode());
+                continue;
+            }
+
             TaiShanCrawlerQuotationRequest.BusinessInsurance.ItemKind itemKind;
             TaiShanCrawlerQuotationRequest.BusinessInsurance.ItemKind itemKind;
 
 
             // 获取对应险种的模板默认值(与Python insurance_Map对应)
             // 获取对应险种的模板默认值(与Python insurance_Map对应)