[Bands] SIG support added
这个提交包含在:
		
							父节点
							
								
									fe9c6d520d
								
							
						
					
					
						当前提交
						0eab4e1a60
					
				
					共有  1 个文件被更改,包括 12 次插入 和 0 次删除
				
			
		|  | @ -11,7 +11,12 @@ class Sig extends CI_Model { | ||||||
|             return null; |             return null; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  | 		$this->load->model('bands'); | ||||||
|  | 
 | ||||||
|  | 		$bandslots = $this->bands->get_worked_bands('sig'); | ||||||
|  | 
 | ||||||
| 		$this->db->where_in("station_id", $logbooks_locations_array); | 		$this->db->where_in("station_id", $logbooks_locations_array); | ||||||
|  | 		$this->db->where_in("col_band", $bandslots); | ||||||
| 		$this->db->order_by("COL_SIG_INFO", "ASC"); | 		$this->db->order_by("COL_SIG_INFO", "ASC"); | ||||||
| 		$this->db->where('COL_SIG =', $type); | 		$this->db->where('COL_SIG =', $type); | ||||||
| 
 | 
 | ||||||
|  | @ -29,9 +34,16 @@ class Sig extends CI_Model { | ||||||
| 
 | 
 | ||||||
| 		$location_list = "'".implode("','",$logbooks_locations_array)."'"; | 		$location_list = "'".implode("','",$logbooks_locations_array)."'"; | ||||||
| 
 | 
 | ||||||
|  | 		$this->load->model('bands'); | ||||||
|  | 
 | ||||||
|  | 		$bandslots = $this->bands->get_worked_bands('sig'); | ||||||
|  | 
 | ||||||
|  | 		$bandslots_list = "'".implode("','",$bandslots)."'"; | ||||||
|  | 
 | ||||||
|         $sql = "select col_sig, count(*) qsos, count(distinct col_sig_info) refs from " . $this->config->item('table_name') . |         $sql = "select col_sig, count(*) qsos, count(distinct col_sig_info) refs from " . $this->config->item('table_name') . | ||||||
|                 " where col_sig <> ''" . |                 " where col_sig <> ''" . | ||||||
|                 " and station_id in (" . $location_list . ")" . |                 " and station_id in (" . $location_list . ")" . | ||||||
|  | 				" and col_band in (" . $bandslots_list . ")" . | ||||||
|                 " group by col_sig"; |                 " group by col_sig"; | ||||||
| 
 | 
 | ||||||
|         $query = $this->db->query($sql); |         $query = $this->db->query($sql); | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用