吉安感知网项目-后端
linwei
2026-07-16 bc882ac7279be16952b9bee15c3c078ccc68af6f
fix(device): 修复设备查询逻辑,增加轨迹状态过滤条件

- 在设备查询SQL中添加track_status = 1的过滤条件
- 确保只返回轨迹状态为1的设备记录
- 修复了设备列表展示异常的问题
1 files modified
1 ■■■■ changed files
drone-service/drone-fw/src/main/java/org/sxkj/fw/device/mapper/FwDeviceMapper.xml 1 ●●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/device/mapper/FwDeviceMapper.xml
@@ -47,6 +47,7 @@
        ja_fw_device
        <where>
            is_deleted = 0
            and track_status = 1
            <if test="param2.id != null and param2.id != ''">
                and id::text = #{param2.id}::text
            </if>