|
@@ -115,7 +115,7 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
// 折扣
|
|
// 折扣
|
|
|
crawlerQuoteRequest.setDiscount(t.getDiscount());
|
|
crawlerQuoteRequest.setDiscount(t.getDiscount());
|
|
|
// 上次订单
|
|
// 上次订单
|
|
|
- if(StringUtils.isNotEmpty(t.getLastCompanyId())){
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(t.getLastCompanyId())) {
|
|
|
InsAreaCompany insAreaCompany = insAreaCompanyService.getById(t.getLastCompanyId());
|
|
InsAreaCompany insAreaCompany = insAreaCompanyService.getById(t.getLastCompanyId());
|
|
|
crawlerQuoteRequest.setPlyappno(insAreaCompany.getInsOrderNo());
|
|
crawlerQuoteRequest.setPlyappno(insAreaCompany.getInsOrderNo());
|
|
|
}
|
|
}
|
|
@@ -132,7 +132,7 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
InsAreaCompanyAccidentalDriving insAreaCompanyAccidentalDriving = new InsAreaCompanyAccidentalDriving();
|
|
InsAreaCompanyAccidentalDriving insAreaCompanyAccidentalDriving = new InsAreaCompanyAccidentalDriving();
|
|
|
insAreaCompanyAccidentalDriving.convertCrawler(t);
|
|
insAreaCompanyAccidentalDriving.convertCrawler(t);
|
|
|
//处理订单信息
|
|
//处理订单信息
|
|
|
- QuoteRespVo responseVo = responseOrder(response, quoteRespVo, ptlAgreementAttribution,insAreaCompanyAccidentalDriving);
|
|
|
|
|
|
|
+ QuoteRespVo responseVo = responseOrder(response, quoteRespVo, ptlAgreementAttribution, insAreaCompanyAccidentalDriving);
|
|
|
|
|
|
|
|
return HttpResult.ok("成功", responseVo);
|
|
return HttpResult.ok("成功", responseVo);
|
|
|
}
|
|
}
|
|
@@ -365,11 +365,16 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
if (!ObjectUtils.isEmpty(infoList)) {
|
|
if (!ObjectUtils.isEmpty(infoList)) {
|
|
|
quoteRespVo.getWarnMessageList().addAll(infoList);
|
|
quoteRespVo.getWarnMessageList().addAll(infoList);
|
|
|
}
|
|
}
|
|
|
|
|
+ // 交强是否续保
|
|
|
|
|
+ quoteRespVo.setJqRenewal(other.getJqRenewalFlag());
|
|
|
|
|
+ // 商业是否续保
|
|
|
|
|
+ quoteRespVo.setSyRenewal(other.getSyRenewalFlag());
|
|
|
return quoteRespVo;
|
|
return quoteRespVo;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private QuoteRespVo responseOrder(CrawlerQuoteResponse response, QuoteRespVo quoteRespVo,
|
|
private QuoteRespVo responseOrder(CrawlerQuoteResponse response, QuoteRespVo quoteRespVo,
|
|
|
- PtlAgreementAttribution ptlAgreementAttribution,InsAreaCompanyAccidentalDriving insAreaCompanyAccidentalDriving) {
|
|
|
|
|
|
|
+ PtlAgreementAttribution ptlAgreementAttribution,
|
|
|
|
|
+ InsAreaCompanyAccidentalDriving insAreaCompanyAccidentalDriving) {
|
|
|
//保存订单信息
|
|
//保存订单信息
|
|
|
InsAreaCompany insAreaCompany = new InsAreaCompany(quoteRespVo, ptlAgreementAttribution);
|
|
InsAreaCompany insAreaCompany = new InsAreaCompany(quoteRespVo, ptlAgreementAttribution);
|
|
|
|
|
|
|
@@ -382,12 +387,11 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//太平绿黄红区
|
|
//太平绿黄红区
|
|
|
- for (String item:quoteRespVo.getWarnMessageList())
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ for (String item : quoteRespVo.getWarnMessageList()) {
|
|
|
String regex = "小货车.{0,5}承保业务";
|
|
String regex = "小货车.{0,5}承保业务";
|
|
|
Pattern pattern = Pattern.compile(regex);
|
|
Pattern pattern = Pattern.compile(regex);
|
|
|
Matcher matcher = pattern.matcher(item);
|
|
Matcher matcher = pattern.matcher(item);
|
|
|
- if(matcher.find()){
|
|
|
|
|
|
|
+ if (matcher.find()) {
|
|
|
insAreaCompany.setTpColorScore(item);
|
|
insAreaCompany.setTpColorScore(item);
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
@@ -396,7 +400,7 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
|
|
|
|
|
// 保险公司订单号
|
|
// 保险公司订单号
|
|
|
insAreaCompany.setInsOrderNo(response.getOrderNo());
|
|
insAreaCompany.setInsOrderNo(response.getOrderNo());
|
|
|
- insAreaCompanyService.insertCompanyAndOrders(insAreaCompany,insAreaCompanyAccidentalDriving);
|
|
|
|
|
|
|
+ insAreaCompanyService.insertCompanyAndOrders(insAreaCompany, insAreaCompanyAccidentalDriving);
|
|
|
quoteRespVo.setCompanyId(insAreaCompany.getId());
|
|
quoteRespVo.setCompanyId(insAreaCompany.getId());
|
|
|
return quoteRespVo;
|
|
return quoteRespVo;
|
|
|
}
|
|
}
|
|
@@ -459,7 +463,7 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
insAreaCompany.setSypolicyno(crawlerAuditResponse.getSyApplication());
|
|
insAreaCompany.setSypolicyno(crawlerAuditResponse.getSyApplication());
|
|
|
|
|
|
|
|
//设置支付时间
|
|
//设置支付时间
|
|
|
- if(insAreaCompany.getPayDate()==null){
|
|
|
|
|
|
|
+ if (insAreaCompany.getPayDate() == null) {
|
|
|
insAreaCompany.setPayDate(LocalDateTime.now());
|
|
insAreaCompany.setPayDate(LocalDateTime.now());
|
|
|
}
|
|
}
|
|
|
// 3 交叉销售
|
|
// 3 交叉销售
|