From b5f260b2364fad1e74a7eb1f5985268056e3a9e7 Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期五, 24 四月 2026 18:24:15 +0800
Subject: [PATCH] Merge branch 'dev_New_pro' of http://114.132.189.42:9002/r/product-inventory-management-after into dev_New_pro

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

diff --git a/src/main/resources/mapper/production/ProductionBomStructureMapper.xml b/src/main/resources/mapper/production/ProductionBomStructureMapper.xml
index 1f70c48..13b534f 100644
--- a/src/main/resources/mapper/production/ProductionBomStructureMapper.xml
+++ b/src/main/resources/mapper/production/ProductionBomStructureMapper.xml
@@ -17,4 +17,18 @@
         <result column="dept_id" property="deptId" />
     </resultMap>
 
+    <select id="listByBomId" resultType="com.ruoyi.production.bean.vo.ProductionBomStructureVo">
+        select pbs.*,
+               p.product_name as productName,
+               pm.product_id as productId,
+               pm.model,
+               top1.name as operationName
+        from production_bom_structure pbs
+                 left join product_model pm on pbs.product_model_id = pm.id
+                 left join product p on pm.product_id = p.id
+                 left join technology_operation top1 on pbs.technology_operation_id = top1.id
+        where pbs.production_order_bom_id = #{bomId}
+        order by pbs.id
+    </select>
+
 </mapper>

--
Gitblit v1.9.3