|
@@ -27,6 +27,7 @@ import java.math.BigDecimal;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
import java.util.Objects;
|
|
import java.util.Objects;
|
|
|
|
|
+import java.util.Optional;
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -192,6 +193,7 @@ public final class DaJiaCrawlerQuoteResultsVoBuild {
|
|
|
}
|
|
}
|
|
|
boolean sy = CollectionUtil.isNotEmpty(businessInsurance.getItemKinds());
|
|
boolean sy = CollectionUtil.isNotEmpty(businessInsurance.getItemKinds());
|
|
|
if (sy) {
|
|
if (sy) {
|
|
|
|
|
+ String flatCarReinsuredMessage = businessInsurance.getProductInfo().getFlatCarReinsuredMessage();
|
|
|
scoreVo.setSyLossRation(StringUtils.isNotEmpty(businessInsurance.getCoefficientInfo().getLossRatioBi()) ? businessInsurance.getCoefficientInfo().getLossRatioBi() : null);
|
|
scoreVo.setSyLossRation(StringUtils.isNotEmpty(businessInsurance.getCoefficientInfo().getLossRatioBi()) ? businessInsurance.getCoefficientInfo().getLossRatioBi() : null);
|
|
|
scoreVo.setBiClaims(String.valueOf(new BigDecimal(businessInsurance.getCoefficientInfo().getLastPolicyNum()).intValue()));
|
|
scoreVo.setBiClaims(String.valueOf(new BigDecimal(businessInsurance.getCoefficientInfo().getLastPolicyNum()).intValue()));
|
|
|
String renewalFrequency = businessInsurance.getCoefficientInfo().getRenewalFrequency();
|
|
String renewalFrequency = businessInsurance.getCoefficientInfo().getRenewalFrequency();
|
|
@@ -215,6 +217,16 @@ public final class DaJiaCrawlerQuoteResultsVoBuild {
|
|
|
}
|
|
}
|
|
|
CompulsoryInsuranceDTO.CoefficientInfoDTO coefficientInfo = daJiaCrawlerSaveResponse.getCompulsoryInsurance().getCoefficientInfo();
|
|
CompulsoryInsuranceDTO.CoefficientInfoDTO coefficientInfo = daJiaCrawlerSaveResponse.getCompulsoryInsurance().getCoefficientInfo();
|
|
|
JSONArray scoreArray = new JSONArray();
|
|
JSONArray scoreArray = new JSONArray();
|
|
|
|
|
+ Optional.ofNullable(businessInsurance)
|
|
|
|
|
+ .map(BusinessInsuranceDTO::getProductInfo)
|
|
|
|
|
+ .map(BusinessInsuranceDTO.ProductInfoDTO::getFlatCarReinsuredMessage)
|
|
|
|
|
+ .filter(StringUtils::isNotEmpty)
|
|
|
|
|
+ .ifPresent(msg ->
|
|
|
|
|
+ scoreArray.add(new JSONObject()
|
|
|
|
|
+ .fluentPut("scoreName", "上年承保险别")
|
|
|
|
|
+ .fluentPut("scoreKey", "priorCoverage")
|
|
|
|
|
+ .fluentPut("score", msg))
|
|
|
|
|
+ );
|
|
|
scoreArray.add(new JSONObject()
|
|
scoreArray.add(new JSONObject()
|
|
|
.fluentPut("scoreName","交强类型评分")
|
|
.fluentPut("scoreName","交强类型评分")
|
|
|
.fluentPut("scoreKey","jqPubScores")
|
|
.fluentPut("scoreKey","jqPubScores")
|