From 36f9a19a35ec72e831afa60f288d6fc96e86d7e2 Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期二, 08 七月 2025 20:29:24 +0800
Subject: [PATCH] art:设备台账-根据设备编号查询设备信息

---
 lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcHomeMapper.xml |   10 ++++------
 1 files changed, 4 insertions(+), 6 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 28cc1a9..b809b98 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
@@ -123,15 +123,13 @@
             the_date
     </select>
 
-    <select id="getEquipmentSevenUtilizationStatistics" resultType="org.jeecg.modules.mdc.dto.MdcEquipmentStatisticalInfoDto">
+    <select id="getEquipmentSevenUtilizationStatistics" resultType="org.jeecg.modules.mdc.entity.MdcEquipmentStatisticalInfo">
         SELECT
-            t1.equipment_id,
-            t2.equipment_name,
+            equipment_id,
             SUM ( process_long ) processLong,
             SUM ( open_long ) openLong
         FROM
-            mdc_equipment_statistical_info t1
-            LEFT JOIN mdc_equipment t2 ON t1.equipment_id = t2.equipment_id
+            mdc_equipment_statistical_info
         <where>
             AND the_date BETWEEN #{start} AND #{end}
             <if test="equipmentIdList != null and equipmentIdList.size() > 0 ">
@@ -142,7 +140,7 @@
             </if>
         </where>
         GROUP BY
-            t1.equipment_id,t2.equipment_name
+            equipment_id
     </select>
 
 

--
Gitblit v1.9.3