From db0cd1d60268811918f38a165052f94911f18e1e Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期四, 11 四月 2024 15:26:06 +0800
Subject: [PATCH] 更新

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

diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcHomeMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcHomeMapper.xml
index ad5cadb..25e3308 100644
--- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcHomeMapper.xml
+++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcHomeMapper.xml
@@ -102,4 +102,45 @@
         </where>
     </select>
 
+    <select id="getUtilizationByDay" resultType="org.jeecg.modules.mdc.entity.MdcEquipmentStatisticalInfo">
+        SELECT
+            the_date,
+            SUM ( process_long ) processLong,
+            SUM ( open_long ) openLong
+        FROM
+            mdc_equipment_statistical_info
+        <where>
+            AND the_date = #{date}
+            <if test="equipmentIdList != null and equipmentIdList.size() > 0 ">
+                AND equipment_id IN
+                <foreach collection="equipmentIdList" index="index" item="id" open="(" separator="," close=")">
+                    #{id}
+                </foreach>
+            </if>
+        </where>
+        GROUP BY
+            the_date
+    </select>
+
+    <select id="getEquipmentSevenUtilizationStatistics" resultType="org.jeecg.modules.mdc.entity.MdcEquipmentStatisticalInfo">
+        SELECT
+            equipment_id,
+            SUM ( process_long ) processLong,
+            SUM ( open_long ) openLong
+        FROM
+            mdc_equipment_statistical_info
+        <where>
+            AND the_date BETWEEN #{start} AND #{end}
+            <if test="equipmentIdList != null and equipmentIdList.size() > 0 ">
+                AND equipment_id IN
+                <foreach collection="equipmentIdList" index="index" item="id" open="(" separator="," close=")">
+                    #{id}
+                </foreach>
+            </if>
+        </where>
+        GROUP BY
+            equipment_id
+    </select>
+
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3