From 75f9894ebac12b13c7ead27c3e16db833ee9251a Mon Sep 17 00:00:00 2001
From: z1415143022 <z1415143022@163.com>
Date: 星期二, 25 三月 2025 20:02:45 +0800
Subject: [PATCH] Merge branch 'develop1.0' into zhangjw_from_develop1.0

---
 zhitan-system/src/main/resources/mapper/comprehensivestatistics/DailyComprehensiveMapper.xml |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/zhitan-system/src/main/resources/mapper/comprehensivestatistics/DailyComprehensiveMapper.xml b/zhitan-system/src/main/resources/mapper/comprehensivestatistics/DailyComprehensiveMapper.xml
index 99bdde1..329e365 100644
--- a/zhitan-system/src/main/resources/mapper/comprehensivestatistics/DailyComprehensiveMapper.xml
+++ b/zhitan-system/src/main/resources/mapper/comprehensivestatistics/DailyComprehensiveMapper.xml
@@ -39,6 +39,7 @@
         SELECT
             aa.index_id,
             aa.index_name,
+            aa.unit_id,
             <foreach item="item" index="index" collection="dataList">
                 COALESCE ( MAX ( CASE WHEN data_time = #{item.dataTime} THEN "value" END ), null ) AS ${item.value},
             </foreach>
@@ -49,6 +50,7 @@
             SELECT
                 ni.index_id,
                 ei."name" AS "index_name",
+                ei.unit_id,
                 di."value",
                 di.data_time,
                 di.time_type,
@@ -68,7 +70,7 @@
                 </if>
             ) aa
         GROUP BY
-            aa.index_id, aa.index_name, aa.time_type, aa.order_num
+            aa.index_id, aa.index_name, aa.unit_id, aa.time_type, aa.order_num
         ORDER BY aa.order_num ASC
     </select>
 

--
Gitblit v1.9.3