ZhuDongming
2019-09-11 b0c63481b2c1e0fa5c67f10827c4568dc3c02ac2
src/main/resources/mapper/HistoryDailyMapper.xml
@@ -14,10 +14,10 @@
            hd.mac = vdi.mac
            AND vdi.monitor_point_id = mp.id
            AND vdi.device_tech = 1
            <if test="monitorPointId != null and monitorPointId!=''">
            <if test="monitorPointId != null">
                AND mp.id = #{monitorPointId}
            </if>
            <if test="mac != null and mac!=''">
            <if test="mac != null">
                AND hd.mac = #{mac}
            </if>
            <if test="start != null">
@@ -111,10 +111,10 @@
        FROM
        history_daily
        <where>
            <if test="mac!=null and mac!=''">
            <if test="mac!=null">
                AND mac=#{mac}
            </if>
            <if test="time!=null and time!=''">
            <if test="time!=null">
                AND time=#{time}
            </if>
        </where>