|
|
@@ -261,14 +261,12 @@ public class YcBuildData {
|
|
|
|
|
|
//保费合计
|
|
|
double sumPermium = StringUtils.toDouble(rd.getBase().getNPrm());
|
|
|
- ;
|
|
|
-
|
|
|
|
|
|
|
|
|
quoteRespVo.setCiSumPermium(BigDecimal.valueOf(jqPremium).add(BigDecimal.valueOf(sumTax)).doubleValue());//交强险和车船税合计
|
|
|
quoteRespVo.setSumPermium(BigDecimal.valueOf(sumPermium).add(BigDecimal.valueOf(sumTax)).doubleValue());//保费合计
|
|
|
quoteRespVo.setTaxAmount(BigDecimal.valueOf(sumTax).doubleValue());//车船税
|
|
|
- if(null != rd.getPrmCoef()){
|
|
|
+ if (null != rd.getPrmCoef()) {
|
|
|
quoteRespVo.setTotalAdjustRate(StringUtils.toDouble(rd.getPrmCoef().getNTotDisc()));
|
|
|
}
|
|
|
quoteRespVo.setILogPreUdwMess(rd.getBase().getCWeRisk());//评分
|
|
|
@@ -284,40 +282,43 @@ public class YcBuildData {
|
|
|
quoteRespVo.setEndDateSy(StringUtils.toString(rd.getBase().getTInsrncEndTmSY()));
|
|
|
|
|
|
|
|
|
+ //交强险出险字符串
|
|
|
+ StringBuffer ciSB = new StringBuffer("交强险-");
|
|
|
+ //商业险出险字符串
|
|
|
+ StringBuffer biSB = new StringBuffer("商业险-");
|
|
|
+ if (null != rd.getVehicleAdjust()) {
|
|
|
+ //交强险过往出险记录
|
|
|
+ String jQRecordDanger = StringUtils.toString(rd.getVehicleAdjust().getJQRecordDanger(),"");
|
|
|
+ ciSB.append("交强险过往出险记录:");
|
|
|
+ ciSB.append(jQRecordDanger);
|
|
|
+ }
|
|
|
|
|
|
- //出险信息
|
|
|
- if(null != rd.getPrmCoef()){
|
|
|
- //连续承保期间出险次数
|
|
|
+ if (null != rd.getPrmCoef()) {
|
|
|
+ //商业险 连续承保期间出险次数
|
|
|
int nClaimTimes = StringUtils.toInt(rd.getPrmCoef().getNClaimTimes());
|
|
|
- //连续承保年数
|
|
|
- int nInsureYears = StringUtils.toInt(rd.getPrmCoef().getNInsureYears());
|
|
|
- // String.format("连续承保期间出险次数 %s ,连续承保年数 %s",nClaimTimes,nInsureYears);
|
|
|
- quoteRespVo.setAccidentInfoStr(String.format("连续承保期间出险次数 %s ,连续承保年数 %s",nClaimTimes,nInsureYears));
|
|
|
+ biSB.append("连续承保期间出险次数:");
|
|
|
+ biSB.append(nClaimTimes);
|
|
|
+
|
|
|
+// //连续承保年数
|
|
|
+// int nInsureYears = StringUtils.toInt(rd.getPrmCoef().getNInsureYears());
|
|
|
+ // String.format("连续承保期间出险次数 %s ,连续承保年数 %s",nClaimTimes,nInsureYears);
|
|
|
}
|
|
|
|
|
|
+ //出险信息
|
|
|
+ quoteRespVo.setAccidentInfoStr(String.format("%s , %s", ciSB.toString(), biSB.toString()));
|
|
|
+
|
|
|
//平台返回信息
|
|
|
- if(null != rd.getTfiWarnList()){
|
|
|
+ if (null != rd.getTfiWarnList()) {
|
|
|
//排空
|
|
|
List<TfiWarnListResponse.TfiWarnData> tfiWarnData = rd.getTfiWarnList().getTfiWarnData().stream().filter(item -> null != item).filter(item -> StringUtils.isNotEmpty(item.getWarnMessage())).collect(Collectors.toList());
|
|
|
List<String> warnMessageList = new ArrayList<>();
|
|
|
- tfiWarnData.stream().forEach(a ->{
|
|
|
+ tfiWarnData.stream().forEach(a -> {
|
|
|
warnMessageList.add(a.getWarnMessage());
|
|
|
});
|
|
|
quoteRespVo.setWarnMessageList(warnMessageList);
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
- //@TODO 真假单交需要确认
|
|
|
-// List<ExtendInfoDto> extendInfo = responseBodyC2.getExtendInfo();
|
|
|
-//// Map<String, String> maps = extendInfo.stream().collect(Collectors.toMap(ExtendInfoDto::getKey,ExtendInfoDto::getValue , (key1, key2) -> key2));
|
|
|
-// Map<String, String> maps = extendInfo.stream().collect(LinkedHashMap::new, (m, v) -> m.put(v.getKey(), v.getValue()), LinkedHashMap::putAll);
|
|
|
-// String relationType = maps.get("relationType");
|
|
|
-// quoteRespVo.setIszdj("0");
|
|
|
-// if ("7".equals(relationType)) {
|
|
|
-// quoteRespVo.setIszdj("1");
|
|
|
-// }
|
|
|
-
|
|
|
return quoteRespVo;
|
|
|
}
|
|
|
|