管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-22 bab794149027f53bfcfa1499dd01ba3e41e983be
1
已修改1个文件
11 ■■■■■ 文件已修改
src/main/java/com/lf/server/service/data/DataLoaderService.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/data/DataLoaderService.java
@@ -70,17 +70,21 @@
     * 获取映射
     */
    private List<TabMapperEntity> getMappers(String zipPath, File[] files) {
        String temp = pathHelper.getConfig().getTempPath();
        List<TabMapperEntity> list = new ArrayList<>();
        for (File f : files) {
            String fileName = FileHelper.getFileName(f.getPath());
            if (fileName.contains(XLS)) {
                list.add(new TabMapperEntity(fileName, "xls", null, fileName));
                String path = f.getPath().replace(temp + File.separator, "");
                list.add(new TabMapperEntity(fileName, "xls", null, path));
                continue;
            }
            if (fileName.contains(MDB)) {
                String path = f.getPath().replace(temp + File.separator, "");
                List<String> tabs = MdbHelper.getTabNames(f.getPath());
                for (String tab : tabs) {
                    list.add(new TabMapperEntity(fileName, "mdb", tab, fileName));
                    list.add(new TabMapperEntity(fileName, "mdb", tab, path));
                }
                continue;
            }
@@ -236,8 +240,7 @@
                    case "shp":
                    case "gdb":
                    case "mdb":
                        String zipPath = FileHelper.getPath(temp + File.separator + mf.getPath()) + "_zip";
                        insertDb(me.getType(), zipPath, mfe, tabs);
                        insertDb(me.getType(), temp, mfe, tabs);
                        break;
                    default:
                        break;