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
80182b24
Commit
80182b24
authored
Mar 08, 2022
by
吴琼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xiugai
parent
f98a3e53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
TransactionReceiptRecordServiceImpl.java
...mer/service/impl/TransactionReceiptRecordServiceImpl.java
+7
-5
No files found.
src/main/java/cn/quantgroup/customer/service/impl/TransactionReceiptRecordServiceImpl.java
View file @
80182b24
...
...
@@ -393,11 +393,11 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
record
.
setExportBatchNo
(
maxExportBatchNo
.
intValue
()+
1
);
//生成pdf
String
directory
=
record
.
getSerialNo
()+
record
.
getUserName
();
String
pdfFileName
=
record
.
getOrderNo
()+
".pdf"
;
String
pdfFileName
=
record
.
get
UserId
()+
record
.
getUserName
()+
record
.
get
OrderNo
()+
".pdf"
;
FileToZip
.
mkdir
(
uploadLocalPath
+
directory
);
log
.
info
(
"导出文件生成pdf begin
"
,
pdfFileName
);
log
.
info
(
"导出文件生成pdf begin
:"
+
pdfFileName
);
generatePDF
(
transactionReceiptVOList
.
get
(
0
),
uploadLocalPath
+
"/"
+
directory
+
"/"
+
pdfFileName
);
log
.
info
(
"导出文件生成pdf end
"
,
pdfFileName
);
log
.
info
(
"导出文件生成pdf end
:"
+
pdfFileName
);
File
file1
=
new
File
(
uploadLocalPath
+
"/"
+
directory
+
"/"
+
pdfFileName
);
InputStream
inputStream
=
new
FileInputStream
(
file1
);
sftpUtil
.
upload
(
basePath
+
maxExportBatchNo
+
"/交易凭证/"
,
directory
,
pdfFileName
,
inputStream
);
...
...
@@ -405,6 +405,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
Map
<
String
,
Object
>
map
=
Maps
.
newHashMap
();
map
.
put
(
"userId"
,
record
.
getUserId
());
map
.
put
(
"fileAddress"
,
maxExportBatchNo
+
"/交易凭证/"
+
directory
+
"/"
+
pdfFileName
);
log
.
info
(
"需要签章得pdf路径:"
+
maxExportBatchNo
+
"/交易凭证/"
+
directory
+
"/"
+
pdfFileName
);
filePathList
.
add
(
map
);
}
}
catch
(
Exception
e
)
{
...
...
@@ -425,10 +426,10 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
String
url
=
contractUrl
+
"/contract/batch/sign"
;
Map
<
String
,
String
>
header
=
Maps
.
newHashMap
();
header
.
put
(
"Content-type"
,
"application/json"
);
log
.
info
(
"contractUrl /contract/batch/sign 调用签章接口 begin
"
,
filePathList
);
log
.
info
(
"contractUrl /contract/batch/sign 调用签章接口 begin
,"
+
filePathList
);
String
contractResult
=
httpService
.
post
(
url
,
header
,
filePathList
);
JSONObject
json
=
JSONObject
.
parseObject
(
contractResult
);
log
.
info
(
"contractUrl /contract/batch/sign 调用签章接口 end
"
,
json
);
log
.
info
(
"contractUrl /contract/batch/sign 调用签章接口 end
,"
+
json
);
String
jsonResult
=
json
.
getString
(
"data"
);
String
businessCode
=
json
.
getString
(
"businessCode"
);
if
(!
"0000"
.
equals
(
businessCode
)){
...
...
@@ -436,6 +437,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
throw
new
RuntimeException
(
"签章失败!"
);
}
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
jsonResult
);
JSONArray
jsonArray
=
jsonObject
.
getJSONArray
(
"successList"
);
List
<
String
>
updateSuccessList
=
new
ArrayList
<>();
if
(
jsonArray
!=
null
&&
jsonArray
.
size
()>
0
){
...
...
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