When importing only check QSO exists for that station profile
这个提交包含在:
父节点
81e8b51729
当前提交
c2a389cb99
共有 2 个文件被更改,包括 8 次插入 和 9 次删除
|
|
@ -1251,12 +1251,17 @@ class Logbook_model extends CI_Model {
|
||||||
$input_lotw_qslsdate = NULL;
|
$input_lotw_qslsdate = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($station_id == "" || $station_id == "0") {
|
||||||
|
$CI =& get_instance();
|
||||||
|
$CI->load->model('Stations');
|
||||||
|
$station_id = $CI->Stations->find_active();
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($record['call'])){
|
if (isset($record['call'])){
|
||||||
$this->db->where('COL_CALL', $record['call']);
|
$this->db->where('COL_CALL', $record['call']);
|
||||||
}
|
}
|
||||||
$this->db->where('COL_TIME_ON', $time_on);
|
$this->db->where('COL_TIME_ON', $time_on);
|
||||||
|
$this->db->where('station_id', $station_id);
|
||||||
$check = $this->db->get($this->config->item('table_name'));
|
$check = $this->db->get($this->config->item('table_name'));
|
||||||
|
|
||||||
if ($check->num_rows() <= 0)
|
if ($check->num_rows() <= 0)
|
||||||
|
|
@ -1418,12 +1423,6 @@ class Logbook_model extends CI_Model {
|
||||||
'COL_WEB' => (!empty($record['web'])) ? $record['web'] : ''
|
'COL_WEB' => (!empty($record['web'])) ? $record['web'] : ''
|
||||||
);
|
);
|
||||||
|
|
||||||
if($station_id == "" || $station_id == "0") {
|
|
||||||
$CI =& get_instance();
|
|
||||||
$CI->load->model('Stations');
|
|
||||||
$station_id = $CI->Stations->find_active();
|
|
||||||
}
|
|
||||||
|
|
||||||
if($station_id != "0") {
|
if($station_id != "0") {
|
||||||
$station_result = $this->db->where('station_id', $station_id)
|
$station_result = $this->db->where('station_id', $station_id)
|
||||||
->get('station_profile');
|
->get('station_profile');
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用