diff --git a/admin/controllers/receiver/Clues.php b/admin/controllers/receiver/Clues.php index deac21f9..a1c0b0df 100644 --- a/admin/controllers/receiver/Clues.php +++ b/admin/controllers/receiver/Clues.php @@ -75,6 +75,7 @@ class Clues extends HD_Controller $county_id && $where['county_id'] = $county_id; if($this->role==37){ //特殊处理,丰田店只能看到丰田保养数据 $params['cfrom_id2'] = 37; + $where['admin_id'] = $this->uid; } if ($params['cfrom_id'] || $params['cfrom_id2']) { if ($params['cfrom_id2']) { @@ -124,7 +125,7 @@ class Clues extends HD_Controller $val['status2'] && $status_name .= '‒' . $statusAry[$val['status']]['list'][$val['status2']]; $val['status_name'] = $status_name; $val['admin_name'] = $map_admin[$val['admin_id']] ? $map_admin[$val['admin_id']] : ''; - if (SUPER_ADMIN == $this->role) { + if (SUPER_ADMIN == $this->role || $this->role == 37) { $val['mobile_sub'] = $val['mobile']; } else { $val['mobile_sub'] = $val['mobile'] ? substr_replace($val['mobile'], '*****', 0, 5) : ''; @@ -136,6 +137,10 @@ class Clues extends HD_Controller foreach ($this->clues_model->statusAry() as $key => $value) { $cate = array(); $where = array("status" => $key); + if($this->role == 37){ + $where['cf_id'] = 37; + $where['admin_id'] = $this->uid; + } $this->role == 37 && $where['cf_id'] = 37; $count1 = $this->clues_model->count($where); if ($value['list']) {