|
@@ -399,8 +399,8 @@ public class FileUtils {
|
|
|
/**
|
|
|
* 生成带后缀的副本路径
|
|
|
*/
|
|
|
- public static Path generateCopyPath(Path originalPath) {
|
|
|
- String suffix = "_copy";
|
|
|
+ public static Path generateCopyPath(Path originalPath, Long pKeyId) {
|
|
|
+ String suffix = "_" + pKeyId + "_copy";
|
|
|
String fileName = originalPath.getFileName().toString();
|
|
|
int dotIndex = fileName.lastIndexOf('.');
|
|
|
|