吉安感知网项目-后端
linwei
2026-04-02 8ac34cbae4ea8cc47194f51389a4e2dddebcc7d5
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/mapper/FwDefenseZoneMapper.xml
@@ -91,12 +91,12 @@
            and dz.id = #{zoneId}
            and dz.defense_scene_ids is not null
            and dz.defense_scene_ids != ''
            and find_in_set(ds.id, replace(dz.defense_scene_ids, ' ', ''))
            and ds.id = ANY(string_to_array(replace(dz.defense_scene_ids, ' ', ''), ',')::bigint[])
        join ja_fw_area_divide ad on ad.is_deleted = 0
            and ds.area_divide_ids is not null
            and ds.area_divide_ids != ''
            and find_in_set(ad.id, replace(ds.area_divide_ids, ' ', ''))
        left join ja_fw_police_station ps on ps.id = ad.police_station_id::VARCHAR and ps.is_deleted = 0
            and ad.id = ANY(string_to_array(replace(ds.area_divide_ids, ' ', ''), ',')::bigint[])
        left join ja_fw_police_station ps on ps.id::VARCHAR = ad.police_station_id::VARCHAR and ps.is_deleted = 0
    </select>
@@ -266,8 +266,8 @@
            #{createTime},
            #{updateUser},
            #{updateTime},
            IFNULL(#{status}, '0'),
            IFNULL(#{isDeleted}, 0)
        COALESCE(#{status}, '0'),
        COALESCE(#{isDeleted}, 0)
        )
    </insert>