diff --git a/plans/integrated-master-plan.md b/plans/integrated-master-plan.md index ba3234a..7490860 100644 --- a/plans/integrated-master-plan.md +++ b/plans/integrated-master-plan.md @@ -2,7 +2,7 @@ > **작성일**: 2026-02-27 > **목적**: 두 개선 계획(제품코드 추적성, 검사 단위 구조)을 하나의 순차적 실행 계획으로 통합 -> **상태**: 🔄 Phase 0~2 완료, Phase 3 실행 대기 +> **상태**: 🔄 Phase 0~3 완료, Phase 4 이후 대기 > **원본 문서**: > - [`product-code-traceability-plan.md`](./product-code-traceability-plan.md) (아카이브 참조) > - [`document-system-improvement-plan.md`](./document-system-improvement-plan.md) (아카이브 참조) @@ -15,9 +15,9 @@ | 항목 | 내용 | |------|------| -| **마지막 완료 작업** | Phase 2B - 견적 product_code 자동추출 + inspections work_order_id FK + 데이터 보정 | -| **다음 작업** | Phase 3 (절곡 검사 동적 구현) | -| **진행률** | 4/7 Phase (Phase 0+1+2A+2B 완료) | +| **마지막 완료 작업** | Phase 3 - 절곡 검사 동적 구현 (inspection-config API + 트랜잭션 보강) | +| **다음 작업** | Phase 4 (절곡 재공품 + 결재 워크플로우) — 후순위 | +| **진행률** | 5/7 Phase (Phase 0+1+2A+2B+3 완료) | | **마지막 업데이트** | 2026-02-27 | --- @@ -45,7 +45,7 @@ | **1** | product_code 전파 버그 수정 | product-code P1 | Phase 0 | ✅ | [Phase 0-1 상세](./integrated-phase-0-1.md) | | **2A** | 절곡 검사 분석/설계 | document-system P1 | 없음 (**Phase 1과 병렬**) | ✅ | [Phase 2 상세](./integrated-phase-2.md) | | **2B** | 견적/수주 정합성 + 품질 FK | product-code P2+P3 | Phase 1 | ✅ | [Phase 2 상세](./integrated-phase-2.md) | -| **3** | 절곡 검사 동적 구현 | document-system P2 | Phase 1 + 2A | ⏳ | [Phase 3 상세](./integrated-phase-3.md) | +| **3** | 절곡 검사 동적 구현 | document-system P2 | Phase 1 + 2A | ✅ | [Phase 3 상세](./integrated-phase-3.md) | | **4** | 절곡 재공품 + 결재 워크플로우 | document-system P3 | Phase 3 | ⏭️ | 마스터 요약만 | | **5** | 완제품 마스터 + 출하 연결 | product-code P4 | Phase 2B | ⏭️ | 마스터 요약만 | | **6** | 3관점 검사 + 수주별 뷰 | document-system P4 | Phase 3 + 기획자 | ⏭️ | 마스터 요약만 | @@ -192,7 +192,7 @@ Phase 2A ──────────────┼── Phase 3 ─── --- -### Phase 3: 절곡 검사 동적 구현 ⏳ +### Phase 3: 절곡 검사 동적 구현 ✅ **목표**: API 기반 동적 구성품 로딩으로 고정 로직 대체 @@ -355,6 +355,7 @@ Phase 2A ──────────────┼── Phase 3 ─── | 2026-02-27 | 통합 문서 작성 | product-code + document-system 2개 계획을 7 Phase 통합 계획으로 병합 | | 2026-02-27 | Phase 2A 완료 | 절곡 검사 분석/설계 완료. dynamic_bom 발견, 5130 대조 완료, inspection-config API 재설계 | | 2026-02-27 | Phase 2B 완료 | 견적 product_code 자동추출, inspections.work_order_id FK, 데이터 보정 25건 | +| 2026-02-27 | Phase 3 완료 | inspection-config API(3.1), TemplateInspectionContent API 연동(3.2), EAV 호환 확인(3.3+3.4), 트랜잭션 보강(3.5) | --- diff --git a/plans/integrated-phase-3.md b/plans/integrated-phase-3.md index 81ea2b9..ea3d05a 100644 --- a/plans/integrated-phase-3.md +++ b/plans/integrated-phase-3.md @@ -2,7 +2,7 @@ > **통합 계획**: [`integrated-master-plan.md`](./integrated-master-plan.md) > **원본**: [`document-system-improvement-plan.md`](./document-system-improvement-plan.md) Phase 2 -> **상태**: ⏳ 실행 대기 +> **상태**: ✅ 구현 완료 > **의존성**: Phase 1 (product_code 전파) + Phase 2A (API 설계) 완료 필수 > **리뷰 문서**: [`document-system-improvement-review.md`](./document-system-improvement-review.md) @@ -37,11 +37,11 @@ Phase 1에서 `product_code` 전파 버그를 수정하고, Phase 2A에서 API | # | 작업 항목 | 상태 | 비고 | |---|----------|:----:|------| -| 3.1 | `inspection-config` API 구현 (공정 자동 판별) | ⏳ | `BelongsToTenant` 필수 (M1) | -| 3.2 | `TemplateInspectionContent` API 연동 (`buildBendingProducts` 대체) | ⏳ | `DEFAULT_GAP_PROFILES` → API 기준치 | -| 3.3 | `document_data` EAV 저장/복원 검증 | ⏳ | C1 `field_key` 인코딩 패턴 | -| 3.4 | 기존 절곡 검사 데이터 하위 호환 확인 | ⏳ | 레거시(Path A) + 신규(Path B) 독립 동작 | -| 3.5 | `createInspectionDocument` 트랜잭션 보강 | ⏳ | I2: `lockForUpdate` + `DB::transaction` | +| 3.1 | `inspection-config` API 구현 (공정 자동 판별) | ✅ | `BENDING_GAP_PROFILES` 상수 + `resolveInspectionProcessType` | +| 3.2 | `TemplateInspectionContent` API 연동 (`buildBendingProducts` 대체) | ✅ | API 우선 → `buildBendingProducts` fallback | +| 3.3 | `document_data` EAV 저장/복원 검증 | ✅ | productIdx 순서 일치 확인 (벽면/측면 모두) | +| 3.4 | 기존 절곡 검사 데이터 하위 호환 확인 | ✅ | Path A 미수정, Path B fallback 유지 | +| 3.5 | `createInspectionDocument` 트랜잭션 보강 | ✅ | `DB::transaction` + `lockForUpdate` 적용 | --- @@ -353,6 +353,10 @@ public function createInspectionDocument(WorkOrder $workOrder, ...) | 날짜 | 항목 | 변경 내용 | |------|------|----------| | 2026-02-27 | 문서 작성 | 통합 계획 Phase 3 상세 문서 작성 | +| 2026-02-27 | 3.5 완료 | `createInspectionDocument` DB::transaction + lockForUpdate 적용 | +| 2026-02-27 | 3.1 완료 | `inspection-config` API 구현 (Service + Controller + Route) | +| 2026-02-27 | 3.2 완료 | `TemplateInspectionContent` API 연동 (inspectionConfig state + fallback) | +| 2026-02-27 | 3.3+3.4 완료 | EAV productIdx 순서 호환 확인, Path A/B 독립 동작 확인 | ---