Commit e8b2e1cc authored by hujun's avatar hujun

msg

parent ce5f6cdc
...@@ -48,10 +48,9 @@ class OfficeBroker extends Basic ...@@ -48,10 +48,9 @@ class OfficeBroker extends Basic
$fields = 'a.id,name,phone,COUNT(b.id) evaluate,sum(evaluate_grade) as evaluate_grade,a.img'; $fields = 'a.id,name,phone,COUNT(b.id) evaluate,sum(evaluate_grade) as evaluate_grade,a.img';
$agent_client = 0; $agent_client = 0;
if (!empty($this->userId) && ($this->params['source'] != 'B-APP')) { if (!empty($this->userId) && ($this->params['source'] != 'B-APP')) {
$agent_client = $agents->getAgentClient($fields, [ 'c.id' => $this->userId, 'a.status'=>0 ]); $agent_client = $agents->getAgentClient($fields, [ 'c.id' => $this->userId, 'a.status'=>0 ]);
} $where['c.type'] = 2;
//去除分享的商铺 //去除分享的商铺
if (empty($this->params['share'])) { if (empty($this->params['share'])) {
...@@ -66,11 +65,13 @@ class OfficeBroker extends Basic ...@@ -66,11 +65,13 @@ class OfficeBroker extends Basic
if (!empty($reception_id['reception_id'])) { if (!empty($reception_id['reception_id'])) {
$report_agent = $agents->getUserOffice(1, 1, '', $fields, [ 'a.id' => $reception_id['reception_id'], 'a.status'=>0,'c.is_del'=>0 ]); $report_agent = $agents->getUserOffice(1, 1, '', $fields, [ 'a.id' => $reception_id['reception_id'], 'a.status'=>0,'c.is_del'=>0 ]);
} }
} else {
$where['c.type'] = 1;
}
$where['c.house_id'] = $params['house_id']; $where['c.house_id'] = $params['house_id'];
$where['c.is_del'] = 0; $where['c.is_del'] = 0;
$where['a.status'] = 0; $where['a.status'] = 0;
$where['c.type'] = 2;
$list = $agents->getUserOffice($pageNo, $pageSize, 'evaluate desc', $fields, $where); $list = $agents->getUserOffice($pageNo, $pageSize, 'evaluate desc', $fields, $where);
$agent_id = []; $agent_id = [];
......
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