From 5b31b236263ad9141799737ebab55fdb05f3f4a5 Mon Sep 17 00:00:00 2001 From: chen <1251790704@qq.com> Date: Thu, 17 Dec 2020 20:30:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/DgGuaranteeLetterAssignUserController.java | 5 ++++- .../guarantee/controller/DgLoanNoticeController.java | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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);