管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-02-27 7b2cce1b88761c23da4dc8b5343dd9700c36a6fd
src/main/java/com/lf/server/service/data/DataQueryService.java
@@ -53,10 +53,10 @@
            if (entity != null) {
                ae.setPath(entity.getPath());
                String targetPath = pathHelper.getConfig().getUploadPath() + File.separator + ae.getPath();
                File f = new File(targetPath);
                String oldPath = pathHelper.getConfig().getUploadPath() + File.separator + ae.getPath();
                File f = new File(oldPath);
                if (!f.exists() || f.isDirectory()) {
                    newFile.renameTo(new File(targetPath));
                    newFile.renameTo(new File(oldPath));
                } else {
                    newFile.delete();
                }