| | |
| | | return; |
| | | } |
| | | |
| | | int rows = 1; |
| | | int rows = 1, allCount = 0; |
| | | ArrayList<String[]> addList = new ArrayList<>(); |
| | | for (CountEntity ce : list) { |
| | | allCount += ce.getCount(); |
| | | String[] strs = new String[]{"" + rows++, ce.getM1(), ce.getM2(), ce.getCount().toString()}; |
| | | addList.add(strs); |
| | | } |
| | | if (addList.size() > 0) { |
| | | addList.add(new String[]{"" + rows, "总计", " ", "" + allCount}); |
| | | } |
| | | |
| | | WordHelper.generateWord(source, target, null, addList); |
| | |
| | | return; |
| | | } |
| | | |
| | | int rows = 1; |
| | | int rows = 1, allCount = 0; |
| | | ArrayList<String[]> addList = new ArrayList<>(); |
| | | for (CountEntity ce : list) { |
| | | allCount += ce.getCount(); |
| | | String[] strs = new String[]{"" + rows++, ce.getM1(), ce.getCount().toString()}; |
| | | addList.add(strs); |
| | | } |
| | | if (addList.size() > 0) { |
| | | addList.add(new String[]{"" + rows, "总计", "" + allCount}); |
| | | } |
| | | |
| | | WordHelper.generateWord(source, target, null, addList); |
| | |
| | | } |
| | | |
| | | int rows = 1; |
| | | Double allSize = 0d; |
| | | ArrayList<String[]> addList = new ArrayList<>(); |
| | | for (CountEntity ce : list) { |
| | | allSize += ce.getSizes(); |
| | | String[] strs = new String[]{"" + rows++, ce.getM1(), FileHelper.getSizes(ce.getSizes())}; |
| | | addList.add(strs); |
| | | } |
| | | if (addList.size() > 0) { |
| | | addList.add(new String[]{"" + rows, "总计", FileHelper.getSizes(allSize)}); |
| | | } |
| | | |
| | | WordHelper.generateWord(source, target, null, addList); |
| | |
| | | return; |
| | | } |
| | | |
| | | int rows = 1; |
| | | int rows = 1, allCount = 0; |
| | | Double allSize = 0d; |
| | | ArrayList<String[]> addList = new ArrayList<>(); |
| | | for (CountEntity ce : list) { |
| | | allSize += ce.getSizes(); |
| | | allCount += ce.getCount(); |
| | | String[] strs = new String[]{"" + rows++, ce.getM1(), "" + ce.getCount(), FileHelper.getSizes(ce.getSizes())}; |
| | | addList.add(strs); |
| | | } |
| | | if (addList.size() > 0) { |
| | | addList.add(new String[]{"" + rows, "总计", "" + allCount, FileHelper.getSizes(allSize)}); |
| | | } |
| | | |
| | | WordHelper.generateWord(source, target, null, addList); |
| | |
| | | return; |
| | | } |
| | | |
| | | int rows = 1; |
| | | int rows = 1, allCount = 0; |
| | | for (CountEntity ce : list) { |
| | | ce.setNo(rows++); |
| | | allCount += ce.getCount(); |
| | | } |
| | | if (list.size() > 0) { |
| | | CountEntity ce = new CountEntity(); |
| | | ce.setNo(rows); |
| | | ce.setM1("总计"); |
| | | ce.setCount((long) allCount); |
| | | list.add(ce); |
| | | } |
| | | |
| | | Map<String, List<CountEntity>> map = new HashMap<>(1); |
| | |
| | | return; |
| | | } |
| | | |
| | | int rows = 1; |
| | | int rows = 1, allCount = 0; |
| | | for (CountEntity ce : list) { |
| | | ce.setNo(rows++); |
| | | allCount += ce.getCount(); |
| | | } |
| | | if (list.size() > 0) { |
| | | CountEntity ce = new CountEntity(); |
| | | ce.setNo(rows); |
| | | ce.setM1("总计"); |
| | | ce.setCount((long) allCount); |
| | | list.add(ce); |
| | | } |
| | | |
| | | Map<String, List<CountEntity>> map = new HashMap<>(1); |
| | |
| | | } |
| | | |
| | | int rows = 1; |
| | | Double allSize = 0d; |
| | | for (CountEntity ce : list) { |
| | | ce.setNo(rows++); |
| | | ce.setM2(FileHelper.getSizes(ce.getSizes())); |
| | | allSize += ce.getSizes(); |
| | | } |
| | | if (list.size() > 0) { |
| | | CountEntity ce = new CountEntity(); |
| | | ce.setNo(rows); |
| | | ce.setM1("总计"); |
| | | ce.setM2(FileHelper.getSizes(allSize)); |
| | | list.add(ce); |
| | | } |
| | | |
| | | Map<String, List<CountEntity>> map = new HashMap<>(1); |
| | |
| | | return; |
| | | } |
| | | |
| | | int rows = 1; |
| | | int rows = 1, allCount = 0; |
| | | Double allSize = 0d; |
| | | for (CountEntity ce : list) { |
| | | ce.setNo(rows++); |
| | | ce.setM2(FileHelper.getSizes(ce.getSizes())); |
| | | allCount += ce.getCount(); |
| | | allSize += ce.getSizes(); |
| | | } |
| | | if (list.size() > 0) { |
| | | CountEntity ce = new CountEntity(); |
| | | ce.setNo(rows); |
| | | ce.setM1("总计"); |
| | | ce.setCount((long) allCount); |
| | | ce.setM2(FileHelper.getSizes(allSize)); |
| | | list.add(ce); |
| | | } |
| | | |
| | | Map<String, List<CountEntity>> map = new HashMap<>(1); |