From 71ec1ef4d277ade4cbd76c721f3b63d21182fac0 Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期五, 15 八月 2025 11:08:39 +0800
Subject: [PATCH] 停机管理新增修改

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

diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentStatisticalInfoMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentStatisticalInfoMapper.xml
index dcf3f48..c501223 100644
--- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentStatisticalInfoMapper.xml
+++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentStatisticalInfoMapper.xml
@@ -13,6 +13,10 @@
         SELECT TOP 1 process_long FROM mdc_equipment_statistical_info WHERE equipment_id = #{equipmentId} AND the_date = #{validDate}
     </select>
 
+    <select id="findMdcEquipmentStatisticalInfo" resultType="org.jeecg.modules.mdc.entity.MdcEquipmentStatisticalInfo">
+        SELECT * FROM mdc_equipment_statistical_info WHERE equipment_id = #{equipmentId} AND the_date BETWEEN #{start} AND #{end}
+    </select>
+
     <select id="findByEquipmentAndMonth" resultType="org.jeecg.modules.mdc.dto.MdcEquipmentStatisticalDto">
         SELECT
             SUM(open_long) openLong,
@@ -30,11 +34,11 @@
     <select id="findByEquipmentAndDate" resultType="org.jeecg.modules.mdc.entity.MdcEquipmentStatisticalInfo">
         SELECT
             the_date,
-            AVG ( open_long ) openLong,
-            AVG ( wait_long ) waitLong,
-            AVG ( process_long ) processLong,
-            AVG ( close_long ) closeLong,
-            AVG ( error_long ) errorLong
+            AVG( open_long ) openLong,
+            AVG( wait_long ) waitLong,
+            AVG( process_long ) processLong,
+            AVG( close_long ) closeLong,
+            AVG( error_long ) errorLong
         FROM
             mdc_equipment_statistical_info
         <where>

--
Gitblit v1.9.3