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