From a7a4e0e6ae09c720e50dc22fc50c67519414067c Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期四, 24 十月 2024 09:45:55 +0800
Subject: [PATCH] update

---
 lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcComponentInfoMapper.xml |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcComponentInfoMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcComponentInfoMapper.xml
index 5a7f989..826a10f 100644
--- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcComponentInfoMapper.xml
+++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcComponentInfoMapper.xml
@@ -15,4 +15,16 @@
             </if>
         </where>
     </select>
+
+    <select id="findByComponentNo" resultType="org.jeecg.modules.mdc.entity.MdcComponentInfo">
+        SELECT
+            t1.*
+        FROM
+            mdc_component_info t1
+                LEFT JOIN mdc_production_equipment t2 ON t1.beltline_id = t2.production_id
+                LEFT JOIN mdc_equipment t3 ON t3.id = t2.equipment_id
+        WHERE
+            t1.component_no = #{productNo}
+          AND t3.equipment_id = #{equipmentId}
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3