| | |
| | | * 生成Excel |
| | | */ |
| | | private void createExcel(String source, String target, ReportEntity re) { |
| | | List<CountEntity> list = countExplorationPoints();// |
| | | List<CountEntity> list = countExplorationPoints(); |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | |
| | | int rows = 1, allCount = 0; |
| | | Double allSize = 0d, allArea = 0d; |
| | | for (CountEntity ce : list) { |
| | | if (null == ce.getCount()) { |
| | | ce.setCount(0L); |
| | | } |
| | | if (null == ce.getSizes()) { |
| | | ce.setSizes(0d); |
| | | } |
| | | if (null == ce.getArea()) { |
| | | ce.setArea(0d); |
| | | } |
| | | ce.setNo(rows++); |
| | | ce.setM2(FileHelper.getSizes(ce.getSizes())); |
| | | ce.setM3(FileHelper.getSquareMeter(ce.getArea())); |