From 0d978c2fcf7ce97c90ee25297f9ebf37079bc18a Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期四, 18 四月 2024 10:05:53 +0800
Subject: [PATCH] 首页利用率排序

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

--
Gitblit v1.9.3