| | |
| | | ce.create_time as distribute_time, |
| | | concat(ce.longitude, ',', ce.latitude) as event_location, |
| | | ce.event_num as event_num, |
| | | tr.shoot_time as shoot_time, |
| | | tr.result_url as event_image_url, |
| | | tr.geojson as geojson, |
| | | tr.attachment_type |
| | | COALESCE(tr.shoot_time, ce.shoot_time) as shoot_time, |
| | | COALESCE(tr.result_url, ce.attach_url) as event_image_url, |
| | | COALESCE(tr.geojson, ce.geojson) as geojson, |
| | | COALESCE(tr.attachment_type, ce.attachment_type) as attachment_type |
| | | from ja_gd_clue_event ce |
| | | left join blade_user bu on bu.id::VARCHAR = ce.dispose_user::VARCHAR and bu.is_deleted = 0 |
| | | left join blade_dept bd on bd.id::VARCHAR = ce.dispose_dept::VARCHAR and bd.is_deleted = 0 |