진행중 + FINISH인데 검수완료가 마지막 zip 파일 완료일자보다 뒤에 일어난 건도 포함되게 수정

This commit is contained in:
2026-03-12 00:14:36 +09:00
parent 24add0fc13
commit 501cdfe53c
3 changed files with 28 additions and 9 deletions

View File

@@ -45,9 +45,8 @@ exportGeoJsonJob (Parent Job)
```
**실행 조건:**
- `tb_map_sheet_anal_inference` 테이블의 `anal_state = 'ING'` (진행 중)
- 검수 완료(`COMPLETE`) 건수가 1개 이상 존재
- `all_cnt != file_cnt` (아직 파일 생성이 완료되지 않은 경우)
- `tb_map_sheet_anal_inference.anal_state = 'ING'` 이고 검수 완료(`COMPLETE`) 건수가 1개 이상인 건
- 또는 `tb_map_sheet_anal_inference.anal_state = 'FINISH'` 이면서 `batch_step_history` 에서 `step_name = 'zipResponseStep'`, `status = 'SUCCESS'` 인 마지막 ZIP 완료 시각보다 더 늦게 검수 완료(`COMPLETE`) 된 건이 있는 건
---
@@ -179,7 +178,7 @@ CREATE TABLE public.batch_step_history (
**처리 과정:**
1. `findCompletedAnalMapSheetList()`: 검수 완료된 도엽 목록 조회
2. 각 도엽별로:
- `findCompletedYesterdayLabelingList()`: 어제까지 검수 완료된 데이터 조회
- `findCompletedYesterdayLabelingList()`: 배치 실행일 0시 이전까지 검수 완료된 데이터 조회
- GeoJSON Feature 생성
- `/dataset/request/{resultUid}/{filename}.geojson` 저장
- `updateLearnDataGeomFileCreateYn()`: DB에 파일 생성 완료 플래그 업데이트