|
@@ -649,7 +649,6 @@ public class ZijinOrderApiServiceImpl implements ZijinOrderApiService {
|
|
|
HttpHeaders httpHeaders = zijinRequestApiComponents.getHttpHeaders(insAreaCompany.getAgreementId());
|
|
HttpHeaders httpHeaders = zijinRequestApiComponents.getHttpHeaders(insAreaCompany.getAgreementId());
|
|
|
|
|
|
|
|
// 2 请求查看订单状态
|
|
// 2 请求查看订单状态
|
|
|
- OrderNoRequest orderNoRequest = new OrderNoRequest(insAreaCompany.getId());
|
|
|
|
|
QueryOrderDetailResponse queryOrderDetailResponse = zijinRequestApiComponents.getOrderDetail(insAreaCompany.getInsOrderNo(), httpHeaders);
|
|
QueryOrderDetailResponse queryOrderDetailResponse = zijinRequestApiComponents.getOrderDetail(insAreaCompany.getInsOrderNo(), httpHeaders);
|
|
|
QueryOrderDetailResponse.ResultObjDTO resultObj = queryOrderDetailResponse.getResultObj();
|
|
QueryOrderDetailResponse.ResultObjDTO resultObj = queryOrderDetailResponse.getResultObj();
|
|
|
|
|
|
|
@@ -688,4 +687,22 @@ public class ZijinOrderApiServiceImpl implements ZijinOrderApiService {
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public HttpResult sendCheckCarLink(String companyId) {
|
|
|
|
|
+ InsAreaCompany insAreaCompany = insAreaCompanyService.getByIdIsExist(companyId);
|
|
|
|
|
+ // 1 通过 协议id获取配置实体
|
|
|
|
|
+ HttpHeaders httpHeaders = zijinRequestApiComponents.getHttpHeaders(insAreaCompany.getAgreementId());
|
|
|
|
|
+ InsOrders insOrders = insOrdersService.getById(insAreaCompany.getOrderno());
|
|
|
|
|
+ String ownerName = insOrders.getOwnerinfo().toJavaObject(CustomerInfoVo.class).getName();
|
|
|
|
|
+ String applyMobile = insOrders.getApplyinfo().toJavaObject(CustomerInfoVo.class).getMobile();
|
|
|
|
|
+
|
|
|
|
|
+ SendCheckCarLinkRequest sendCheckCarLinkRequest = new SendCheckCarLinkRequest(
|
|
|
|
|
+ insAreaCompany.getInsOrderNo(),
|
|
|
|
|
+ ownerName,
|
|
|
|
|
+ applyMobile
|
|
|
|
|
+ );
|
|
|
|
|
+ zijinRequestApiComponents.sendCheckCarLink(sendCheckCarLinkRequest, httpHeaders);
|
|
|
|
|
+ return HttpResult.ok("【验车链接】短信已发送投保人,请及时处理。");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|