From 3066a8f5c1f475997bfe23857ba4bae9395900c4 Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期四, 13 八月 2026 10:19:24 +0800
Subject: [PATCH] fix: 领料功能修改,移除订单领料,添加工序领料功能,支持按工序查询物料与已领料记录

---
 src/main/resources/mapper/production/ProductionBomStructureMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/production/ProductionBomStructureMapper.xml b/src/main/resources/mapper/production/ProductionBomStructureMapper.xml
index c116f6f..53b44da 100644
--- a/src/main/resources/mapper/production/ProductionBomStructureMapper.xml
+++ b/src/main/resources/mapper/production/ProductionBomStructureMapper.xml
@@ -44,7 +44,7 @@
                 LEFT JOIN product p ON pm.product_id = p.id
                 LEFT JOIN technology_operation top1 ON pbs.technology_operation_id = top1.id
         WHERE
-            pbs.parent_id IS NOT NULL
+            pbs.technology_operation_id IS NOT NULL
           AND pbs.production_order_bom_id = #{bomId}
         ORDER BY
             pbs.id

--
Gitblit v1.9.3