| | |
| | | dataMap.put("JXZXM", serviceFund.getDonorname() == null ? "" : serviceFund.getDonorname()); |
| | | dataMap.put("JSR", serviceFund.getUsername() == null ? "" : serviceFund.getUsername()); |
| | | // dataMap.put("FYXM1", "支付专家费用,其中税前金额" + serviceFund.getPretaxcost() + "元,税后金额" + serviceFund.getTaxedcost() + "元。"); |
| | | dataMap.put("FYXM1", "人体器官捐献专家劳务费:" + serviceFund.getPretaxcost() + "元 (其中税后费用由中心承担税费)。"); |
| | | if (serviceFund.getApplytype().equals("1")) { |
| | | dataMap.put("FYXM1", "人体器官捐献专家劳务费:" + serviceFund.getPretaxcost() + "元 (其中税后费用由中心承担税费)。"); |
| | | } else if (serviceFund.getApplytype().equals("4")) { |
| | | dataMap.put("FYXM1", "办公费用:" + serviceFund.getPretaxcost()); |
| | | } |
| | | dataMap.put("FYXM2", ""); |
| | | dataMap.put("FYXM3", ""); |
| | | dataMap.put("JEXS", serviceFund.getPretaxcost()); |
| | |
| | | out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outFile), "utf-8")); |
| | | |
| | | } catch (FileNotFoundException e1) { |
| | | log.error("FileNotFoundException报错信息是:{}",e1.getMessage()); |
| | | log.error("FileNotFoundException报错信息是:{}", e1.getMessage()); |
| | | // e1.printStackTrace(); |
| | | } |
| | | try { |
| | | |
| | | t.process(dataMap, out); |
| | | } catch (TemplateException e) { |
| | | log.error("TemplateException报错信自是:{}",e.getMessage()); |
| | | log.error("TemplateException报错信自是:{}", e.getMessage()); |
| | | e.getMessage(); |
| | | } |
| | | Map<String, Object> map = new HashMap<>(); |