| | |
| | | String root = pathHelper.getConfig().getUploadPath(); |
| | | switch (me.getType()) { |
| | | case "xls": |
| | | return 1; |
| | | return insertXls(root, mfe); |
| | | case "mdb": |
| | | return 2; |
| | | return insertMdb(root, mfe, tabs); |
| | | case "shp": |
| | | return 3; |
| | | return insertShp(root, mfe, tabs); |
| | | case "gdb": |
| | | return 4; |
| | | return insertGdb(root, mfe, tabs); |
| | | default: |
| | | return 0; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 插入Excel |
| | | */ |
| | | private Integer insertXls(String root, MetaFileEntity mfe) { |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | | * 插入MDB |
| | | */ |
| | | private Integer insertMdb(String root, MetaFileEntity mfe, List<TabMapperEntity> tabs) { |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | | * 插入SHP |
| | | */ |
| | | private Integer insertShp(String root, MetaFileEntity mfe, List<TabMapperEntity> tabs) { |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | | * 插入GDB |
| | | */ |
| | | private Integer insertGdb(String root, MetaFileEntity mfe, List<TabMapperEntity> tabs) { |
| | | |
| | | return 0; |
| | | } |
| | | } |