Commit abe60d3a authored by clone's avatar clone

bug

parent 5ce543cd
...@@ -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();
} }
......
...@@ -727,10 +727,12 @@ class OBargainModel extends Model ...@@ -727,10 +727,12 @@ class OBargainModel extends Model
$where_["create_time"] = $params["create_time"]; $where_["create_time"] = $params["create_time"];
} }
return Db::table($this->table) $data = Db::table($this->table)
->field($field) ->field($field)
->where($where_) ->where($where_)
->select(); ->select();
echo $this->getLastSql();
return $data;
} }
public function getAddBargainNum($params, $type) public function getAddBargainNum($params, $type)
......
...@@ -82,15 +82,15 @@ class ResultsSummaryNewTask ...@@ -82,15 +82,15 @@ class ResultsSummaryNewTask
* @param $district_id * @param $district_id
* @param $total_time 比如修改了数据如成交报告,成交报告提交时间是昨天那么这里的时间就是昨天 * @param $total_time 比如修改了数据如成交报告,成交报告提交时间是昨天那么这里的时间就是昨天
*/ */
public function updateTotalByAgentId($agent_id, $store_id, $district_id, $total_time) public function updateTotalByAgentId()
{ {
$params[0]["id"] = $agent_id; /* $params[0]["id"] = $agent_id;
$params[0]["store_id"] = $store_id; $params[0]["store_id"] = $store_id;
$params[0]["district_id"] = $district_id; $params[0]["district_id"] = $district_id;*/
/* $params[0]["id"] = 93; $params[0]["id"] = 5439;
$params[0]["store_id"] = 92; $params[0]["store_id"] = 92;
$params[0]["district_id"] = 2; $params[0]["district_id"] = 2;
$total_time = '2018-08-14';*/ $total_time = '2018-08-15';
$this->executeTotal($params, $total_time); $this->executeTotal($params, $total_time);
} }
......
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