|
|
@ -84,7 +84,10 @@ public class DgLoanNoticeController { |
|
|
|
Double loanMoney = response.getLoanMoney(); |
|
|
|
Double loanMoney = response.getLoanMoney(); |
|
|
|
BigDecimal numberOfMoney = new BigDecimal(loanMoney*10000); |
|
|
|
BigDecimal numberOfMoney = new BigDecimal(loanMoney*10000); |
|
|
|
String money = NumberToCN.number2CNMontrayUnit(numberOfMoney); |
|
|
|
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>(){{ |
|
|
|
new HashMap<String, Object>(){{ |
|
|
|
put("bankName", bank); |
|
|
|
put("bankName", bank); |
|
|
|
put("clientName", name); |
|
|
|
put("clientName", name); |
|
|
|