|
@@ -112,6 +112,8 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
throw new SystemException(response.getMessage());
|
|
throw new SystemException(response.getMessage());
|
|
|
}
|
|
}
|
|
|
QuoteRespVo quoteRespVo = getQuoteRespVo(response, quoteInfoVo);
|
|
QuoteRespVo quoteRespVo = getQuoteRespVo(response, quoteInfoVo);
|
|
|
|
|
+ //处理订单信息
|
|
|
|
|
+ QuoteRespVo responseVo= responseOrder(response, quoteRespVo, ptlAgreementAttribution);
|
|
|
//添加调用费用匹配功能
|
|
//添加调用费用匹配功能
|
|
|
String insCom = "";
|
|
String insCom = "";
|
|
|
if (ptlAgreementAttribution.getInsCompanyId() != null && ptlAgreementAttribution.getInsCompanyId().length() > 4) {
|
|
if (ptlAgreementAttribution.getInsCompanyId() != null && ptlAgreementAttribution.getInsCompanyId().length() > 4) {
|
|
@@ -119,10 +121,9 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
}
|
|
}
|
|
|
//(先开启众安的)
|
|
//(先开启众安的)
|
|
|
if ("ZAPA".equals(insCom)) {
|
|
if ("ZAPA".equals(insCom)) {
|
|
|
- feeRuleSchemeService.dealFeeOrderInfo(quoteInfoVo, quoteRespVo, ptlAgreementAttribution.getId(), response.getOrderNo());
|
|
|
|
|
|
|
+ feeRuleSchemeService.dealFeeOrderInfo(quoteInfoVo, quoteRespVo, ptlAgreementAttribution.getId(), responseVo.getCompanyId());
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- return responseOrder(response, quoteRespVo, ptlAgreementAttribution);
|
|
|
|
|
|
|
+ return HttpResult.ok("成功", responseVo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -313,7 +314,7 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
return quoteRespVo;
|
|
return quoteRespVo;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private HttpResult<QuoteRespVo> responseOrder(CrawlerQuoteResponse response, QuoteRespVo quoteRespVo, PtlAgreementAttribution ptlAgreementAttribution) {
|
|
|
|
|
|
|
+ private QuoteRespVo responseOrder(CrawlerQuoteResponse response, QuoteRespVo quoteRespVo, PtlAgreementAttribution ptlAgreementAttribution) {
|
|
|
//保存订单信息
|
|
//保存订单信息
|
|
|
InsAreaCompany insAreaCompany = new InsAreaCompany(quoteRespVo, ptlAgreementAttribution);
|
|
InsAreaCompany insAreaCompany = new InsAreaCompany(quoteRespVo, ptlAgreementAttribution);
|
|
|
|
|
|
|
@@ -329,7 +330,7 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
insAreaCompany.setInsOrderNo(response.getOrderNo());
|
|
insAreaCompany.setInsOrderNo(response.getOrderNo());
|
|
|
insAreaCompanyService.insertCompanyAndOrders(insAreaCompany);
|
|
insAreaCompanyService.insertCompanyAndOrders(insAreaCompany);
|
|
|
quoteRespVo.setCompanyId(insAreaCompany.getId());
|
|
quoteRespVo.setCompanyId(insAreaCompany.getId());
|
|
|
- return HttpResult.ok("成功", quoteRespVo);
|
|
|
|
|
|
|
+ return quoteRespVo;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|