Commit 4f9ada3f authored by zw's avatar zw

bug

parent 0cadd511
......@@ -98,7 +98,9 @@ class CellPhone extends Basic
$list = $report->getCallList($pageNo, $pageSize, 'id desc', $field, $where);
$m_user = new Users();
$m_phone_follow = new UPhoneFollowUp($this->siteId);
if($this->params['end_date'] >= date('Y-m-d',time())){
$m_phone_follow_temp = new UPhoneFollowUpTemporary($this->siteId);
}
$m_agent = new AAgents();
foreach ($list as $k => $v) {
if (empty($v['agents_id'])) {
......@@ -148,10 +150,14 @@ class CellPhone extends Basic
$where_follow['user_id'] = $v['users_id'];
$where_follow['type'] = 0;
$where_follow['agent_id'] = $v['agents_id'];
if($this->params['end_date'] >= date('Y-m-d',time())){
$result[$k]['content'] = $m_phone_follow_temp->getUserFollowKey('content', $where_follow, 'id DESC');
if (empty($result[$k]['content'])) {
$result[$k]['content'] = $m_phone_follow->getUserFollowKey('content', $where_follow, 'id DESC');
}
}else{
$result[$k]['content'] = $m_phone_follow->getUserFollowKey('content', $where_follow, 'id DESC');
}
} else {
$result[$k]['user_nick'] = "";
$result[$k]['content'] = "";
......
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