fengxiang
2018-04-25 51f3652b96a09c150554ff8cbca7585e932235cd
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