[Cabrillo export] Fixed tablename
这个提交包含在:
父节点
bcdf01ef2a
当前提交
1249076d6d
共有 1 个文件被更改,包括 4 次插入 和 4 次删除
|
|
@ -197,7 +197,7 @@ class Contesting_model extends CI_Model {
|
|||
$station_id = $CI->Stations->find_active();
|
||||
|
||||
$sql = "select col_contest_id, min(date(col_time_on)) mindate, max(date(col_time_on)) maxdate, year(col_time_on) year, month(col_time_on) month
|
||||
from logbook l
|
||||
from " . $this->config->item('table_name') . "
|
||||
where coalesce(COL_CONTEST_ID, '') <> ''
|
||||
and station_id =" . $station_id;
|
||||
|
||||
|
|
@ -214,7 +214,7 @@ class Contesting_model extends CI_Model {
|
|||
$station_id = $CI->Stations->find_active();
|
||||
|
||||
$sql = "select distinct year(col_time_on) year
|
||||
from logbook l
|
||||
from " . $this->config->item('table_name') . "
|
||||
where coalesce(COL_CONTEST_ID, '') <> ''
|
||||
and station_id =" . $station_id;
|
||||
|
||||
|
|
@ -233,7 +233,7 @@ class Contesting_model extends CI_Model {
|
|||
$station_id = $CI->Stations->find_active();
|
||||
|
||||
$sql = "select distinct col_contest_id
|
||||
from logbook l
|
||||
from " . $this->config->item('table_name') . "
|
||||
where coalesce(COL_CONTEST_ID, '') <> ''
|
||||
and station_id =" . $station_id .
|
||||
" and year(col_time_on) ='" . $year . "'";
|
||||
|
|
@ -254,7 +254,7 @@ class Contesting_model extends CI_Model {
|
|||
$station_id = $CI->Stations->find_active();
|
||||
|
||||
$sql = "select min(date(col_time_on)) mindate, max(date(col_time_on)) maxdate
|
||||
from logbook l
|
||||
from " . $this->config->item('table_name') . "
|
||||
where coalesce(COL_CONTEST_ID, '') <> ''
|
||||
and station_id =" . $station_id .
|
||||
" and year(col_time_on) ='" . $year . "' and col_contest_id ='" . $contestid . "'";
|
||||
|
|
|
|||
正在加载…
在新工单中引用