Commit 48ebb9dc authored by 吴琼's avatar 吴琼

xiugai

parent 80182b24
......@@ -393,7 +393,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
record.setExportBatchNo(maxExportBatchNo.intValue()+1);
//生成pdf
String directory =record.getSerialNo()+record.getUserName();
String pdfFileName = record.getUserId()+record.getUserName()+record.getOrderNo()+".pdf";
String pdfFileName = record.getOrderNo()+".pdf";
FileToZip.mkdir(uploadLocalPath+directory);
log.info("导出文件生成pdf begin:"+pdfFileName);
generatePDF(transactionReceiptVOList.get(0),uploadLocalPath+"/"+directory+"/"+pdfFileName);
......@@ -748,6 +748,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
ReceiverVO receiverVO =transactionReceiptVO.getReceiver();
//物流信息
List<LogisticsVO> logisticsVOList = transactionReceiptVO.getLogisticsList();
log.info("generatePDF 开始生成pdf begin",LOG_PRE,filePath);
Document document = new Document(PageSize.A4);
try {
PdfWriter.getInstance(document, new FileOutputStream(filePath));
......@@ -812,7 +813,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
//展示一个
table=generateMultiParagraph(cell,font,table,logisticsVOList,skuVOList,receiverVO,0);
}
log.info("generatePDF 开始生成pdf end",LOG_PRE,table);
document.add(table);
document.close();
} catch (Exception e) {
......
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