xufenglei
2018-04-03 9c59fffe9c14a0ff7463ae182692a1e4e7d5066c
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