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
8dc285ae
Commit
8dc285ae
authored
Nov 07, 2022
by
李健华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出凭证
parent
5fc62245
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
11 deletions
+35
-11
LoanVO.java
...va/cn/quantgroup/customer/rest/vo/transaction/LoanVO.java
+0
-4
OrderVO.java
...a/cn/quantgroup/customer/rest/vo/transaction/OrderVO.java
+15
-0
TransactionReceiptRecordServiceImpl.java
...mer/service/impl/TransactionReceiptRecordServiceImpl.java
+20
-7
No files found.
src/main/java/cn/quantgroup/customer/rest/vo/transaction/LoanVO.java
View file @
8dc285ae
...
...
@@ -8,9 +8,5 @@ public class LoanVO {
* 合同号
*/
private
String
contractNo
;
/**
* 贷字
*/
private
String
loanNo
;
}
src/main/java/cn/quantgroup/customer/rest/vo/transaction/OrderVO.java
View file @
8dc285ae
...
...
@@ -66,4 +66,19 @@ public class OrderVO {
*/
private
String
payTypeName
;
/**
* vcc支付金额
*/
private
String
vccPayAmount
;
/**
* 其他方式支付金额
*/
private
String
otherPayAmount
;
/**
* 合同号
*/
private
String
contractNo
;
}
src/main/java/cn/quantgroup/customer/service/impl/TransactionReceiptRecordServiceImpl.java
View file @
8dc285ae
...
...
@@ -825,6 +825,20 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
StringUtils
.
isEmpty
(
orderVO
.
getOrderAmount
())?
""
:
orderVO
.
getOrderAmount
()),
font
))).
setMinimumHeight
(
18
);
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
StringUtils
.
isEmpty
(
orderVO
.
getPayAmount
())?
"/"
:
orderVO
.
getPayAmount
()),
font
))).
setMinimumHeight
(
18
);
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
StringUtils
.
isEmpty
(
orderVO
.
getPayTypeName
())?
"/"
:
orderVO
.
getPayTypeName
()),
font
))).
setMinimumHeight
(
18
);
// 第六行数据
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
"享花卡支付"
),
font
))).
setMinimumHeight
(
18
);
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
"其他方式支付"
),
font
))).
setMinimumHeight
(
18
);
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
""
),
font
))).
setMinimumHeight
(
18
);
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
""
),
font
))).
setMinimumHeight
(
18
);
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
""
),
font
))).
setMinimumHeight
(
18
);
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
""
),
font
))).
setMinimumHeight
(
18
);
// 第七行数据
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
StringUtils
.
isEmpty
(
orderVO
.
getVccPayAmount
())?
"0"
:
orderVO
.
getVccPayAmount
()),
font
))).
setMinimumHeight
(
18
);
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
StringUtils
.
isEmpty
(
orderVO
.
getOtherPayAmount
())?
"0"
:
orderVO
.
getOtherPayAmount
()),
font
))).
setMinimumHeight
(
18
);
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
""
),
font
))).
setMinimumHeight
(
18
);
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
""
),
font
))).
setMinimumHeight
(
18
);
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
""
),
font
))).
setMinimumHeight
(
18
);
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
""
),
font
))).
setMinimumHeight
(
18
);
//有多个物流信息,重复展示物流信息,商品信息,收货信息,物流详情
log
.
info
(
"生成pdf 物流信息logisticsVOList"
+
logisticsVOList
.
size
());
if
(
logisticsVOList
.
size
()
>
1
){
...
...
@@ -842,14 +856,13 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
cell
.
setMinimumHeight
(
18
);
table
.
addCell
(
cell
);
//贷款信息详情
table
.
addCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
"合同编号"
),
font
));
cell
=
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
"贷字"
),
font
));
table
.
addCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
"合同编号/贷字"
),
font
));
//todo: 贷款信息只有一个,选择?
for
(
LoanVO
loanVO
:
loanVOList
)
{
cell
=
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
StringUtils
.
isEmpty
(
loanVO
.
getContractNo
())?
""
:
loanVO
.
getContractNo
()),
font
));
cell
.
setColspan
(
5
);
cell
.
setMinimumHeight
(
18
);
table
.
addCell
(
cell
);
for
(
LoanVO
loanVO
:
loanVOList
)
{
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
StringUtils
.
isEmpty
(
loanVO
.
getContractNo
())?
""
:
loanVO
.
getContractNo
()),
font
))).
setMinimumHeight
(
18
);
table
.
addCell
(
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
StringUtils
.
isEmpty
(
loanVO
.
getLoanNo
())?
"/"
:
loanVO
.
getLoanNo
()),
font
))).
setMinimumHeight
(
18
);
}
log
.
info
(
"generatePDF 开始生成pdf end"
,
LOG_PRE
,
table
.
getBody
());
document
.
add
(
table
);
...
...
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