diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgGuaranteeLetterAssignUserController.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgGuaranteeLetterAssignUserController.java index e8ca89d2..bdf08d5b 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgGuaranteeLetterAssignUserController.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgGuaranteeLetterAssignUserController.java @@ -91,7 +91,10 @@ public class DgGuaranteeLetterAssignUserController { String loanTern = response.getLoanTern(); Date passingTime = response.getPassingTime(); String time = DateUtil.dateFormat(passingTime); - XWPFTemplate template = XWPFTemplate.compile("D:\\template\\template.docx").render( + //本地测试开启 + // XWPFTemplate template = XWPFTemplate.compile("D:\\template\\template.docx").render( + //服务器测试 + XWPFTemplate template = XWPFTemplate.compile("//usr//local//template//template.docx").render( new HashMap(){{ put("bankName", bank); put("clientName", name); diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgLoanNoticeController.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgLoanNoticeController.java index e19ac6b6..20404331 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgLoanNoticeController.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgLoanNoticeController.java @@ -84,7 +84,10 @@ public class DgLoanNoticeController { Double loanMoney = response.getLoanMoney(); BigDecimal numberOfMoney = new BigDecimal(loanMoney*10000); String money = NumberToCN.number2CNMontrayUnit(numberOfMoney); - XWPFTemplate template = XWPFTemplate.compile("D:\\template\\templateTwo.docx").render( + //本地测试开启 + // XWPFTemplate template = XWPFTemplate.compile("D:\\template\\templateTwo.docx").render( + //服务器测试 + XWPFTemplate template = XWPFTemplate.compile("//usr//local//template//templateTwo.docx").render( new HashMap(){{ put("bankName", bank); put("clientName", name);