RPA项目

rpa


电子保单/投保单下载epolicyDownLoad

<p><strong>电子保单下载</strong></p> <p>获取请求数据</p> <pre><code class="language-java"> String biz =entity.bizPolicyCode; //商业保单号 String efc =entity.efcPolicyCode; //交强保单号 String printType= entity.config.get("printType"); //打印类型 //printType :bz 交强险标志,空 保单, mtpltk 交强条款,motortk 商业条款 ,tbt 投保单 mtpltbt 交强投保单 motortbt 商业投保单 String engineNo= entity.config.get("engineNo"); //发动机号 String applicantName= entity.config.get("applicantName");//投保人名称 String applicantIdNo= entity.config.get("applicantIdNo"); //投保人证件号 String insureName= entity.config.get("insureName");// 被保人名称 String insureIdNo= entity.config.get("insureIdNo");// 被保人证件号 String carOwnerName= entity.config.get("carOwnerName");//车主名称 String carOwnerIdNo= entity.config.get("carOwnerIdNo");//车主证件号 String vinNo= entity.config.get("vinNo");//车架号 String licenseNo= entity.config.get("licenseNo");// 车牌号 String email= entity.config.get("email");// 邮箱 --备用字段 String phone= entity.config.get("phone");// 电话-- 备用字段 String proposal= entity.config.get("proposal");//投保单号-商业-- 备用字段. String phmtplProposalone= entity.config.get("mtplProposal");// 投保单号-交强-- 备用字段 String planListProposal= entity.config.get("planListProposal");// 交叉销售投保单号 -- 备用字段 String type= entity.config.get("type");//商业险 参考下方码表 String orderType= entity.config.get("orderType");//投保单或者保单 </code></pre> <p>【电子投保单】 orderType: proposal 电子投保单; type: proposalEfc 交强险电子投保单;proposalBiz 商业险电子投保单 mtplProposal:交强险投保单号 proposal:商业险投保单号 【电子保单】 orderType: policy 电子保单 type:efc 交强险电子单;biz 商业险电子单;bz 交强险保单标志;cross 交叉销售保单 mtplPolicyNo:交强险保单号 policyNo:商业险保单号 planListPolicyNo:交叉销售保单号</p> <p>返回内容</p> <p>//pdf下载到本地返回 def image = com.baoxian.utils.sender.HttpSender.doGet(autoTask.getHttpClient(),url,null,&quot;UTF-8&quot;,null,true);</p> <pre><code>LOG.info("成功获取PDF{}",((byte[])image).length) String pathUrlYuantu=System.getProperty("user.dir")+"/pdf/2011-"+idNo+".pdf"; byte[] yuantu = image; javax.imageio.stream.FileImageOutputStream yuantuPut = new javax.imageio.stream.FileImageOutputStream(new File(pathUrlYuantu)); yuantuPut.write(yuantu); yuantuPut.close(); //String localip= com.baoxian.util.DataUtil.ipconfig(); String localip= com.github.danielwegener.logback.kafka.LocalIp.localIp</code></pre> <p>商业险保单或投保单 payUrlJson.put(&quot;biz&quot;, &quot;<a href="http://"+localip+":8080/auto_insurance_rpa_war/accountActor/download?fileName=2011-"+idNo+".pdf">http://"+localip+":8080/auto_insurance_rpa_war/accountActor/download?fileName=2011-"+idNo+".pdf</a>&quot;); 意外险保单或投保单 payUrlJson.put(&quot;&quot;nonInsurance&quot;, &quot;<a href="http://"+localip+":8080/auto_insurance_rpa_war/accountActor/download?fileName=2011-"+idNo+".pdf">http://"+localip+":8080/auto_insurance_rpa_war/accountActor/download?fileName=2011-"+idNo+".pdf</a>&quot;); 交强保单或投保单payUrlJson.put(&quot;efc&quot;,&quot;<a href="http://"+localip+":8080/auto_insurance_rpa_war/accountActor/download?fileName=2011-"+idNo+".pdf">http://"+localip+":8080/auto_insurance_rpa_war/accountActor/download?fileName=2011-"+idNo+".pdf</a>&quot;); 交强险标志 payUrlJson.put(&quot;jqSign&quot;, &quot;<a href="http://"+localip+":8080/auto_insurance_rpa_war/accountActor/download?fileName=2011-"+idNo+".pdf">http://"+localip+":8080/auto_insurance_rpa_war/accountActor/download?fileName=2011-"+idNo+".pdf</a>&quot;); if (enquiry.payInfo != null) { enquiry.payInfo.payUrl = payUrlJson.toJSONString(); } else { enquiry.payInfo = new com.baoxian.model.car.PayInfo() enquiry.payInfo.payUrl = payUrlJson.toJSONString(); }</p> <pre><code>//pdf直接返回连接 com.alibaba.fastjson.JSONObject payUrlJson = new com.alibaba.fastjson.JSONObject();</code></pre> <p>payUrlJson.put(&quot;type&quot;,&quot;zip&quot;) payUrlJson.put(&quot;efc&quot;,url) payUrlJson.put(&quot;jqSign&quot;,url) payUrlJson.put(&quot;biz&quot;,url) if (entity.payInfo != null) { entity.payInfo.payUrl = payUrlJson.toJSONString(); } else { entity.payInfo = new com.baoxian.model.car.PayInfo() entity.payInfo.payUrl = payUrlJson.toJSONString(); }</p>

页面列表

ITEM_HTML