| | |
| | | |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid(), tabName); |
| | | if (old != null) { |
| | | mf.setPath(old.getPath()); |
| | | mf.setTab(old.getTab()); |
| | | mf.setEntity(old.getLayer()); |
| | | mf.setTab(old.getTab()); |
| | | mf.setRows(old.getRows()); |
| | | return; |
| | | } |
| | |
| | | |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid(), null); |
| | | if (null != old) { |
| | | mf.setPath(old.getPath()); |
| | | FileHelper.deleteFiles(file); |
| | | return; |
| | | } |
| | |
| | | */ |
| | | private String findPathByGuid(List<MetaFileEntity> list, MetaFileEntity mf) { |
| | | for (MetaFileEntity meta : list) { |
| | | if (meta.getGuid().equals(mf.getGuid()) && !meta.getPath().equals(mf.getPath())) { |
| | | if (meta.getGuid().equals(mf.getGuid()) && !meta.getEventid().equals(mf.getEventid())) { |
| | | return meta.getPath(); |
| | | } |
| | | } |