| | |
| | | import java.io.File; |
| | | import java.sql.Timestamp; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | File f = new File(mf.getPath()); |
| | | if (!f.exists()) { |
| | | mf.setMsg("文件丢失"); |
| | | } |
| | | if (f.exists() && StringHelper.isNull(mf.getGuid())) { |
| | | mf.setGuid(FileHelper.getFileMd5(f.getPath())); |
| | | } |
| | | |
| | | MetaEntity old = metaService.selectByGuid(mf.getGuid(), getDirCode(mf), null); |
| | |
| | | } |
| | | |
| | | MetaEntity me = createMeta(mf, metaId); |
| | | if (StaticData._GDB.equals(me.getType())) { |
| | | if (StaticData.NGDB.equals(me.getType())) { |
| | | if (guids.contains(me.getGuid())) { |
| | | me.setMetaid(-1); |
| | | me.setIsmeta((short)-1); |
| | | } else { |
| | | guids.add(me.getGuid()); |
| | | } |