| | |
| | | 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, ' ', '')) |
| | | and ad.id = ANY(string_to_array(replace(ds.area_divide_ids, ' ', ''), ',')::bigint[]) |
| | | left join ja_fw_police_station ps on ps.id = ad.police_station_id::VARCHAR and ps.is_deleted = 0 |
| | | </select> |
| | | |