xufenglei
2018-05-07 106dbe94a4bcfc90fc646b0a1e017e23ad2b058b
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