Commit 01118111 authored by zhuwei's avatar zhuwei

bug

parent 9504bedc
...@@ -77,7 +77,7 @@ class OperationData extends Basic ...@@ -77,7 +77,7 @@ class OperationData extends Basic
foreach (explode(',',$agentIds) as $k1 => $v1) { foreach (explode(',',$agentIds) as $k1 => $v1) {
// 发起微聊用户数 // 发起微聊用户数
$where['from_id'] = 'user_'.$v1; $where['to_id'] = 'agent_'.$v1;
$group = ''; $group = '';
$res = $chatRelationModel->getChatUserNumOperation($where, $group); $res = $chatRelationModel->getChatUserNumOperation($where, $group);
$chat_user_all_num += $res; $chat_user_all_num += $res;
...@@ -103,7 +103,7 @@ class OperationData extends Basic ...@@ -103,7 +103,7 @@ class OperationData extends Basic
public function userPhoneNum() public function userPhoneNum()
{ {
$params = $this->params; $params = $this->params;
$where['create_time'] = [ 'between', [ $params['create_time_start'] . ' 00:00:00', $params['create_time_end'] . ' 23:59:59' ] ]; $params_['a.create_time'] = [ 'between', [ $params['create_time_start'] . ' 00:00:00', $params['create_time_end'] . ' 23:59:59' ] ];
// 先查新所有部门 // 先查新所有部门
$district_list = $this->getDistrict(); $district_list = $this->getDistrict();
...@@ -112,13 +112,12 @@ class OperationData extends Basic ...@@ -112,13 +112,12 @@ class OperationData extends Basic
$result_["district_name"] = $v['district_name']; $result_["district_name"] = $v['district_name'];
// 客户来电数 // 客户来电数
$params = []; $params_["b.district_id"] = $v['id'];
$params["b.district_id"] = $v['id']; $params_["a.status"] = 0; //只查询正常状态的经纪人
$params["a.status"] = 0; //只查询正常状态的经纪人
$model = new AUserCallAgent(); $model = new AUserCallAgent();
$res = $model->getUserCallAgentCount($params); $res = $model->getUserCallAgentCount($params_);
$result_["user_phone_num"] = isset($res) ? $res : 0;; $result_["user_phone_num"] = isset($res) ? $res : 0;
$result[] = $result_; $result[] = $result_;
} }
return $this->response(200, 'success', $result); return $this->response(200, 'success', $result);
......
...@@ -16,11 +16,13 @@ class Performance extends Basic ...@@ -16,11 +16,13 @@ class Performance extends Basic
{ {
private $service_; private $service_;
private $pageSize;
function __construct(Request $request = null) function __construct(Request $request = null)
{ {
parent::__construct($request); parent::__construct($request);
$this->service_ = new PerformanceService(); $this->service_ = new PerformanceService();
$this->pageSize = 20;
} }
......
...@@ -139,7 +139,7 @@ class ChatRelation extends Model ...@@ -139,7 +139,7 @@ class ChatRelation extends Model
->count(); ->count();
} }
//dump($this->getLastSql($return)); // dump($this->getLastSql($return));
return $return; return $return;
} }
......
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