납품데이터셋 업로드 geojson 파일 수정 #174
@@ -64,11 +64,20 @@ public class DatasetBatchService {
|
|||||||
|
|
||||||
if (fileNameStr.length < 4) {
|
if (fileNameStr.length < 4) {
|
||||||
log.error("파일명 파싱 실패: {}", fileName);
|
log.error("파일명 파싱 실패: {}", fileName);
|
||||||
throw new IllegalArgumentException("잘못된 파일명 형식: " + fileName);
|
return;
|
||||||
|
// throw new IllegalArgumentException("잘못된 파일명 형식: " + fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
int compareYyyy = 0;
|
||||||
|
int targetYyyy = 0;
|
||||||
|
try {
|
||||||
|
compareYyyy = parseInt(fileNameStr[1], "compareYyyy", fileName);
|
||||||
|
targetYyyy = parseInt(fileNameStr[2], "targetYyyy", fileName);
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("기준년도 파싱 실패: {}", fileName);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int compareYyyy = parseInt(fileNameStr[1], "compareYyyy", fileName);
|
|
||||||
int targetYyyy = parseInt(fileNameStr[2], "targetYyyy", fileName);
|
|
||||||
String mapSheetNum = fileNameStr[3];
|
String mapSheetNum = fileNameStr[3];
|
||||||
|
|
||||||
// JSON 유효성 체크
|
// JSON 유효성 체크
|
||||||
|
|||||||
Reference in New Issue
Block a user