From 3152a4e4dadcd6ebfb8e882aa356d063416d49cc Mon Sep 17 00:00:00 2001
From: kaiyu <404897439@qq.com>
Date: Tue, 24 Nov 2020 09:58:26 +0800
Subject: [PATCH] Merge branch 'master' of http://blit.7drlb.com:8888/r/screen_job

---
 src/main/resources/mapper/HistoryHourlyMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/HistoryHourlyMapper.xml b/src/main/resources/mapper/HistoryHourlyMapper.xml
index f64a1fc..f9a4473 100644
--- a/src/main/resources/mapper/HistoryHourlyMapper.xml
+++ b/src/main/resources/mapper/HistoryHourlyMapper.xml
@@ -29,9 +29,9 @@
                     MAX(json->'$.${sensorKey}[2]') AS 'MAX${sensorKey}'
                 </when>
                 <otherwise>
-                    AVG(json->'$.${sensorKey}[0]') AS 'AVG${sensorKey}',
+                    AVG(json->'$.${sensorKey}[0]') AS '${sensorKey}',
                     MIN(json->'$.${sensorKey}[1]') AS 'MIN${sensorKey}',
-                    MAX(json->'$.${sensorKey}[2]') AS '${sensorKey}'
+                    MAX(json->'$.${sensorKey}[2]') AS 'MAX${sensorKey}'
                 </otherwise>
             </choose>
         </foreach>

--
Gitblit v1.8.0