영상관리 수정 - 확장자 대문자 ignore, 파일경로 추가, 오류목록 등록일 기준 수정

This commit is contained in:
2026-01-26 11:48:15 +09:00
parent 4373237cc1
commit 1a4371ead3
3 changed files with 44 additions and 30 deletions

View File

@@ -85,7 +85,9 @@ public class MapSheetMngFileJobService {
// 도엽별 파일 체크 진행중으로 변경
item.setDataState("PROCESSING");
item.setUseInference("USE");
if (exceptCheckCnt == 0) item.setUseInference("EXCEPT");
if (exceptCheckCnt == 0) {
item.setUseInference("EXCEPT");
}
mngHstDataSyncStateUpdate(item);
// 1. MngHstDto 객체의 필드 값에 접근
@@ -133,7 +135,9 @@ public class MapSheetMngFileJobService {
syncState = "";
syncCheckState = "";
if (tfwCnt == 0 && tifCnt == 0) syncState = "NOFILE";
if (tfwCnt == 0 && tifCnt == 0) {
syncState = "NOFILE";
}
for (Basic item2 : basicList) {
// System.out.println("path: " + item2.getParentPath());
@@ -151,7 +155,7 @@ public class MapSheetMngFileJobService {
addReq.setHstUid(item.getHstUid());
fileState = "DONE";
if (item2.getExtension().equals("tfw")) {
if ("tfw".equalsIgnoreCase(item2.getExtension())) {
if (tifCnt == 0) {
fileState = "NOTPAIR";
syncState = fileState;
@@ -169,7 +173,7 @@ public class MapSheetMngFileJobService {
item.setMapSheetPath(item2.getParentPath());
item.setSyncTfwFileName(item2.getFileNm());
} else if (item2.getExtension().equals("tif")) {
} else if ("tif".equalsIgnoreCase(item2.getExtension())) {
if (tfwCnt == 0) {
fileState = "NOTPAIR";
syncState = fileState;
@@ -195,7 +199,9 @@ public class MapSheetMngFileJobService {
// 도엽별 파일 체크 완료로 변경
item.setDataState("DONE");
if (syncState.isEmpty()) syncState = "DONE";
if (syncState.isEmpty()) {
syncState = "DONE";
}
item.setSyncState(syncState);
mngHstDataSyncStateUpdate(item);
@@ -230,7 +236,9 @@ public class MapSheetMngFileJobService {
public Long mapSheetAutoExceptionUpdate(int mngYyyy, String mapSheetNum) {
// 2025년 이전 파일싱크는 무조건 이전3년이 존재하지 않으므로 자동추론제외를 진행하지 않는다.(전년도 파일이 무조건 존재하는 것으로 리턴)
if (syncAutoExceptionStartYear > mngYyyy) return 1L;
if (syncAutoExceptionStartYear > mngYyyy) {
return 1L;
}
// List<String> mapSheetNums = new ArrayList<>();
// mapSheetNums.add(mapSheetNum);