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
274fdb27
Commit
274fdb27
authored
Nov 08, 2022
by
李健华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客服系统交易凭证添加合同
parent
8dc285ae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
TransactionReceiptVO.java
...up/customer/rest/vo/transaction/TransactionReceiptVO.java
+1
-1
TransactionReceiptRecordServiceImpl.java
...mer/service/impl/TransactionReceiptRecordServiceImpl.java
+10
-11
No files found.
src/main/java/cn/quantgroup/customer/rest/vo/transaction/TransactionReceiptVO.java
View file @
274fdb27
...
@@ -26,5 +26,5 @@ public class TransactionReceiptVO {
...
@@ -26,5 +26,5 @@ public class TransactionReceiptVO {
/**
/**
* 贷款信息
* 贷款信息
*/
*/
private
L
ist
<
LoanVO
>
loanList
;
private
L
oanVO
loan
;
}
}
src/main/java/cn/quantgroup/customer/service/impl/TransactionReceiptRecordServiceImpl.java
View file @
274fdb27
...
@@ -449,21 +449,20 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -449,21 +449,20 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
throw
new
RuntimeException
(
"导出文件出错了"
);
throw
new
RuntimeException
(
"导出文件出错了"
);
}
}
}
}
sftpUtil
.
logout
();
//
sftpUtil.logout();
log
.
info
(
"uploadFile | 断开ftp"
);
log
.
info
(
"uploadFile | 断开ftp"
);
log
.
info
(
"[TransactionReceiptRecordServiceImpl.kdspOperationUrl 调用kdsp-op 接口end]"
);
log
.
info
(
"[TransactionReceiptRecordServiceImpl.kdspOperationUrl 调用kdsp-op 接口end]"
);
if
(
CollectionUtils
.
isEmpty
(
emailList
)){
if
(!
CollectionUtils
.
isEmpty
(
emailList
)){
log
.
info
(
"没有签章成功的文件可以发送"
);
deleteRedis
(
"exportZipFile"
);
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
throw
new
RuntimeException
(
"没有签章成功的文件可以发送"
);
}
//发送邮件通知已经处理完成
//发送邮件通知已经处理完成
log
.
info
(
"[TransactionReceiptRecordServiceImpl.sendCustomerTransactionHtmlMail 发送邮件begin]"
);
log
.
info
(
"[TransactionReceiptRecordServiceImpl.sendCustomerTransactionHtmlMail 发送邮件begin]"
);
sendCustomerTransactionHtmlMail
(
transactionReceiptRecordList
.
size
(),
emailList
.
size
(),
transactionReceiptRecordList
.
size
()-
emailList
.
size
());
sendCustomerTransactionHtmlMail
(
transactionReceiptRecordList
.
size
(),
emailList
.
size
(),
transactionReceiptRecordList
.
size
()-
emailList
.
size
());
log
.
info
(
"[TransactionReceiptRecordServiceImpl.sendCustomerTransactionHtmlMail 发送邮件end]"
);
log
.
info
(
"[TransactionReceiptRecordServiceImpl.sendCustomerTransactionHtmlMail 发送邮件end]"
);
deleteRedis
(
"exportZipFile"
);
deleteRedis
(
"exportZipFile"
);
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
// throw new RuntimeException("没有签章成功的文件可以发送");
}
deleteRedis
(
"exportZipFile"
);
}
}
private
void
getHeaders
(
HttpServletRequest
request
)
{
private
void
getHeaders
(
HttpServletRequest
request
)
{
...
@@ -769,7 +768,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -769,7 +768,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
//物流信息
//物流信息
List
<
LogisticsVO
>
logisticsVOList
=
transactionReceiptVO
.
getLogisticsList
();
List
<
LogisticsVO
>
logisticsVOList
=
transactionReceiptVO
.
getLogisticsList
();
// 贷款信息
// 贷款信息
L
ist
<
LoanVO
>
loanVOList
=
transactionReceiptVO
.
getLoanList
();
L
oanVO
loanVo
=
transactionReceiptVO
.
getLoan
();
log
.
info
(
"generatePDF 开始生成pdf begin"
,
LOG_PRE
,
filePath
);
log
.
info
(
"generatePDF 开始生成pdf begin"
,
LOG_PRE
,
filePath
);
Document
document
=
new
Document
(
PageSize
.
A4
);
Document
document
=
new
Document
(
PageSize
.
A4
);
try
{
try
{
...
@@ -858,8 +857,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -858,8 +857,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
//贷款信息详情
//贷款信息详情
table
.
addCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
"合同编号/贷字"
),
font
));
table
.
addCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
"合同编号/贷字"
),
font
));
//todo: 贷款信息只有一个,选择?
//todo: 贷款信息只有一个,选择?
for
(
LoanVO
loanVO
:
loanVOList
)
{
if
(
loanVo
!=
null
)
{
cell
=
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
StringUtils
.
isEmpty
(
loanV
O
.
getContractNo
())?
""
:
loanVO
.
getContractNo
()),
font
));
cell
=
new
PdfPCell
(
new
Phrase
(
ITextPDFUtil
.
getUTF8String
(
StringUtils
.
isEmpty
(
loanV
o
.
getContractNo
())?
""
:
loanVo
.
getContractNo
()),
font
));
cell
.
setColspan
(
5
);
cell
.
setColspan
(
5
);
cell
.
setMinimumHeight
(
18
);
cell
.
setMinimumHeight
(
18
);
table
.
addCell
(
cell
);
table
.
addCell
(
cell
);
...
...
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