管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-02-18 c07aa097611ec4368e58d489410a35d3eade90e2
src/main/java/com/lf/server/service/sys/ReportService.java
@@ -236,7 +236,7 @@
            ce.setNo(rows++);
        }
        Map<String, List<CountEntity>> map = new HashMap<>();
        Map<String, List<CountEntity>> map = new HashMap<>(1);
        map.put("data", list);
        ExcelHelper.writeToTemplate(source, target, map);
@@ -256,7 +256,7 @@
            ce.setNo(rows++);
        }
        Map<String, List<CountEntity>> map = new HashMap<>();
        Map<String, List<CountEntity>> map = new HashMap<>(1);
        map.put("data", list);
        ExcelHelper.writeToTemplate(source, target, map);
@@ -277,7 +277,7 @@
            ce.setM2(FileHelper.getSizes(ce.getSizes()));
        }
        Map<String, List<CountEntity>> map = new HashMap<>();
        Map<String, List<CountEntity>> map = new HashMap<>(1);
        map.put("data", list);
        ExcelHelper.writeToTemplate(source, target, map);
@@ -289,6 +289,7 @@
    private DownloadEntity getDownloadEntity(UserEntity ue, String file) {
        DownloadEntity de = new DownloadEntity();
        de.setName(FileHelper.getFileName(file));
        // 1-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告
        de.setType(6);
        de.setSizes(FileHelper.sizeToMb(new File(file).length()));
        de.setDepid(ue.getDepid());