xufenglei
2018-09-20 79b6a856dc445f33a94f751076ec9cde2166757f
更新 优化
1 files modified
2 ■■■ changed files
src/main/resources/mapper/HistoryMapper.xml 2 ●●● patch | view | raw | blame | history
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}' ) AS '${sensorKey}'
        </foreach>
        FROM
            history h ,