diff --git a/admin/controllers/receiver/Clues.php b/admin/controllers/receiver/Clues.php index b8d6e146..deac21f9 100644 --- a/admin/controllers/receiver/Clues.php +++ b/admin/controllers/receiver/Clues.php @@ -73,6 +73,9 @@ class Clues extends HD_Controller strlen($params['status2']) && $where["status2"] = $params['status2']; $city_id && $where['city_id'] = $city_id; $county_id && $where['county_id'] = $county_id; + if($this->role==37){ //特殊处理,丰田店只能看到丰田保养数据 + $params['cfrom_id2'] = 37; + } if ($params['cfrom_id'] || $params['cfrom_id2']) { if ($params['cfrom_id2']) { $where['cf_id'] = $params['cfrom_id2']; @@ -133,6 +136,7 @@ class Clues extends HD_Controller foreach ($this->clues_model->statusAry() as $key => $value) { $cate = array(); $where = array("status" => $key); + $this->role == 37 && $where['cf_id'] = 37; $count1 = $this->clues_model->count($where); if ($value['list']) { foreach ($value['list'] as $key2 => $value2) { @@ -834,6 +838,9 @@ class Clues extends HD_Controller 'pid' => 0 ]; $id && $where['pid'] = $id; + if($this->role==37){ + !$id && $where['id'] = 36; + } $rows = $this->clues_cfrom_model->select($where, 'id desc', '', '', 'id,title'); $this->data['data'] = $rows; return $this->show_json(SYS_CODE_SUCCESS);