Add table join on DXCC entities to search function
这个提交包含在:
父节点
80f8b88c5a
当前提交
5c9ec6b6eb
共有 1 个文件被更改,包括 1 次插入 和 0 次删除
|
|
@ -769,6 +769,7 @@ class Logbook extends CI_Controller {
|
||||||
function querydb($id) {
|
function querydb($id) {
|
||||||
$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->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);
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用