From d3e79914a4657bf39bb4e59cc7bf35cf6492da58 Mon Sep 17 00:00:00 2001
From: cuijian <cuijian@xalxzn.com>
Date: 星期四, 02 十一月 2023 18:05:41 +0800
Subject: [PATCH] 操作证管理、设备点检工单自动生成

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

diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/InspectionCycleMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/InspectionCycleMapper.xml
index ecb67cd..582757a 100644
--- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/InspectionCycleMapper.xml
+++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/InspectionCycleMapper.xml
@@ -82,4 +82,18 @@
 		where t2.version_status='2'
 		and t1.del_flag=0
 	</select>
+
+    <select id="getInspectionOrder" resultType="org.jeecg.modules.eam.entity.InspectionCycle">
+		select DISTINCT t1.num inspectionStandardNum,
+		t1.equipment_id,
+		t2.daily_inspection_standard_id inspectionStandardId,
+		t3.*,
+		t4.team_id teamId
+		from mom_eam_daily_inspection_standard t1
+            left join mom_eam_daily_inspection_standard_detail t2 on t1.id = t2.daily_inspection_standard_id
+            left join mom_eam_inspection_cycle t3 on t3.id = t2.inspection_cycle_id
+            left join mom_eam_equipment t4 on t4.id = t1.equipment_id
+            where t1.version_status = 2 and t1.status = 1 and t1.del_flag=0 and t3.name is not NULL
+	</select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3