| | |
| | | |
| | | import com.lf.server.entity.ctrl.CountEntity; |
| | | import com.lf.server.entity.sys.ReportEntity; |
| | | import com.lf.server.helper.FileHelper; |
| | | import com.lf.server.helper.StringHelper; |
| | | import com.lf.server.helper.WordHelper; |
| | | import com.lf.server.mapper.sys.ReportMapper; |
| | |
| | | /** |
| | | * 创建 用户流量统计 Word |
| | | */ |
| | | public void createCountSizesWord() { |
| | | public void createCountOperatesWord() { |
| | | List<CountEntity> list = countOperates(); |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 创建 用户流量统计 Word |
| | | * 创建 数据量统计 Word |
| | | */ |
| | | public void createCountOperatesWord() { |
| | | List<CountEntity> list = countOperates(); |
| | | public void createCountSizesWord() { |
| | | List<CountEntity> list = countSizes(); |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | int rows = 1; |
| | | String inputFile = "D:\\LF\\服务调用量统计.docx"; |
| | | String outPutFile = "D:\\LF\\服务调用量统计_new.docx"; |
| | | 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()}; |
| | | String[] strs = new String[]{"" + rows++, ce.getM1(), FileHelper.getSizes(ce.getSizes())}; |
| | | addList.add(strs); |
| | | } |
| | | |