영상관리 자동추론제외 수정

This commit is contained in:
2026-01-27 17:33:27 +09:00
parent 6ed679c8d6
commit 1c477bc41f

View File

@@ -80,15 +80,15 @@ public class MapSheetMngFileJobService {
for (MngHstDto item : mapSheetFileNotYetList) {
// 5K도엽 자동추론제외
// Long exceptCheckCnt =
// this.mapSheetAutoExceptionUpdate(item.getMngYyyy(), item.getMapSheetNum());
Long exceptCheckCnt =
this.mapSheetAutoExceptionUpdate(item.getMngYyyy(), item.getMapSheetNum());
// 도엽별 파일 체크 진행중으로 변경
item.setDataState("PROCESSING");
item.setUseInference("USE");
// if (exceptCheckCnt == 0) {
// item.setUseInference("EXCEPT");
// }
if (exceptCheckCnt == 0) {
item.setUseInference("EXCEPT");
}
mngHstDataSyncStateUpdate(item);
// 1. MngHstDto 객체의 필드 값에 접근
@@ -190,17 +190,8 @@ public class MapSheetMngFileJobService {
// 도엽별 파일 체크 완료로 변경
item.setDataState("DONE");
// syncState가 DONE 이 아닐 때 자동추론 제외, DONE 이면 사용 처리
if (syncState.isEmpty()) {
syncState = "DONE";
// tb_map_inkx_5k 테이블 자동 추론제외 해제 -> 사용으로 처리
mapSheetMngFileJobCoreService.updateException5kMapSheet(
item.getMapSheetNum(), CommonUseStatus.USE);
} else {
item.setUseInference("EXCEPT"); // hst 테이블 use_inference EXCEPT 하기
// tb_map_inkx_5k 테이블 자동 추론제외 update
mapSheetMngFileJobCoreService.updateException5kMapSheet(
item.getMapSheetNum(), CommonUseStatus.AUTO_EXCEPT);
}
item.setSyncState(syncState);
@@ -237,14 +228,15 @@ public class MapSheetMngFileJobService {
public Long mapSheetAutoExceptionUpdate(int mngYyyy, String mapSheetNum) {
// 2025년 이전 파일싱크는 무조건 이전3년이 존재하지 않으므로 자동추론제외를 진행하지 않는다.(전년도 파일이 무조건 존재하는 것으로 리턴)
if (syncAutoExceptionStartYear > mngYyyy) {
return 1L;
}
// if (syncAutoExceptionStartYear > mngYyyy) {
// return 1L;
// }
int strtYyyy = mngYyyy - syncAutoExceptionBeforeYearCnt + 1;
// int strtYyyy = mngYyyy - syncAutoExceptionBeforeYearCnt + 1;
int strtYyyy = 2020;
int endYyyy = mngYyyy;
// 본년도+이전년도가 3개년인 도엽 확인
// 본년도+이전년도가 3개년인 도엽 확인 -> 2020년도부터 현재까지
Long beforeCnt =
mapSheetMngFileJobCoreService.findByHstMapSheetBeforeYyyyListCount(
strtYyyy, endYyyy, mapSheetNum);
@@ -253,6 +245,9 @@ public class MapSheetMngFileJobService {
System.out.println("mapSheetAutoExceptionUpdate inference == 자동추론제외");
mapSheetMngFileJobCoreService.updateException5kMapSheet(
mapSheetNum, CommonUseStatus.AUTO_EXCEPT);
} else {
// 하나라도 있으면 USE
mapSheetMngFileJobCoreService.updateException5kMapSheet(mapSheetNum, CommonUseStatus.USE);
}
return beforeCnt;