From 218ab860ed4708f6f70a519775c56c9554000fe7 Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期五, 27 六月 2025 13:42:41 +0800
Subject: [PATCH] 去除多余引用
---
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcHomeMapper.xml | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 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 8209fb6..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,26 +123,24 @@
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,
- SUM ( t1.process_long ) processLong,
- SUM ( t1.open_long ) openLong
+ 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 t1.the_date BETWEEN #{start} AND #{end}
+ AND the_date BETWEEN #{start} AND #{end}
<if test="equipmentIdList != null and equipmentIdList.size() > 0 ">
- AND t1.equipment_id IN
+ AND equipment_id IN
<foreach collection="equipmentIdList" index="index" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</if>
</where>
GROUP BY
- t1.equipment_id,t2.equipment_name
+ equipment_id
</select>
--
Gitblit v1.9.3