Преглед изворни кода

Merge remote-tracking branch 'origin/master'

wanghao пре 3 месеци
родитељ
комит
64b34c6e0c

+ 4 - 0
tenant/insurance/quotation-guoren/src/main/java/com/jzg/quotation/guoren/api/service/Impl/GuoRenApiRequestImpl.java

@@ -584,6 +584,10 @@ public class GuoRenApiRequestImpl implements GuoRenApiRequest {
     public List<GuoRenSpecialAgreementVo> getSpecialAgreements(QuoteVo quoteVo) {
         List<InsCompanyClause> companyClauseVos = quoteVo.getSpecialInfoVo();
         List<GuoRenSpecialAgreementVo> list = new ArrayList<>();
+        if (CollUtil.isEmpty(companyClauseVos)) {
+            logger.warn("国任获取特约数据失败,公司条款为空");
+            return list;
+        }
         for (InsuranceRisk insuranceRisk : InsuranceRisk.getInsuranceRisk()) {
             List<GuoRenSpecialAgreementVo> collect = companyClauseVos.stream().map(x -> new GuoRenSpecialAgreementVo(x, insuranceRisk)).collect(Collectors.toList());
             list.addAll(collect);

+ 4 - 0
tenant/insurance/quotation-guoren/src/main/java/com/jzg/quotation/guoren/crawler/service/impl/GuoRenCrawlerRequestImpl.java

@@ -1,5 +1,6 @@
 package com.jzg.quotation.guoren.crawler.service.impl;
 
+import cn.hutool.core.collection.CollUtil;
 import com.jzg.commons.constants.InsuranceRisk;
 import com.jzg.commons.constants.dict.InsOrderStatusEnum;
 import com.jzg.commons.entity.orders.po.InsOrders;
@@ -196,6 +197,9 @@ public class GuoRenCrawlerRequestImpl implements GuoRenCrawlerRequest {
     private List<GuoRenSpecialAgreementVo> getSpecialAgreements(QuoteVo quoteVo) {
         List<InsCompanyClause> companyClauseVos = quoteVo.getSpecialInfoVo();
         List<GuoRenSpecialAgreementVo> list = new ArrayList<>();
+        if (CollUtil.isEmpty(companyClauseVos)) {
+            return list;
+        }
         for (InsuranceRisk insuranceRisk : InsuranceRisk.getInsuranceRisk()) {
             List<GuoRenSpecialAgreementVo> collect = companyClauseVos.stream()
                     .map(x -> new GuoRenSpecialAgreementVo(x, insuranceRisk))