| | |
| | | return; |
| | | } |
| | | |
| | | List<?> list = null; |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid(), tabName); |
| | | if (old != null) { |
| | | mf.setPath(old.getPath()); |
| | | mf.setEntity(old.getLayer()); |
| | | mf.setTab(old.getTab()); |
| | | mf.setRows(old.getRows()); |
| | | return; |
| | | } |
| | | |
| | | List<?> list; |
| | | if (StaticData.SHP.equals(mf.getExtName())) { |
| | | list = ShpHelper.readData(clazz, mf.getPath()); |
| | | } else { |
| | |
| | | return -1; |
| | | } |
| | | |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid()); |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid(), null); |
| | | if (null != old) { |
| | | mf.setPath(old.getPath()); |
| | | mf.setTab(old.getTab()); |
| | |
| | | return; |
| | | } |
| | | |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid()); |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid(), null); |
| | | if (null != old) { |
| | | mf.setPath(old.getPath()); |
| | | mf.setTab(old.getTab()); |
| | | mf.setEntity(old.getLayer()); |
| | | mf.setRows(old.getRows()); |
| | | FileHelper.deleteFiles(file); |
| | | return; |
| | | } |
| | |
| | | for (MetaFileEntity mf : list) { |
| | | boolean isXls = StaticData.XLS.equals(mf.getExtName()) || StaticData.XLSX.equals(mf.getExtName()); |
| | | if (mf.getRows() > -1 && isXls) { |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid()); |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid(), null); |
| | | if (null == old) { |
| | | xlsList.add(mf); |
| | | } else { |