liujie
2026-08-11 323764c813a09cd56cdab780155ef659dbe0b364
ruoyi-system/src/main/resources/mapper/system/SysVisitorMachineMapper.xml
@@ -73,12 +73,12 @@
        <include refid="selectMachineVo" />
        <where>
            and m.del_flag = '0'
            <if test="query.areaId != null">
                and (m.area_id = #{query.areaId}
            <if test="areaId != null">
                and (m.area_id = #{areaId}
                     or m.area_id in (
                        select area_id from t_visit_area
                        where del_flag = '0'
                          and find_in_set(#{query.areaId}, ancestors)
                          and find_in_set(#{areaId}, ancestors)
                     ))
            </if>
            <if test="query.deviceName != null and query.deviceName != ''">