Commit cdcafcc2 authored by 吴琼's avatar 吴琼

修改路径

parent 48ebb9dc
......@@ -493,7 +493,7 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
map.put("successCount",successCount);
map.put("failCount",failCount);
//删除生成的文件
File deleteFile =new File("D:/tmp0/");
File deleteFile =new File("/home/quant_group/customer-service/tmp0/");
deleteDirectory(deleteFile);
File deleteFile1 =new File(downloadLocalPath);
deleteDirectory(deleteFile1);
......@@ -807,13 +807,13 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
if(logisticsVOList.size() > 1){
//展示多个
for(int j= 0;j<logisticsVOList.size();j++){
table = generateMultiParagraph(cell,font,table,logisticsVOList,skuVOList,receiverVO,j);
table = generateMultiParagraph(font,table,logisticsVOList,skuVOList,receiverVO,j);
}
}else{
//展示一个
table=generateMultiParagraph(cell,font,table,logisticsVOList,skuVOList,receiverVO,0);
table=generateMultiParagraph(font,table,logisticsVOList,skuVOList,receiverVO,0);
}
log.info("generatePDF 开始生成pdf end",LOG_PRE,table);
log.info("generatePDF 开始生成pdf end",LOG_PRE,table.getBody());
document.add(table);
document.close();
} catch (Exception e) {
......@@ -823,7 +823,6 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
/**
* 生成pdf文件内容
* @param cell
* @param font
* @param table
* @param logisticsVOList
......@@ -832,10 +831,10 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
* @param count
* @return
*/
private PdfPTable generateMultiParagraph(PdfPCell cell,Font font,
private PdfPTable generateMultiParagraph(Font font,
PdfPTable table,List<LogisticsVO> logisticsVOList,List<SkuVO> skuVOList,ReceiverVO receiverVO,int count){
//物流信息
cell = new PdfPCell(new Phrase(ITextPDFUtil.getUTF8String("物流信息"), font));
PdfPCell cell = new PdfPCell(new Phrase(ITextPDFUtil.getUTF8String("物流信息"), font));
cell.setColspan(6);
cell.setMinimumHeight(18);
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