From b98924dab9f433d152944f189e0a28edb09ed7e7 Mon Sep 17 00:00:00 2001 From: 沈斌 <bluelazysb@hotmail.com> Date: Thu, 26 Apr 2018 16:40:43 +0800 Subject: [PATCH] 修改ftp服务器 --- 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