[OQRS] Fixed SAT QSOs not showing up correctly in the result
这个提交包含在:
父节点
0bdebe187f
当前提交
7a78c743ce
共有 1 个文件被更改,包括 3 次插入 和 1 次删除
|
|
@ -48,7 +48,9 @@ class Oqrs_model extends CI_Model {
|
|||
function getQueryData($station_id, $callsign) {
|
||||
$station_id = $this->security->xss_clean($station_id);
|
||||
$callsign = $this->security->xss_clean($callsign);
|
||||
$sql = 'select lower(col_mode) col_mode, coalesce(col_submode, "") col_submode, col_band from ' . $this->config->item('table_name') . ' where station_id = ' . $station_id . ' and col_call ="' . $callsign . '"';
|
||||
$sql = 'select lower(col_mode) col_mode, coalesce(col_submode, "") col_submode, col_band from ' . $this->config->item('table_name') . ' where station_id = ' . $station_id . ' and col_call ="' . $callsign . '" and col_prop_mode != "SAT"';
|
||||
|
||||
$sql .= ' union select lower(col_mode) col_mode, coalesce(col_submode, "") col_submode, "SAT" col_band from ' . $this->config->item('table_name') . ' where station_id = ' . $station_id . ' and col_call ="' . $callsign . '" and col_prop_mode = "SAT"';
|
||||
|
||||
$query = $this->db->query($sql);
|
||||
|
||||
|
|
|
|||
正在加载…
在新工单中引用