From 710df8489c740910bda9a557d9a7fdc6cf39df41 Mon Sep 17 00:00:00 2001
From: yangbin <yangbin@qq.com>
Date: 星期四, 20 二月 2025 11:32:55 +0800
Subject: [PATCH] 大屏看板1

---
 lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/EquipmentStatisticalInfoMapper.xml |   54 ++++++++++++++++++++++++++++--------------------------
 1 files changed, 28 insertions(+), 26 deletions(-)

diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/EquipmentStatisticalInfoMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/EquipmentStatisticalInfoMapper.xml
index 1c7631d..85d615e 100644
--- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/EquipmentStatisticalInfoMapper.xml
+++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/EquipmentStatisticalInfoMapper.xml
@@ -3,67 +3,69 @@
 <mapper namespace="org.jeecg.modules.mdc.mapper.EquipmentStatisticalInfoMapper">
     <select id="findDataRankingForBigScreen" resultType="org.jeecg.modules.mdc.subcontrol.vo.LastWeekDataVo">
         SELECT
-        EQUIPMENT,
-        SUM( CLOSEDLONG ) CLOSEDLONG,
-        SUM( ERRORINGLONG ) ERRORINGLONG,
-        SUM( OPENINGLONG ) OPENINGLONG,
-        SUM( PROCESSINGLONG ) PROCESSINGLONG,
-        SUM( WAITINGLONG ) WAITINGLONG
+        equipment_id equipment,
+        SUM( open_long ) openlong,
+        SUM( close_long ) closelong,
+        SUM( wait_long ) waitlong,
+        SUM( process_long ) processingLong,
+        SUM( error_long ) errorlong
         FROM
-        EQUIPMENTSTATISTICALINFO
+        mdc_equipment_statistical_info
         <where>
             <if test="equipmentIdList != null and equipmentIdList.size() > 0">
-                AND EQUIPMENT IN
+                AND equipment_id IN
                 <foreach collection="equipmentIdList" item="id" index="index" open="(" close=")" separator=",">
                     #{ id }
                 </foreach>
             </if>
-            AND THEDATE &gt;= #{ monday }
-            AND THEDATE &lt;= #{ saturday }
+            AND the_date &gt;= #{ monday }
+            AND the_date &lt;= #{ saturday }
         </where>
         GROUP BY
-        EQUIPMENT;
+        equipment_id;
     </select>
 
     <select id="findDataForBigScreen" resultType="org.jeecg.modules.mdc.subcontrol.vo.LastWeekDataVo">
         SELECT
-        THEDATE,
-        SUM( OPENINGLONG ) OPENINGLONG,
-        SUM(CLOSEDLONG) CLOSEDLONG,
-        SUM(PROCESSINGLONG) PROCESSINGLONG,
-        SUM(WAITINGLONG) WAITINGLONG
+        equipment_id equipment,
+        SUM( open_long ) openlong,
+        SUM( close_long ) closelong,
+        SUM( wait_long ) waitlong,
+        SUM( process_long ) processingLong,
+        SUM( error_long ) errorlong
         FROM
-        EQUIPMENTSTATISTICALINFO
+        mdc_equipment_statistical_info
         <where>
             <if test="equipmentIdList != null and equipmentIdList.size() > 0">
-                AND EQUIPMENT IN
+                AND equipment_id IN
                 <foreach collection="equipmentIdList" item="id" index="index" open="(" close=")" separator=",">
                     #{ id }
                 </foreach>
             </if>
-            AND THEDATE &gt;= #{ monday }
-            AND THEDATE &lt;= #{ saturday }
+            AND the_date &gt;= #{ monday }
+            AND the_date &lt;= #{ saturday }
         </where>
         GROUP BY
-        THEDATE
+        the_date
         ORDER BY
-        THEDATE ASC;
+        the_date ASC;
     </select>
 
     <select id="findEquipmentId" resultType="java.lang.String">
         SELECT DISTINCT
-        EQUIPMENT
+        equipment_id equipment
         FROM
-        EQUIPMENTSTATISTICALINFO
+
+        mdc_equipment_statistical_info
         <where>
             <if test="equipmentIdList != null and equipmentIdList.size() > 0">
-                AND EQUIPMENT IN
+                AND equipment_id IN
                 <foreach collection="equipmentIdList" item="id" index="index" open="(" close=")" separator=",">
                     #{ id }
                 </foreach>
             </if>
             <if test="date != null and date != ''">
-                AND THEDATE = #{ date }
+                AND the_date = #{ date }
             </if>
         </where>
     </select>

--
Gitblit v1.9.3