From 0db15ae012591c51e98b226c274045323af4f58d Mon Sep 17 00:00:00 2001 From: “linengliang” <vanSuperEnergy@163.com> Date: 星期一, 18 九月 2023 10:36:01 +0800 Subject: [PATCH] 设备备件 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentSparesMapper.xml | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentSparesMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentSparesMapper.xml index e113c42..b09668f 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentSparesMapper.xml +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentSparesMapper.xml @@ -44,4 +44,25 @@ </if> ORDER BY t1.create_time desc </select> -</mapper> \ No newline at end of file + <select id="getPagesByEquipmentId" resultType="org.jeecg.modules.eam.entity.EquipmentSpares"> + select + t1.id id, + t2.id sparePartId, + t2.name name, + t2.num num, + t2.model model, + t2.specification specification, + t2.main_unit_id unitId, + t3.name unitName, + t1.equipment_id equipmentId + from mom_eam_equipment_spares t1 + left join mom_eam_spare_part t2 + on t1.spare_part_id = t2.id + left join mom_base_unit t3 + on t2.main_unit_id = t3.id + where + t1.del_flag = 0 + and + t1.equipment_id=#{equipmentId} + </select> +</mapper> -- Gitblit v1.9.3