Get LoTW info for logbook and search
这个提交包含在:
		
							父节点
							
								
									fe27baabfb
								
							
						
					
					
						当前提交
						15272f82dc
					
				
					共有  2 个文件被更改,包括 4 次插入 和 2 次删除
				
			
		|  | @ -770,6 +770,7 @@ class Logbook extends CI_Controller { | ||||||
| 		$this->db->from($this->config->item('table_name')); | 		$this->db->from($this->config->item('table_name')); | ||||||
| 		$this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); | 		$this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); | ||||||
| 		$this->db->join('dxcc_entities', 'dxcc_entities.adif = '.$this->config->item('table_name').'.COL_DXCC'); | 		$this->db->join('dxcc_entities', 'dxcc_entities.adif = '.$this->config->item('table_name').'.COL_DXCC'); | ||||||
|  | 		$this->db->join('lotw_users', 'lotw_users.callsign = '.$this->config->item('table_name').'.col_call', 'left outer'); | ||||||
| 		$this->db->group_start(); | 		$this->db->group_start(); | ||||||
| 		$this->db->like(''.$this->config->item('table_name').'.COL_CALL', $id); | 		$this->db->like(''.$this->config->item('table_name').'.COL_CALL', $id); | ||||||
| 		$this->db->or_like(''.$this->config->item('table_name').'.COL_GRIDSQUARE', $id); | 		$this->db->or_like(''.$this->config->item('table_name').'.COL_GRIDSQUARE', $id); | ||||||
|  |  | ||||||
|  | @ -1280,11 +1280,12 @@ class Logbook_model extends CI_Model { | ||||||
|       return array(); |       return array(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     $this->db->select($this->config->item('table_name').'.*, station_profile.*, dxcc_entities.*'); |     $this->db->select($this->config->item('table_name').'.*, station_profile.*, dxcc_entities.*, lotw_users.callsign, lotw_users.lastupload'); | ||||||
|     $this->db->from($this->config->item('table_name')); |     $this->db->from($this->config->item('table_name')); | ||||||
| 
 | 
 | ||||||
|     $this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); |     $this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); | ||||||
|     $this->db->join('dxcc_entities', $this->config->item('table_name').'.col_dxcc = dxcc_entities.adif', 'left'); |     $this->db->join('dxcc_entities', $this->config->item('table_name').'.col_dxcc = dxcc_entities.adif', 'left'); | ||||||
|  |     $this->db->join('lotw_users', 'lotw_users.callsign = '.$this->config->item('table_name').'.col_call', 'left outer'); | ||||||
|     $this->db->where_in('station_profile.station_id', $logbooks_locations_array); |     $this->db->where_in('station_profile.station_id', $logbooks_locations_array); | ||||||
|     $this->db->order_by(''.$this->config->item('table_name').'.COL_TIME_ON', "desc"); |     $this->db->order_by(''.$this->config->item('table_name').'.COL_TIME_ON', "desc"); | ||||||
|     $this->db->order_by(''.$this->config->item('table_name').'.COL_PRIMARY_KEY', "desc"); |     $this->db->order_by(''.$this->config->item('table_name').'.COL_PRIMARY_KEY', "desc"); | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用