Had to remove band from query as well.
这个提交包含在:
父节点
49a6ca53e1
当前提交
f7cb30e3b9
共有 1 个文件被更改,包括 2 次插入 和 2 次删除
|
|
@ -153,7 +153,7 @@ class was extends CI_Model {
|
|||
|
||||
function getSummaryByBand($band, $station_id)
|
||||
{
|
||||
$sql = "SELECT thcv.col_band, count(distinct thcv.col_state) as count FROM " . $this->config->item('table_name') . " thcv";
|
||||
$sql = "SELECT count(distinct thcv.col_state) as count FROM " . $this->config->item('table_name') . " thcv";
|
||||
|
||||
$sql .= " where station_id = " . $station_id;
|
||||
|
||||
|
|
@ -173,7 +173,7 @@ class was extends CI_Model {
|
|||
|
||||
function getSummaryByBandConfirmed($band, $station_id)
|
||||
{
|
||||
$sql = "SELECT thcv.col_band, count(distinct thcv.col_state) as count FROM " . $this->config->item('table_name') . " thcv";
|
||||
$sql = "SELECT count(distinct thcv.col_state) as count FROM " . $this->config->item('table_name') . " thcv";
|
||||
|
||||
$sql .= " where station_id = " . $station_id;
|
||||
|
||||
|
|
|
|||
正在加载…
在新工单中引用