ZhuDongming
2019-06-05 2b9c0e19babda8b4828d396bd0c2f97be3a0c0a4
src/main/resources/mapper/HistoryMapper.xml
@@ -143,7 +143,7 @@
   <select id="getActualDataByRegion" resultType="java.util.Map">
      SELECT
      <foreach collection="sensorKeys" separator="," item="sensorKey">
         MAX( CONVERT ( `value` -> '$.${sensorKey}', DECIMAL ) ) AS '${sensorKey}'
         MAX( `value` ->> '$.${sensorKey}' ) * 1 AS '${sensorKey}'
      </foreach>
      FROM
         history h ,