src/main/resources/mapper/HistoryEntityMapper.xml
@@ -239,7 +239,12 @@ <select id="getAverageByAll" resultType="map"> SELECT <if test="macKey == 'all'"> h.mac_key, </if> <if test="macKey != null and macKey != 'all'"> e.name, </if> AVG(h.mac_value) avg FROM history h, @@ -258,8 +263,13 @@ #{listItem} </foreach> </if> <if test="macKey == 'all'"> GROUP BY h.mac_key </if> <if test="macKey != null and macKey != 'all'"> AND h.mac_key = #{macKey} </if> </select> <select id="getEquipmentStates" resultType="map">