fengxiang
2018-08-29 f2eaa5bc6c417c9f851cb7ba2bf004c5b035c0ef
src/main/resources/mapper/HistoryMinutelyMapper.xml
@@ -17,13 +17,11 @@
            (SELECT
               d.mac 
            FROM
               device d,
               monitor_point mp
               device d
            WHERE
               d.is_delete = 0 
               AND d.monitor_point_id = mp.id
               <if test="monitorPointId != null">
               AND mp.id =   #{monitorPointId}
               AND d.monitor_point_id = #{monitorPointId}
               </if>
               <if test="mac != null">
               AND d.mac = #{mac}