From b2a193c00bc97bf98d5db2d831b470af7e7449cf Mon Sep 17 00:00:00 2001
From: yangman <15045099937@qq.com>
Date: 星期三, 05 七月 2023 14:42:40 +0800
Subject: [PATCH] 修改扭矩配置管理mapper
---
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml
index 26d708c..15df7d9 100644
--- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml
+++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml
@@ -146,5 +146,49 @@
</foreach>
</select>
+ <!--鏍规嵁璁惧缂栧彿鏌ヨ璁惧淇℃伅鍜岄儴闂ㄤ俊鎭�-->
+ <select id="findEquDepList" resultType="org.jeecg.modules.mdc.dto.MdcEquDepDto">
+ SELECT
+ sd.id,
+ sd.parent_id,
+ sd.depart_name,
+ sd.org_type,
+ me.equipment_id,
+ me.equipment_name,
+ me.equipment_type
+ FROM
+ mdc_equipment_depart med
+ LEFT JOIN sys_depart sd ON med.dep_id = sd.id
+ LEFT JOIN mdc_equipment me ON me.id = med.equipment_id
+ <where>
+ me.equipment_id IN
+ <foreach collection="equipmentIdList" index="index" item="id" open="(" separator="," close=")">
+ #{id}
+ </foreach>
+ </where>
+ </select>
+
+ <!--鏍规嵁璁惧缂栧彿鏌ヨ璁惧淇℃伅鍜屼骇绾夸俊鎭�-->
+ <select id="findEquProList" resultType="org.jeecg.modules.mdc.dto.MdcEquProDto">
+ SELECT
+ mp.id,
+ mp.parent_id,
+ mp.production_name,
+ mp.org_type,
+ me.equipment_id,
+ me.equipment_name,
+ me.equipment_type
+ FROM
+ mdc_production_equipment mpe
+ LEFT JOIN mdc_production mp ON mpe.production_id = mp.id
+ LEFT JOIN mdc_equipment me ON me.id = mpe.equipment_id
+ <where>
+ me.equipment_id IN
+ <foreach collection="equipmentIdList" index="index" item="id" open="(" separator="," close=")">
+ #{id}
+ </foreach>
+ </where>
+ </select>
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3