Commit 7a259ea6 authored by zhuwei's avatar zhuwei

有权限的人可以查看其它城市的跟进

parent b4331c5d
......@@ -187,10 +187,13 @@ class Remark extends Basic
$code = 200;
$msg = '';
$follow_up_service = new PhoneFollowUpService($this->siteId);
$where = $list = [];
$where['page_no'] = $this->params['pageNo'];
$where['page_size'] = $this->params['pageSize'];
//默认跟进城市
$site_id = $this->siteId;
if (!empty($this->params['user_id'])) {
$where['user_id'] = (int)$this->params['user_id'];
}
......@@ -207,6 +210,12 @@ class Remark extends Basic
$where['district_id'] = (int)$this->params['remark_district_id'];
}
//有权限的人可以查看其它城市的跟进
if (!empty($this->params['site_id'])) {
$site_id = $this->siteId;
}
$follow_up_service = new PhoneFollowUpService($site_id);
$result_data = $follow_up_service->getPhoneFollowList($this->params['start_date'], $this->params['end_date'], $where, $this->userId);
if ($result_data['code'] == 200) {
if (!empty($result_data['data'])) {
......
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