ZhuDongming
2020-04-23 69fe5c709ecf9093b1640356eff7c1991a6dd7d3
src/main/resources/mapper/HistoryMinutelyMapper.xml
@@ -183,7 +183,7 @@
        select
        rs.monitorPointName,rs.name,
        <foreach collection="timeList" separator="," item="time">
            max(case time when #{time} then rs.${sensorKey} else null end) as #{time}
            max(case time when #{time} then rs.${sensorKey} else "" end) as #{time}
        </foreach>
        from
        (SELECT
@@ -210,7 +210,7 @@
        ORDER BY
        h.mac) rs
        GROUP BY rs.monitorPointName,rs.name
        order by rs.name
        order by rs.monitorPointName
    </select>
</mapper>