|
|
@@ -654,6 +654,8 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
AccidentResponseVo o = quoteRespVo.getAccidentInfo().get(0);
|
|
|
if (Objects.nonNull(o)) {
|
|
|
o.setQuantity(String.valueOf(insAreaCompanyAccidentalDriving.getQuantity()));
|
|
|
+ // 爬虫返回的驾意险名称有可能和系统内的不一致 重置下驾意险名称
|
|
|
+ o.setProjectName(insAreaCompanyAccidentalDriving.getRideRiskName());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -730,10 +732,20 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
}
|
|
|
|
|
|
// 赔付率
|
|
|
- quoteRespVo.setLossRation(Double.parseDouble(response.getOther().getLossRation()));
|
|
|
+ if(Objects.nonNull(response.getOther().getLossRation())) {
|
|
|
+ quoteRespVo.setLossRation(Double.parseDouble(response.getOther().getLossRation()));
|
|
|
+ insAreaCompany.setLossRation(Double.parseDouble(response.getOther().getLossRation()));
|
|
|
+ }
|
|
|
// 交强赔付率
|
|
|
- quoteRespVo.setJqLossRation(Double.parseDouble(response.getOther().getJqLossRation()));
|
|
|
- quoteRespVo.setSyLossRation(Double.parseDouble(response.getOther().getSyLossRation()));
|
|
|
+ if(Objects.nonNull(response.getOther().getJqLossRation())) {
|
|
|
+ quoteRespVo.setJqLossRation(Double.parseDouble(response.getOther().getJqLossRation()));
|
|
|
+ insAreaCompany.setJqLossRation(Double.parseDouble(response.getOther().getJqLossRation()));
|
|
|
+ }
|
|
|
+ // 商业赔付率
|
|
|
+ if(Objects.nonNull(response.getOther().getSyLossRation())) {
|
|
|
+ quoteRespVo.setSyLossRation(Double.parseDouble(response.getOther().getSyLossRation()));
|
|
|
+ insAreaCompany.setSyLossRation(Double.parseDouble(response.getOther().getSyLossRation()));
|
|
|
+ }
|
|
|
|
|
|
|
|
|
insAreaCompanyService.insertCompanyAndOrders(insAreaCompany, insAreaCompanyAccidentalDriving);
|