| | |
| | | |
| | | WordHelper.generateWord(inputFile, outPutFile, null, addList); |
| | | } |
| | | |
| | | /** |
| | | * 创建 服务调用量统计 Word |
| | | */ |
| | | public void createCountServicesWord() { |
| | | List<CountEntity> list = countServices(); |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | int rows = 1; |
| | | String inputFile = "D:\\LF\\服务调用量统计.docx"; |
| | | String outPutFile = "D:\\LF\\服务调用量统计_new.docx"; |
| | | |
| | | ArrayList<String[]> addList = new ArrayList<>(); |
| | | for (CountEntity ce : list) { |
| | | String[] strs = new String[]{"" + rows++, ce.getM1(), ce.getCount().toString()}; |
| | | addList.add(strs); |
| | | } |
| | | |
| | | WordHelper.generateWord(inputFile, outPutFile, null, addList); |
| | | } |
| | | |
| | | /** |
| | | * 创建 用户流量统计 Word |
| | | */ |
| | | public void createCountOperatesWord() { |
| | | List<CountEntity> list = countOperates(); |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | int rows = 1; |
| | | String inputFile = "D:\\LF\\服务调用量统计.docx"; |
| | | String outPutFile = "D:\\LF\\服务调用量统计_new.docx"; |
| | | |
| | | ArrayList<String[]> addList = new ArrayList<>(); |
| | | for (CountEntity ce : list) { |
| | | String[] strs = new String[]{"" + rows++, ce.getM1(), ce.getCount().toString()}; |
| | | addList.add(strs); |
| | | } |
| | | |
| | | WordHelper.generateWord(inputFile, outPutFile, null, addList); |
| | | } |
| | | } |