文件导出

master
chen 4 years ago
parent 998e6f0a4e
commit 5b31b23626
  1. 5
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgGuaranteeLetterAssignUserController.java
  2. 5
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgLoanNoticeController.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<String, Object>(){{
put("bankName", bank);
put("clientName", name);

@ -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<String, Object>(){{
put("bankName", bank);
put("clientName", name);

Loading…
Cancel
Save