Commit 0f5a8fa6 authored by 吴琼's avatar 吴琼

huifu

parent 5662dd83
......@@ -807,11 +807,11 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
if(logisticsVOList.size() > 1){
//展示多个
for(int j= 0;j<logisticsVOList.size();j++){
table = generateMultiParagraph(font,table,logisticsVOList,skuVOList,receiverVO,j);
table = generateMultiParagraph(cell,font,table,logisticsVOList,skuVOList,receiverVO,j);
}
}else{
//展示一个
table=generateMultiParagraph(font,table,logisticsVOList,skuVOList,receiverVO,0);
table=generateMultiParagraph(cell,font,table,logisticsVOList,skuVOList,receiverVO,0);
}
log.info("generatePDF 开始生成pdf end",LOG_PRE,table.getBody());
document.add(table);
......@@ -831,10 +831,10 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
* @param count
* @return
*/
private PdfPTable generateMultiParagraph(Font font,
private PdfPTable generateMultiParagraph(PdfPCell cell,Font font,
PdfPTable table,List<LogisticsVO> logisticsVOList,List<SkuVO> skuVOList,ReceiverVO receiverVO,int count){
//物流信息
PdfPCell cell = new PdfPCell(new Phrase(ITextPDFUtil.getUTF8String("物流信息"), font));
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