jinpengyong
2020-11-05 88b14b3c7446f63a66dca1b3d4a5cff892739487
src/main/resources/mapper/HistoryHourlyMapper.xml
@@ -29,9 +29,9 @@
                    MAX(json->'$.${sensorKey}[2]') AS 'MAX${sensorKey}'
                </when>
                <otherwise>
                    AVG(json->'$.${sensorKey}[0]') AS 'AVG${sensorKey}',
                    AVG(json->'$.${sensorKey}[0]') AS '${sensorKey}',
                    MIN(json->'$.${sensorKey}[1]') AS 'MIN${sensorKey}',
                    MAX(json->'$.${sensorKey}[2]') AS '${sensorKey}'
                    MAX(json->'$.${sensorKey}[2]') AS 'MAX${sensorKey}'
                </otherwise>
            </choose>
        </foreach>