From 7f2d8230bd6bb29dc18e91a843018113cd6eb4c0 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期四, 28 三月 2024 09:26:49 +0800
Subject: [PATCH] 提交

---
 lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/PrecisionInspectionMapper.xml |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/PrecisionInspectionMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/PrecisionInspectionMapper.xml
index b00c034..0c029d4 100644
--- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/PrecisionInspectionMapper.xml
+++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/PrecisionInspectionMapper.xml
@@ -23,7 +23,8 @@
             t8.name AS equipmentName,
             t8.model AS equipmentModel,
             t8.num AS equipmentNum,
-            t9.depart_name AS useUnitName
+            t9.depart_name AS useUnitName,
+            t10.depart_name AS manageName
         FROM
             mom_eam_precision_inspection t1
         LEFT JOIN sys_depart t2 ON t1.maintenance_unit = t2.id
@@ -33,7 +34,8 @@
         LEFT JOIN sys_user t6 ON t1.use_unit_director_user = t6.id
         LEFT JOIN sys_user t7 ON t1.equipment_inspector_sign_user = t7.id
         LEFT JOIN mom_eam_equipment t8 ON t1.equipment_id = t8.id
-        LEFT JOIN sys_depart t9 ON t1.use_unit = t9.id
+        LEFT JOIN sys_depart t9 ON t8.use_id = t9.id
+        left join sys_depart t10 on t8.manage_id = t9.id
         where t1.del_flag = '0' and t1.maintenance_order_id = #{maintenanceOrderId}
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3