Commit 97ef4742 authored by clone's avatar clone

bug

parent 0a5e6dc2
...@@ -352,10 +352,10 @@ class AAgents extends BaseModel ...@@ -352,10 +352,10 @@ class AAgents extends BaseModel
*/ */
public function getAgentsListByTask($pageNo = 1, $pageSize = 15, $field = "id") 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) return Db::table($this->table)
->field($field) ->field($field)
//->where($params) ->where($params)
->limit($pageSize) ->limit($pageSize)
->page($pageNo) ->page($pageNo)
->select(); ->select();
...@@ -389,9 +389,9 @@ class AAgents extends BaseModel ...@@ -389,9 +389,9 @@ class AAgents extends BaseModel
*/ */
public function getAgentsCountByTask() 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) return Db::table($this->table)
//->where($params) ->where($params)
->count(); ->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