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
48ebb9dc
Commit
48ebb9dc
authored
Mar 08, 2022
by
吴琼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xiugai
parent
80182b24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
TransactionReceiptRecordServiceImpl.java
...mer/service/impl/TransactionReceiptRecordServiceImpl.java
+3
-2
No files found.
src/main/java/cn/quantgroup/customer/service/impl/TransactionReceiptRecordServiceImpl.java
View file @
48ebb9dc
...
@@ -393,7 +393,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -393,7 +393,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
record
.
setExportBatchNo
(
maxExportBatchNo
.
intValue
()+
1
);
record
.
setExportBatchNo
(
maxExportBatchNo
.
intValue
()+
1
);
//生成pdf
//生成pdf
String
directory
=
record
.
getSerialNo
()+
record
.
getUserName
();
String
directory
=
record
.
getSerialNo
()+
record
.
getUserName
();
String
pdfFileName
=
record
.
get
UserId
()+
record
.
getUserName
()+
record
.
get
OrderNo
()+
".pdf"
;
String
pdfFileName
=
record
.
getOrderNo
()+
".pdf"
;
FileToZip
.
mkdir
(
uploadLocalPath
+
directory
);
FileToZip
.
mkdir
(
uploadLocalPath
+
directory
);
log
.
info
(
"导出文件生成pdf begin:"
+
pdfFileName
);
log
.
info
(
"导出文件生成pdf begin:"
+
pdfFileName
);
generatePDF
(
transactionReceiptVOList
.
get
(
0
),
uploadLocalPath
+
"/"
+
directory
+
"/"
+
pdfFileName
);
generatePDF
(
transactionReceiptVOList
.
get
(
0
),
uploadLocalPath
+
"/"
+
directory
+
"/"
+
pdfFileName
);
...
@@ -748,6 +748,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -748,6 +748,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
ReceiverVO
receiverVO
=
transactionReceiptVO
.
getReceiver
();
ReceiverVO
receiverVO
=
transactionReceiptVO
.
getReceiver
();
//物流信息
//物流信息
List
<
LogisticsVO
>
logisticsVOList
=
transactionReceiptVO
.
getLogisticsList
();
List
<
LogisticsVO
>
logisticsVOList
=
transactionReceiptVO
.
getLogisticsList
();
log
.
info
(
"generatePDF 开始生成pdf begin"
,
LOG_PRE
,
filePath
);
Document
document
=
new
Document
(
PageSize
.
A4
);
Document
document
=
new
Document
(
PageSize
.
A4
);
try
{
try
{
PdfWriter
.
getInstance
(
document
,
new
FileOutputStream
(
filePath
));
PdfWriter
.
getInstance
(
document
,
new
FileOutputStream
(
filePath
));
...
@@ -812,7 +813,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -812,7 +813,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
//展示一个
//展示一个
table
=
generateMultiParagraph
(
cell
,
font
,
table
,
logisticsVOList
,
skuVOList
,
receiverVO
,
0
);
table
=
generateMultiParagraph
(
cell
,
font
,
table
,
logisticsVOList
,
skuVOList
,
receiverVO
,
0
);
}
}
log
.
info
(
"generatePDF 开始生成pdf end"
,
LOG_PRE
,
table
);
document
.
add
(
table
);
document
.
add
(
table
);
document
.
close
();
document
.
close
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
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