工业级运维app手机api
xufenglei
2017-11-03 d1c0c991624ecb68bf44cbae163eaf28640296df
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">