영상관리 chunk, uploadPair 로직 수정
This commit is contained in:
@@ -148,7 +148,7 @@ public class MapSheetMngService {
|
||||
|
||||
// 멀티파트 파일 tmp폴더 저장(파일형식 체크를 위해)
|
||||
String tfwTmpPath = tmpPath + tfwFile.getOriginalFilename();
|
||||
String tifTmpPath = tmpPath + tifFile;
|
||||
// String tifTmpPath = tmpPath + tifFile;
|
||||
|
||||
if (!FIleChecker.multipartSaveTo(tfwFile, tfwTmpPath)) {
|
||||
return new DmlReturn("fail", "UPLOAD ERROR");
|
||||
@@ -393,7 +393,6 @@ public class MapSheetMngService {
|
||||
uploadPath = Paths.get(referPath).getParent().toString() + "/" + errDto.getRefMapSheetNum();
|
||||
}
|
||||
|
||||
upAddReqDto.setUuid(errDto.getUuid());
|
||||
upAddReqDto.setFinalPath(uploadPath + "/");
|
||||
upAddReqDto.setTempPath(upAddReqDto.getTempPath() + "/");
|
||||
|
||||
@@ -402,7 +401,7 @@ public class MapSheetMngService {
|
||||
ModelUploadResDto modelUploadResDto = new ModelUploadResDto();
|
||||
|
||||
// 병합 다 했는데 gdalinfo 가 fail 이면 삭제?
|
||||
if (upRes.getRes().equals("MERGED")) {
|
||||
if (upAddReqDto.getStatus().equals("MERGED")) {
|
||||
if (!FIleChecker.cmmndGdalInfo(upRes.getFilePath() + "/" + upRes.getFileName())) {
|
||||
Path filePath = Paths.get(upRes.getFilePath());
|
||||
Files.deleteIfExists(filePath);
|
||||
@@ -410,6 +409,10 @@ public class MapSheetMngService {
|
||||
modelUploadResDto.setResMsg("TIF TYPE ERROR");
|
||||
return modelUploadResDto;
|
||||
}
|
||||
|
||||
// upload_id, uuid 를 update
|
||||
mapSheetMngCoreService.updateMapSheetMngHstUploadId(
|
||||
hstUid, upAddReqDto.getUuid(), upRes.getUploadId());
|
||||
}
|
||||
|
||||
modelUploadResDto.setRes(upRes.getRes());
|
||||
|
||||
Reference in New Issue
Block a user