From e935889261ef38c8eaef31e54cbfc466d63d2ef4 Mon Sep 17 00:00:00 2001
From: hyingbo <1363390067@qq.com>
Date: 星期四, 17 七月 2025 09:42:28 +0800
Subject: [PATCH] fanuc获取程序名、获取报警描述

---
 lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcDowntimeMapper.xml |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcDowntimeMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcDowntimeMapper.xml
index 898cd96..85d3ca7 100644
--- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcDowntimeMapper.xml
+++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcDowntimeMapper.xml
@@ -44,20 +44,18 @@
     <select id="equDowntimeStatistics" resultType="org.jeecg.modules.board.vo.EquDowntimeInfo">
         SELECT
             t2.downtime_description AS shutdown_info,
-            SUM ( DATEDIFF( SECOND, t1.start_date, t1.end_date ) ) / 3600.0 AS duration_hours
+            SUM ( DATEDIFF( SECOND, t1.start_date, t1.end_date ) ) / 3600.0 AS duration
         FROM
             mdc_downtime t1
                 LEFT JOIN mdc_downtime_reason t2 ON t1.reason_id = t2.id
         WHERE
             t1.reason_id != ''
-          AND t1.the_date BETWEEN #{start} AND #{end}
-        AND t1.equipment_id IN
-        <foreach collection="equipmentIdList" item="equipmentId" index="index" open="(" close=")" separator=",">
-            #{ equipmentId }
-        </foreach>
+            AND t1.the_date BETWEEN #{start} AND #{end}
+            AND t1.equipment_id IN
+            <foreach collection="equipmentIdList" item="equipmentId" index="index" open="(" close=")" separator=",">
+                #{ equipmentId }
+            </foreach>
         GROUP BY
             t2.downtime_description
-        ORDER BY
-            duration_hours DESC
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3