Added a function to mark all qsos not sent to clublog
markallnotsent is really only needed if theres been a major failure
这个提交包含在:
父节点
4816240d9b
当前提交
e351185bf1
共有 2 个文件被更改,包括 15 次插入 和 0 次删除
|
|
@ -106,6 +106,11 @@ class Clublog extends CI_Controller {
|
|||
$this->load->model('clublog_model');
|
||||
$this->clublog_model->mark_qsos_sent();
|
||||
}
|
||||
|
||||
function markallnotsent() {
|
||||
$this->load->model('clublog_model');
|
||||
$this->clublog_model->mark_all_qsos_notsent();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -25,6 +25,16 @@ class Clublog_model extends CI_Model {
|
|||
$this->db->or_where("COL_CLUBLOG_QSO_UPLOAD_STATUS", "N");
|
||||
$this->db->update($this->config->item('table_name'), $data);
|
||||
}
|
||||
|
||||
function mark_all_qsos_notsent() {
|
||||
$data = array(
|
||||
'COL_CLUBLOG_QSO_UPLOAD_DATE' => null,
|
||||
'COL_CLUBLOG_QSO_UPLOAD_STATUS' => "N",
|
||||
);
|
||||
|
||||
$this->db->where("COL_CLUBLOG_QSO_UPLOAD_STATUS", "Y");
|
||||
$this->db->update($this->config->item('table_name'), $data);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
正在加载…
在新工单中引用