Commit c227c0c6 authored by hujun's avatar hujun

house_id

parent c2c28489
......@@ -95,6 +95,29 @@ class CellPhone extends Basic
$where['a.id'] = $this->params['id'];
}
if (!empty($this->params['shop_house_id'])) {
$m_house = new GLandlordPhone();
$landlord_phone = $m_house->getColumn('phone', ['house_id'=>$this->params['shop_house_id'], 'status'=>0]);
if ($landlord_phone) {
$where['a.peer_no'] = ['in', $landlord_phone];
$where['a.user_type'] = 1;
} else {
return $this->response(200, '');
}
}
if (!empty($this->params['office_house_id'])) {
$m_house = new OfficeGLandlordPhone();
$landlord_phone = $m_house->getColumn('phone', ['house_id'=>$this->params['shop_house_id'], 'status'=>0]);
if ($landlord_phone) {
$where['a.peer_no'] = ['in', $landlord_phone];
$where['a.user_type'] = 2;
} else {
return $this->response(200, '');
}
}
$list = $report->getCallList($pageNo, $pageSize, '', $field, $where);
$m_user = new Users();
// $m_phone_follow = new UPhoneFollowUp($this->siteId);
......
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