管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-02-27 8f2042ce63ceb46b8c14e7f6e72bfe80492e64d1
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();
                }