From a7ecb4b14c2e5a56f425f46decc9c203580edd35 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期四, 25 七月 2024 10:56:56 +0800
Subject: [PATCH] 小修改

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

diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentMaintenancePlanMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentMaintenancePlanMapper.xml
index 0d5548a..c471c33 100644
--- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentMaintenancePlanMapper.xml
+++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EquipmentMaintenancePlanMapper.xml
@@ -4,6 +4,7 @@
     <select id="getCycle" resultType="org.jeecg.modules.eam.entity.MaintenanceStandardDetail">
         select
         t1.id id,
+        t1.maintenance_project_id maintenanceProjectId,
         t2.id maintenanceCycleId
         from mom_eam_maintenance_standard_detail t1
         left join mom_eam_maintenance_cycle t2 on t2.id = t1.maintenance_cycle_id
@@ -11,5 +12,18 @@
         and t2.maintenance_type = #{type}
         and t1.del_flag = 0
     </select>
+    <select id="getStandards" resultType="org.jeecg.modules.eam.entity.MaintenanceStandard">
+        select t1.*,
+               t2.id euipmentId,
+               t2.name equipmentName,
+               t2.num equipmentNum,
+               t2.model equipmentModel
+        from mom_eam_maintenance_standard t1
+        left join mom_eam_equipment t2 on t1.equipment_id = t2.id
+        where t1.del_flag = 0
+        and t1.version_status = '2'
+        and t1.maintenance_type = #{maintenanceType}
+        and t1.equipment_id = #{equipmentId}
+    </select>
 
 </mapper>

--
Gitblit v1.9.3