From 3a75aff8c1dea47564393877d4f71adbb318e013 Mon Sep 17 00:00:00 2001 From: “linengliang” <vanSuperEnergy@163.com> Date: 星期二, 24 十月 2023 17:04:46 +0800 Subject: [PATCH] 1.设备台账大全 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml index 3e657d1..3c4e12a 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml @@ -295,5 +295,40 @@ </if> order by t1.create_time desc </select> + <select id="getStandardList" resultType="org.jeecg.modules.eam.entity.DailyInspectionStandardDetail"> + select t9.* from ( select + t1.id id, + t5.name projectName, + t5.detection_standard standard, + '1' as type, + t6.name cycleName, + t2.equipment_id equipmentId + from mom_eam_daily_inspection_standard_detail t1 + left join mom_eam_daily_inspection_standard t2 + on t2.id = t1.daily_inspection_standard_id + left join mom_eam_inspection_project t5 + on t5.id = t1.inspection_project_id + left join mom_eam_maintenance_cycle t6 + on t6.id = t1.inspection_cycle_id + where t2.version_status = '2' + union all + select + t3.id id, + t7.name projectName, + t7.standard standard, + t8.maintenance_type type, + t8.name cycleName, + t4.equipment_id equipmentId + from mom_eam_maintenance_standard_detail t3 + left join mom_eam_maintenance_standard t4 + on t4.id = t3.maintenance_standard_id + left join mom_eam_maintenance_project t7 + on t7.id = t3.maintenance_project_id + left join mom_eam_maintenance_cycle t8 + on t8.id = t3.maintenance_cycle_id + where t4.version_status = '2') t9 where + t9.equipmentId = #{mainId} + order by t9.type + </select> </mapper> -- Gitblit v1.9.3