|
@@ -82,7 +82,6 @@ import java.io.*;
|
|
|
import java.net.URLEncoder;
|
|
|
import java.nio.file.Files;
|
|
|
import java.nio.file.Path;
|
|
|
-import java.nio.file.StandardCopyOption;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
import java.util.*;
|
|
@@ -1060,16 +1059,14 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
Path sourcePath = FileUtils.getOrDownloadFile(htmlUrl);
|
|
|
// 生成副本路径
|
|
|
Path copyPath = FileUtils.generateCopyPath(sourcePath);
|
|
|
- // 执行复制操作(覆盖已存在的文件)
|
|
|
- Files.copy(sourcePath, copyPath, StandardCopyOption.REPLACE_EXISTING);
|
|
|
+ // 复制文件
|
|
|
+ Files.copy(sourcePath, copyPath);
|
|
|
|
|
|
- oldHtml.setContractFormId(wbsTreeContract.getPKeyId());
|
|
|
oldHtml.setOldHtmlUrl(copyPath.toFile().getAbsolutePath());
|
|
|
data.add(oldHtml);
|
|
|
}
|
|
|
wbsTreeContractOldHtmlClient.save(data);
|
|
|
} catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
throw new ServiceException(e.getMessage());
|
|
|
}
|
|
|
}
|