fix: P0 Critical 이슈 수정 - 삭제된 Product/Material 참조 제거

- ItemsBomController: ProductBomService 제거, Item.bom JSON 기반으로 재구현
- ItemsFileController: Product/Material → Item 모델로 통합
- ItemPage: products/materials 클래스 매핑 제거
- ItemsService 삭제 (1,210줄) - ItemService로 대체 완료

BOM 기능 변경:
- 기존: ProductBomService (삭제됨)
- 변경: Item 모델의 bom JSON 필드 직접 조작
- 모든 BOM API 엔드포인트 정상 동작

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-14 01:10:25 +09:00
parent 039fd623df
commit 20ad6da164
4 changed files with 287 additions and 1269 deletions

View File

@@ -104,9 +104,6 @@ public function getTargetModelClass(): ?string
{
$mapping = [
'items' => \App\Models\Items\Item::class,
// 하위 호환성 (마이그레이션 완료 전까지)
'products' => \App\Models\Products\Product::class,
'materials' => \App\Models\Materials\Material::class,
];
return $mapping[$this->source_table] ?? null;