From 1f305ff688283cffe636844fe443677f81303139 Mon Sep 17 00:00:00 2001
From: Houjie <714924425@qq.com>
Date: 星期三, 27 八月 2025 11:58:19 +0800
Subject: [PATCH] 故障报修, 维修工单  迁移

---
 src/main/java/org/jeecg/modules/pms/mapper/xml/PmsProcessBillMaterialsDetailMapper.xml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/jeecg/modules/pms/mapper/xml/PmsProcessBillMaterialsDetailMapper.xml b/src/main/java/org/jeecg/modules/pms/mapper/xml/PmsProcessBillMaterialsDetailMapper.xml
index 3d45db9..c569fbd 100644
--- a/src/main/java/org/jeecg/modules/pms/mapper/xml/PmsProcessBillMaterialsDetailMapper.xml
+++ b/src/main/java/org/jeecg/modules/pms/mapper/xml/PmsProcessBillMaterialsDetailMapper.xml
@@ -14,4 +14,13 @@
             AND material_name LIKE CONCAT('%', #{params.materialName}, '%')
         </if>
     </select>
+    <select id="queryByMaterialNumber" resultType="org.jeecg.modules.pms.entity.PmsProcessBillMaterialsDetail">
+        select DISTINCT t1.material_number, t1.material_name, t1.production_unit
+        from pms_process_bill_materials_detail t1
+        where EXISTS(select t2.id
+                     from pms_process_bill_materials t2
+                     where t2.material_number = #{materialNumber}
+                       and t1.material_id = t2.id)
+
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3