From d0b97b5655a6cac1efbda08dad1d3019ed973923 Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期三, 21 五月 2025 12:04:16 +0800
Subject: [PATCH] 设备日志批量导出

---
 lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcDownTimeMapper.xml |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 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 aa4344b..c0d4bb3 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
@@ -27,4 +27,24 @@
         </where>
         ORDER BY the_date DESC, equipment_id ASC
     </select>
+
+    <!--鏌ヨ褰撴湀鎬绘晠闅滃仠鏈烘椂闂�-->
+    <select id="findTotalDownLong" resultType="java.math.BigDecimal">
+        SELECT
+            SUM(down_long)
+        FROM
+            mdc_down_time
+        WHERE
+            the_date LIKE CONCAT(#{month}, '%')
+    </select>
+
+    <!--鏌ヨ褰撴湀鎬绘晠闅滃仠鏈烘鏁�-->
+    <select id="findTotalDownCount" resultType="java.lang.Integer">
+        SELECT
+            COUNT(down_long)
+        FROM
+            mdc_down_time
+        WHERE
+            the_date LIKE CONCAT(#{month}, '%')
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3