| | |
| | | break; |
| | | case StaticData.GDB: |
| | | if (gdbList.contains(mf.getPath())) { |
| | | MetaEntity meta = metaService.selectByGuid(mf.getGuid()); |
| | | if (null != meta) { |
| | | mf.setPath(meta.getPath()); |
| | | String path = findPathByGuid(list, mf); |
| | | if (null != path) { |
| | | mf.setPath(path); |
| | | } |
| | | continue; |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * 根据GUID查找路径 |
| | | */ |
| | | private String findPathByGuid(List<MetaFileEntity> list, MetaFileEntity mf) { |
| | | for (MetaFileEntity meta : list) { |
| | | if (meta.getGuid().equals(mf.getGuid())) { |
| | | return meta.getPath(); |
| | | } |
| | | } |
| | | |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 插入元数据 |
| | | */ |
| | | private List<MetaEntity> insertMetas(List<MetaFileEntity> list) { |