Adjust SQL to exlude done requests
这个提交包含在:
父节点
c7e1f6a39f
当前提交
49af108202
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
|
|
@ -296,7 +296,7 @@ class Oqrs_model extends CI_Model {
|
|||
|
||||
public function oqrs_requests($location_list) {
|
||||
if ($location_list != "") {
|
||||
$sql = 'SELECT COUNT(*) AS number FROM oqrs JOIN station_profile ON oqrs.station_id = station_profile.station_id WHERE oqrs.station_id IN ('.$location_list.')';
|
||||
$sql = 'SELECT COUNT(*) AS number FROM oqrs JOIN station_profile ON oqrs.station_id = station_profile.station_id WHERE oqrs.station_id IN ('.$location_list.') AND status < 2';
|
||||
$query = $this->db->query($sql);
|
||||
$row = $query->row();
|
||||
return $row->number;
|
||||
|
|
|
|||
正在加载…
在新工单中引用