영상관리 수정

This commit is contained in:
Moon
2025-12-23 13:04:48 +09:00
parent 783aede623
commit 48657ad662
3 changed files with 7 additions and 5 deletions

View File

@@ -169,8 +169,6 @@ public class MapSheetMngService {
mapSheetMngCoreService.findYyyyToMapSheetFilePathRefer(errDto.getMngYyyy());
String referPath = filesDto.getFilePath();
uploadPath = Paths.get(referPath).getParent().toString() + "/" + errDto.getRefMapSheetNum();
tfwTargetPath = Paths.get(uploadPath).resolve(tfwFile.getOriginalFilename());
tifTargetPath = Paths.get(uploadPath).resolve(tifFile.getOriginalFilename());
}
// 업로드 경로 확인(없으면 생성)
@@ -178,6 +176,9 @@ public class MapSheetMngService {
return new DmlReturn("fail", "CREATE FOLDER ERROR");
}
tfwTargetPath = Paths.get(uploadPath).resolve(tfwFile.getOriginalFilename());
tifTargetPath = Paths.get(uploadPath).resolve(tifFile.getOriginalFilename());
try {
Files.move(tfwTmpSavePath, tfwTargetPath, StandardCopyOption.REPLACE_EXISTING);
Files.move(tifTmpSavePath, tifTargetPath, StandardCopyOption.REPLACE_EXISTING);