|
|
@@ -43,7 +43,7 @@ public class YangGuangApiRequestImpl implements YangGuangApiRequest {
|
|
|
|
|
|
private final YangGuangApiRequestComponent yangGuangApiRequestComponent;
|
|
|
|
|
|
- private final YangGuangApiOrderService yangGuangCrawlerOrderService;
|
|
|
+ private final YangGuangApiOrderService yangGuangApiOrderService;
|
|
|
|
|
|
private final YangGuangApiProperties yangGuangApiProperties;
|
|
|
|
|
|
@@ -90,7 +90,7 @@ public class YangGuangApiRequestImpl implements YangGuangApiRequest {
|
|
|
return handleFailedQuote(response, quoteVo);
|
|
|
} else {
|
|
|
// 商业险有重复投保提示时 设置商业险起保时间 重复递归报价 ps:商业险重复投保不会返回到errorMessage 只会返回到remarkBi 并且会显示报价成功
|
|
|
- if (!response.getRemarkBi().equals("")) {
|
|
|
+ if (response.getRemarkBi() != null && !response.getRemarkBi().equals("")) {
|
|
|
String remarkBi = response.getRemarkBi();
|
|
|
Pattern pattern = Pattern.compile("终保日期:(\\d{12})");
|
|
|
Matcher matcher = pattern.matcher(remarkBi);
|
|
|
@@ -110,12 +110,12 @@ public class YangGuangApiRequestImpl implements YangGuangApiRequest {
|
|
|
}
|
|
|
|
|
|
private QuoteResultsVo handleFailedQuote(YangGuangAccuracyCalculateResponse response,QuoteVo quoteVo) {
|
|
|
- yangGuangCrawlerOrderService.saveOrderInfo(quoteVo,response);
|
|
|
+ yangGuangApiOrderService.saveOrderInfo(quoteVo,response);
|
|
|
return YangGuangApiQuoteResultsVoBuild.buildQuoteFailResultsVo(response);
|
|
|
}
|
|
|
|
|
|
private QuoteResultsVo handleSuccessfulQuote(YangGuangAccuracyCalculateResponse response, QuoteVo quoteVo) {
|
|
|
- yangGuangCrawlerOrderService.saveOrderInfo(quoteVo,response);
|
|
|
+ yangGuangApiOrderService.saveOrderInfo(quoteVo,response);
|
|
|
return YangGuangApiQuoteResultsVoBuild.buildQuoteResultsVo(quoteVo, response);
|
|
|
}
|
|
|
|
|
|
@@ -143,7 +143,7 @@ public class YangGuangApiRequestImpl implements YangGuangApiRequest {
|
|
|
@Override
|
|
|
public UnderwritingResultsVo underwriting(UnderwritingVo underwritingVo) throws JsonProcessingException {
|
|
|
OrderBase orderBase = underwritingVo.getOrder();
|
|
|
- YangGuangApiOrder yangGuangApiOrder = yangGuangCrawlerOrderService.getById(orderBase.getOrdersNo());
|
|
|
+ YangGuangApiOrder yangGuangApiOrder = yangGuangApiOrderService.getById(orderBase.getOrdersNo());
|
|
|
// 账号配置信息
|
|
|
YangGuangConfigureParameters parameters = ConfigureParametersConversion.conversionEntity(YangGuangConfigureParameters.class, orderBase
|
|
|
.getAttributionInformationVo()
|
|
|
@@ -214,7 +214,7 @@ public class YangGuangApiRequestImpl implements YangGuangApiRequest {
|
|
|
public void uploadImage(InsuranceUploadImageVo insuranceUploadImageVo) {
|
|
|
try {
|
|
|
OrderBase orderBase = insuranceUploadImageVo.getOrder();
|
|
|
- YangGuangApiOrder yangGuangApiOrder = yangGuangCrawlerOrderService.getById(orderBase.getOrdersNo());
|
|
|
+ YangGuangApiOrder yangGuangApiOrder = yangGuangApiOrderService.getById(orderBase.getOrdersNo());
|
|
|
// 配置信息
|
|
|
YangGuangConfigureParameters parameters = ConfigureParametersConversion.conversionEntity(YangGuangConfigureParameters.class, orderBase
|
|
|
.getAttributionInformationVo()
|