Parcourir la source

Merge remote-tracking branch 'origin/master'

wanghao il y a 6 jours
Parent
commit
f24a1ae326

+ 8 - 1
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/crawler/build/TkCrawlerQuoteResultsBuild.java

@@ -1,5 +1,7 @@
 package com.jzg.quotation.taikang.crawler.build;
 
+import cn.hutool.core.util.ReUtil;
+import cn.hutool.core.util.StrUtil;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.alibaba.nacos.common.utils.CollectionUtils;
@@ -160,10 +162,15 @@ public class TkCrawlerQuoteResultsBuild {
         redisCacheUtil.setPreciseInitResult(preciseInitResult, quoteResultsVo.getOrdersNo());
         // 评分
         JSONArray scoreJson = new JSONArray();
+        // 报价bug统计表173,修改:保单综合评分只保留字母部分
+        String businessScore = preciseInitResult.getBusinessScore();
+        if (StrUtil.isNotBlank(businessScore)){
+            businessScore = ReUtil.replaceAll(businessScore, "\\d", "");
+        }
         scoreJson.add(new JSONObject()
                 .fluentPut("scoreName", "保单综合评分")
                 .fluentPut("scoreKey", "businessScore")
-                .fluentPut("score", preciseInitResult.getBusinessScore()));
+                .fluentPut("score", businessScore));
         scoreJson.add(new JSONObject()
                 .fluentPut("scoreName", "风险评分")
                 .fluentPut("scoreKey", "riskScore")