Commit 97ef4742 authored by clone's avatar clone

bug

parent 0a5e6dc2
......@@ -352,10 +352,10 @@ class AAgents extends BaseModel
*/
public function getAgentsListByTask($pageNo = 1, $pageSize = 15, $field = "id")
{
//$params["district_id"] = array( 'not in', array( '13', '14', '15' ) );
$params["district_id"] = array( 'not in', array( '13', '14', '15' ) );
return Db::table($this->table)
->field($field)
//->where($params)
->where($params)
->limit($pageSize)
->page($pageNo)
->select();
......@@ -389,9 +389,9 @@ class AAgents extends BaseModel
*/
public function getAgentsCountByTask()
{
/* $params["district_id"] = array( 'not in', array( '13', '14', '15' ) );*/
$params["district_id"] = array( 'not in', array( '13', '14', '15' ) );
return Db::table($this->table)
//->where($params)
->where($params)
->count();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment