Commit d6d3f266 authored by hujun's avatar hujun

1

parent 166f113c
...@@ -118,6 +118,8 @@ class HomePageLog extends Basic ...@@ -118,6 +118,8 @@ class HomePageLog extends Basic
$result = $this->uPhoneFollowUpModel->getFollowList($pageNo, $pageSize, 'id desc',$field, $where); $result = $this->uPhoneFollowUpModel->getFollowList($pageNo, $pageSize, 'id desc',$field, $where);
} }
$clientService = new ClientService(); $clientService = new ClientService();
$m_label = new ULabels();
$label_data = $m_label->getColumn('id,name', ['type'=>1]); //获取标签
foreach ($result as $key => $value) { foreach ($result as $key => $value) {
$agent_params = []; $agent_params = [];
$agent_params["a.id"] = $value['agent_id']; $agent_params["a.id"] = $value['agent_id'];
...@@ -135,6 +137,7 @@ class HomePageLog extends Basic ...@@ -135,6 +137,7 @@ class HomePageLog extends Basic
$is_show = $clientService->dialTotal($value["user_id"]); $is_show = $clientService->dialTotal($value["user_id"]);
$result[$key]['sign_call'] = $is_show ? 0 : 1; $result[$key]['sign_call'] = $is_show ? 0 : 1;
$result[$key]['label_name'] = array_key_exists($value['labels_id'], $label_data) ? $label_data[$value['labels_id']] : '';
} }
//$count = $this->uPhoneFollowUpModel->getSearchCount($where_); //$count = $this->uPhoneFollowUpModel->getSearchCount($where_);
......
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