Commit ed79b777 authored by 吴琼's avatar 吴琼

客服系统交易凭证导出添加token

parent 50f22ff0
...@@ -421,7 +421,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR ...@@ -421,7 +421,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
log.info("需要签章得pdf路径:"+maxExportBatchNo+"/交易凭证/"+directory+"/"+pdfFileName); log.info("需要签章得pdf路径:"+maxExportBatchNo+"/交易凭证/"+directory+"/"+pdfFileName);
filePathList.add(map); filePathList.add(map);
//调用合同中心进行签章 //调用合同中心进行签章
restContract(filePathList,emailList); String accessToken = request.getHeader("Access-Token");
restContract(filePathList,emailList,accessToken);
} }
} catch (Exception e) { } catch (Exception e) {
sftpUtil.logout(); sftpUtil.logout();
...@@ -502,7 +503,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR ...@@ -502,7 +503,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
* 调用签章接口 * 调用签章接口
* @param filePathList * @param filePathList
*/ */
private void restContract(List <Map<String,Object>> filePathList,List <Map<String,Object>> emailList){ private void restContract(List <Map<String,Object>> filePathList,List <Map<String,Object>> emailList,String accessToken){
log.info("contractUrl /contract/batch/sign 调用签章接口"); log.info("contractUrl /contract/batch/sign 调用签章接口");
if(filePathList.isEmpty()){ if(filePathList.isEmpty()){
deleteRedis("exportZipFile"); deleteRedis("exportZipFile");
...@@ -511,6 +512,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR ...@@ -511,6 +512,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
String url = contractUrl + "/contract/batch/sign"; String url = contractUrl + "/contract/batch/sign";
Map<String, String> header = Maps.newHashMap(); Map<String, String> header = Maps.newHashMap();
header.put("Content-type", "application/json"); header.put("Content-type", "application/json");
header.put("Access-Token",accessToken);
log.info("contractUrl /contract/batch/sign 调用签章接口 accessToken,"+accessToken);
log.info("contractUrl /contract/batch/sign 调用签章接口 begin,"+filePathList); log.info("contractUrl /contract/batch/sign 调用签章接口 begin,"+filePathList);
String contractResult = httpService.post(url, header, filePathList); String contractResult = httpService.post(url, header, filePathList);
JSONObject json = JSONObject.parseObject(contractResult); JSONObject json = JSONObject.parseObject(contractResult);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment