Ver Fonte

fix 恒邦报价自选方案无保额时提示无保额信息,承保规则返回用户手输的描述

liub há 3 meses atrás
pai
commit
55a9f7f9d6

+ 1 - 1
tenant/insurance/quotation-hengbang/src/main/java/com/jzg/quotation/hengbang/crawler/component/HengBangCrawlerRequestComponent.java

@@ -329,7 +329,7 @@ public class HengBangCrawlerRequestComponent {
                 if (status == 500) {
                     JSONObject resObj = JSONObject.parseObject(responseBody);
                     String detail = resObj.getString("detail");
-                    if (detail.contains("重复投保")) {
+                    if (StrUtil.isNotBlank(detail) && detail.contains("重复投保")) {
                         String time = extractDuplicateEndTime(detail);
                         if (time != null) {
                             calculationRequest.setBegintimeCi(DateUtil.toUtcDateTime(time));

+ 4 - 0
tenant/insurance/quotation-hengbang/src/main/java/com/jzg/quotation/hengbang/crawler/entity/request/HbCrawlerCalculationRequest.java

@@ -1,6 +1,7 @@
 package com.jzg.quotation.hengbang.crawler.entity.request;
 
 import cn.hutool.core.collection.CollUtil;
+import cn.hutool.core.util.StrUtil;
 import com.jzg.commons.entity.quote.vo.AccidentalDrivingVo;
 import com.jzg.commons.entity.quote.vo.KindInfoVo;
 import com.jzg.commons.entity.quote.vo.QuoteVo;
@@ -131,6 +132,9 @@ public class HbCrawlerCalculationRequest extends HbBaseRequest {
     public List<EpersonliabilityDTO> getEpersonliabilityList(List<KindInfoVo> kindInfoVoList, String depreciationPrice) {
         List<EpersonliabilityDTO> epersonliabilityDTOList = new ArrayList<>();
         for (KindInfoVo kindInfoVo : kindInfoVoList) {
+            if (StrUtil.isBlank(kindInfoVo.getAmount())) {
+                throw new RuntimeException(kindInfoVo.getPlatformKindName() + "保险保额为空,请检查数据!");
+            }
             EpersonliabilityDTO epersonliabilityDTO = new EpersonliabilityDTO();
             epersonliabilityDTO.setKindcode(kindInfoVo.getKindCode());
             epersonliabilityDTO.setLiabname(kindInfoVo.getKindName());

+ 1 - 1
tenant/organization/src/main/resources/mapper/PtlAgreementUndwrtRulesMapper.xml

@@ -18,7 +18,7 @@
     </resultMap>
 
     <sql id="Base_Column_List">
-        paur.id,paur.agreement_id,paur.rule_description,paur.parent_id,
+        paur.id,paur.agreement_id,paur.rule_description,paur.parent_id,paur.input_description,
         paur.order_num,paur.create_by,paur.create_time,
         paur.update_by,paur.update_time,paur.is_delete
     </sql>