|
@@ -193,7 +193,6 @@ 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();
|
|
@@ -217,16 +216,6 @@ 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")
|
|
@@ -270,6 +259,15 @@ public final class DaJiaCrawlerQuoteResultsVoBuild {
|
|
|
.fluentPut("scoreKey","syPubScores")
|
|
.fluentPut("scoreKey","syPubScores")
|
|
|
.fluentPut("score",coefficientInfo1.getPubScores()));
|
|
.fluentPut("score",coefficientInfo1.getPubScores()));
|
|
|
}
|
|
}
|
|
|
|
|
+ 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)));
|
|
|
scoreVo.setScoreJson(scoreArray);
|
|
scoreVo.setScoreJson(scoreArray);
|
|
|
return scoreVo;
|
|
return scoreVo;
|
|
|
}
|
|
}
|