From 6ae82b70571679eec7e848657409c537b417adfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Thu, 19 Feb 2026 22:38:52 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9E=91=EC=97=85=EC=A7=80=EC=8B=9C=20?= =?UTF-8?q?=EB=8B=A8=EA=B1=B4=EC=A1=B0=ED=9A=8C(show)=EC=97=90=20materialI?= =?UTF-8?q?nputs=20eager=20loading=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - show() 메서드에 items.materialInputs, items.materialInputs.stockLot 누락 - 목록조회에만 있고 단건조회에 빠져서 프론트 입고 LOT NO 표시 안됨 Co-Authored-By: Claude Opus 4.6 --- app/Services/WorkOrderService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Services/WorkOrderService.php b/app/Services/WorkOrderService.php index 344f598..a661675 100644 --- a/app/Services/WorkOrderService.php +++ b/app/Services/WorkOrderService.php @@ -217,6 +217,8 @@ public function show(int $id) 'process.steps' => fn ($q) => $q->where('is_active', true)->orderBy('sort_order'), 'items.sourceOrderItem:id,order_node_id,floor_code,symbol_code', 'items.sourceOrderItem.node:id,name,code', + 'items.materialInputs:id,work_order_id,work_order_item_id,stock_lot_id,item_id,qty,input_by,input_at', + 'items.materialInputs.stockLot:id,lot_no', 'bendingDetail', 'issues' => fn ($q) => $q->orderByDesc('created_at'), 'stepProgress.processStep:id,process_id,step_code,step_name,sort_order,needs_inspection,connection_type,completion_type',