| | |
| | | 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> |
| | | |
| | | |
| | |
| | | #{createTime}, |
| | | #{updateUser}, |
| | | #{updateTime}, |
| | | IFNULL(#{status}, '0'), |
| | | IFNULL(#{isDeleted}, 0) |
| | | COALESCE(#{status}, '0'), |
| | | COALESCE(#{isDeleted}, 0) |
| | | ) |
| | | </insert> |
| | | |