From 7be408b1ce28b70005cdf147f9c41065ddc43dea Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Tue, 08 May 2018 16:48:18 +0800
Subject: [PATCH] 设备信息修改

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

diff --git a/src/main/resources/mapper/HistoryMinutelyMapper.xml b/src/main/resources/mapper/HistoryMinutelyMapper.xml
index 4e9e4c3..4b1ea6e 100644
--- a/src/main/resources/mapper/HistoryMinutelyMapper.xml
+++ b/src/main/resources/mapper/HistoryMinutelyMapper.xml
@@ -20,8 +20,8 @@
 	
 	<select id="getMonitorPointOrDeviceAvgData" resultType="java.util.Map">
 		SELECT
-			DATE_FORMAT(time, #{typeFormat}) time,
-			<foreach  collection="sensorKeys" separator="," item="sensorKey">
+			DATE_FORMAT(time, #{typeFormat}) time
+			<foreach  collection="sensorKeys" open="," separator="," item="sensorKey">
 				AVG(json->'$.${sensorKey}[0]') AS '${sensorKey}'
 			</foreach>
 		FROM

--
Gitblit v1.8.0