This commit is contained in:
linfso 2024-07-05 08:20:02 +08:00
parent e5a9f6f037
commit f05afb92e6

View File

@ -25,7 +25,8 @@ public class TanexSubBillPrintImpl extends XddBasePrint {
/** /**
* 模版文件 * 模版文件
*/ */
private static String tplName="/Users/alan/work/git/tanex56/emis-service/emis-biz/src/main/resources/tpl/tanex_zd_tpl.pdf"; // private static String tplName="/Users/alan/work/git/tanex56/emis-service/emis-biz/src/main/resources/tpl/tanex_zd_tpl.pdf";
private static String tplName="tpl/tanex_zd_tpl.pdf";
/** /**
* 单元条目配置 * 单元条目配置
@ -126,8 +127,8 @@ public class TanexSubBillPrintImpl extends XddBasePrint {
AjaxResult ar = new AjaxResult(); AjaxResult ar = new AjaxResult();
ClassPathResource classPathResource = new ClassPathResource(tplName); ClassPathResource classPathResource = new ClassPathResource(tplName);
// InputStream tplInStream = classPathResource.getInputStream(); InputStream tplInStream = classPathResource.getInputStream();
InputStream tplInStream = new FileInputStream(new File(tplName)); // InputStream tplInStream = new FileInputStream(new File(tplName));
// //
// 生成pdf文件 // 生成pdf文件
genPdfByTpl(getItemCelconfig(orderMap),tplInStream,os); genPdfByTpl(getItemCelconfig(orderMap),tplInStream,os);