Commit 274fdb27 authored by 李健华's avatar 李健华

客服系统交易凭证添加合同

parent 8dc285ae
...@@ -26,5 +26,5 @@ public class TransactionReceiptVO { ...@@ -26,5 +26,5 @@ public class TransactionReceiptVO {
/** /**
* 贷款信息 * 贷款信息
*/ */
private List<LoanVO> loanList; private LoanVO loan;
} }
...@@ -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();
// 贷款信息 // 贷款信息
List<LoanVO> loanVOList = transactionReceiptVO.getLoanList(); LoanVO 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(loanVO.getContractNo())?"":loanVO.getContractNo()), font)); cell = new PdfPCell(new Phrase(ITextPDFUtil.getUTF8String(StringUtils.isEmpty(loanVo.getContractNo())?"":loanVo.getContractNo()), font));
cell.setColspan(5); cell.setColspan(5);
cell.setMinimumHeight(18); cell.setMinimumHeight(18);
table.addCell(cell); table.addCell(cell);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment