md
This commit is contained in:
parent
516c4a5927
commit
3f3c76b4c0
@ -906,7 +906,7 @@ public class EmisWaybillController extends EmisBaseController
|
|||||||
if("T".equals(isNeedPdf)) {
|
if("T".equals(isNeedPdf)) {
|
||||||
ByteArrayOutputStream os = new ByteArrayOutputStream();
|
ByteArrayOutputStream os = new ByteArrayOutputStream();
|
||||||
IXddTplPrint tplPrint = new TanexTplPrintImpl();
|
IXddTplPrint tplPrint = new TanexTplPrintImpl();
|
||||||
tplPrint.genPDF(order, os);
|
tplPrint.genPDF(order,"",os);
|
||||||
// 生成pdf base64
|
// 生成pdf base64
|
||||||
byte[] pdfBytes = os.toByteArray();
|
byte[] pdfBytes = os.toByteArray();
|
||||||
String pdfBase64Str = Base64.getEncoder().encodeToString(pdfBytes);
|
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);
|
Map<String, Object> order = emisBaseService.getWaybillPrintOrder(billCode, billCodeRange, tplCode,lang, printType,printManCode);
|
||||||
if(order!=null) {
|
if(order!=null) {
|
||||||
IXddTplPrint tplPrint = new TanexTplPrintImpl();
|
IXddTplPrint tplPrint = new TanexTplPrintImpl();
|
||||||
tplPrint.genPDF(order, os);
|
tplPrint.genPDF(order,"", os);
|
||||||
}else{
|
}else{
|
||||||
return AjaxResult.error("运单不存在");
|
return AjaxResult.error("运单不存在");
|
||||||
}
|
}
|
||||||
@ -1332,7 +1332,7 @@ public class EmisWaybillController extends EmisBaseController
|
|||||||
Map<String, Object> order = emisBaseService.getWaybillPrintOrder(billCode, billCodeRange,tplCode, lang, printType,printManCode);
|
Map<String, Object> order = emisBaseService.getWaybillPrintOrder(billCode, billCodeRange,tplCode, lang, printType,printManCode);
|
||||||
if(order!=null) {
|
if(order!=null) {
|
||||||
IXddTplPrint tplPrint = new TanexTplPrintImpl();
|
IXddTplPrint tplPrint = new TanexTplPrintImpl();
|
||||||
tplPrint.genPNG(order, os);
|
tplPrint.genPNG(order,"", os);
|
||||||
}else{
|
}else{
|
||||||
return AjaxResult.error("运单不存在");
|
return AjaxResult.error("运单不存在");
|
||||||
// 忽略错误
|
// 忽略错误
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user