吉安感知网项目-后端
rain
2026-01-13 6b3eead4b660064f58412c80d36b35cc659fc077
drone-service/drone-fw/src/main/java/org/sxkj/fw/device/mapper/FwDeviceMapper.xml
@@ -77,6 +77,23 @@
        </where>
    </select>
    <select id="selectFwDeviceList" resultMap="fwDeviceResultMap">
        select * from ja_fw_device
        <where>
            is_deleted = 0
            <if test="isAreaSelect != null and isAreaSelect == 1">
                and not exists (
                    select 1
                    from ja_fw_area_divide ad
                    where ad.is_deleted = 0
                    and ad.device_ids is not null
                    and ad.device_ids != ''
                    and find_in_set(ja_fw_device.id, ad.device_ids)
                )
            </if>
        </where>
    </select>
    <select id="exportFwDevice" resultType="org.sxkj.fw.device.excel.FwDeviceExcel">
        SELECT * FROM ja_fw_device ${ew.customSqlSegment}