|
|
@@ -686,6 +686,18 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// if(Objects.nonNull(response.getOther().getScore())){
|
|
|
+// insAreaCompany.setYaScore(response.getOther().getScore());
|
|
|
+// }
|
|
|
+//
|
|
|
+// if(Objects.nonNull(response.getOther().getCifeeFloat())){
|
|
|
+// insAreaCompany.setCifeeFloat(response.getOther().getCifeeFloat());
|
|
|
+// }
|
|
|
+//
|
|
|
+// if(Objects.nonNull(response.getOther().getBifeeFloat())){
|
|
|
+// insAreaCompany.setBifeeFloat(response.getOther().getBifeeFloat());
|
|
|
+// }
|
|
|
+
|
|
|
// 保险公司订单号
|
|
|
insAreaCompany.setInsOrderNo(response.getOrderNo());
|
|
|
// 紫金 爬虫 添加订单id 到扩展字段中
|
|
|
@@ -695,6 +707,8 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
insAreaCompany.setExtendInfo(extendInfo.toString());
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
insAreaCompanyService.insertCompanyAndOrders(insAreaCompany, insAreaCompanyAccidentalDriving);
|
|
|
//清空驾意险信息 重新复制
|
|
|
// quoteRespVo.getAccident().clear();
|
|
|
@@ -970,7 +984,7 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public boolean yaSendCode(String companyId,String smsCode) {
|
|
|
+ public YaCrawlerSendSmsCodeResponse yaSendCode(String companyId,String smsCode) {
|
|
|
InsAreaCompany insAreaCompany = insAreaCompanyService.getById(companyId);
|
|
|
PtlAgreementAttribution attribution = ptlAgreementAttributionService.getById(insAreaCompany.getAgreementId());
|
|
|
PtlAgreementAttributionDto attributionDto = new PtlAgreementAttributionDto();
|
|
|
@@ -979,10 +993,7 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
YaCrawlerSendSmsCodeRequest crawlerSendSmsCodeRequest = new YaCrawlerSendSmsCodeRequest(attributionDto,insAreaCompany.getInsOrderNo(),"" );
|
|
|
YaCrawlerSendSmsCodeResponse response = insCrawlerOrderComponents.request(apiUrl, InsuranceEnum.YAIC.getCode(), "获取验证码",
|
|
|
crawlerSendSmsCodeRequest, YaCrawlerSendSmsCodeResponse.class);
|
|
|
- if (response.getCode() == 200){
|
|
|
- return true;
|
|
|
- }
|
|
|
- return false;
|
|
|
+ return response;
|
|
|
}
|
|
|
|
|
|
|