Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QG
customer-service
Commits
ed79b777
Commit
ed79b777
authored
May 17, 2022
by
吴琼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客服系统交易凭证导出添加token
parent
50f22ff0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
TransactionReceiptRecordServiceImpl.java
...mer/service/impl/TransactionReceiptRecordServiceImpl.java
+5
-2
No files found.
src/main/java/cn/quantgroup/customer/service/impl/TransactionReceiptRecordServiceImpl.java
View file @
ed79b777
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment