feat/infer_dev_260107 #1

Merged
teddy merged 43 commits from feat/infer_dev_260107 into develop 2026-01-29 10:31:31 +09:00
Showing only changes of commit 1c477bc41f - Show all commits

View File

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