|
|
@@ -262,6 +262,38 @@ public class TKQuotationBaseServiceImpl implements QuotationBaseService {
|
|
|
|
|
|
@Override
|
|
|
public void downloadPolicy(OrderBase orderBase) {
|
|
|
+ String token = "";
|
|
|
+ String tplatformId = "";
|
|
|
+ String proposalNo = "";
|
|
|
+
|
|
|
+ OrderCompleteAgentResult.OrderCompleteAgentResultEntity orderCompleteAgentResultEntity = httpService.orderCompleteAgent(token, tplatformId, proposalNo);
|
|
|
+
|
|
|
+ if (orderCompleteAgentResultEntity == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 投保单,base64
|
|
|
+ String proposal = httpService.proposalDownload(proposalNo);
|
|
|
+
|
|
|
+ // 商业险子保单号BI
|
|
|
+ String subPolicyNoBi = orderCompleteAgentResultEntity.getSubPolicyNoBi();
|
|
|
+
|
|
|
+ if (subPolicyNoBi != null) {
|
|
|
+ // 商业险子保单,base64格式
|
|
|
+ String policy = httpService.imageDownloadPolicy(subPolicyNoBi);
|
|
|
+ // 获取发票下载地址 url
|
|
|
+ String pdf = httpService.imageGetInvoiceURL(subPolicyNoBi, "PDF");
|
|
|
+ }
|
|
|
+
|
|
|
+ // 交强险子保单号CI
|
|
|
+ String subPolicyNoCi = orderCompleteAgentResultEntity.getSubPolicyNoCi();
|
|
|
+
|
|
|
+ if (subPolicyNoCi != null) {
|
|
|
+ // 交强险子保单,base64格式
|
|
|
+ String policy = httpService.imageDownloadPolicy(subPolicyNoCi);
|
|
|
+ // 获取发票下载地址 url
|
|
|
+ String pdf = httpService.imageGetInvoiceURL(subPolicyNoCi, "PDF");
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|