This commit is contained in:
linfso 2024-08-21 18:00:56 +08:00
parent 516c4a5927
commit 3f3c76b4c0

View File

@ -906,7 +906,7 @@ public class EmisWaybillController extends EmisBaseController
if("T".equals(isNeedPdf)) {
ByteArrayOutputStream os = new ByteArrayOutputStream();
IXddTplPrint tplPrint = new TanexTplPrintImpl();
tplPrint.genPDF(order, os);
tplPrint.genPDF(order,"",os);
// 生成pdf base64
byte[] pdfBytes = os.toByteArray();
String pdfBase64Str = Base64.getEncoder().encodeToString(pdfBytes);
@ -1302,7 +1302,7 @@ public class EmisWaybillController extends EmisBaseController
Map<String, Object> order = emisBaseService.getWaybillPrintOrder(billCode, billCodeRange, tplCode,lang, printType,printManCode);
if(order!=null) {
IXddTplPrint tplPrint = new TanexTplPrintImpl();
tplPrint.genPDF(order, os);
tplPrint.genPDF(order,"", os);
}else{
return AjaxResult.error("运单不存在");
}
@ -1332,7 +1332,7 @@ public class EmisWaybillController extends EmisBaseController
Map<String, Object> order = emisBaseService.getWaybillPrintOrder(billCode, billCodeRange,tplCode, lang, printType,printManCode);
if(order!=null) {
IXddTplPrint tplPrint = new TanexTplPrintImpl();
tplPrint.genPNG(order, os);
tplPrint.genPNG(order,"", os);
}else{
return AjaxResult.error("运单不存在");
// 忽略错误