diff --git a/admin/controllers/biz/store/Store.php b/admin/controllers/biz/store/Store.php index a5bfaf9f..778f0ab5 100755 --- a/admin/controllers/biz/store/Store.php +++ b/admin/controllers/biz/store/Store.php @@ -118,7 +118,20 @@ class Store extends HD_Controller $data[] = array('name' => $value['brand_name'], 'id' => $value['id']); } } - $this->data['qdjl_lists'] = $this->mdLichebUsers->select(array('group_id' => 4, 'status' => 1, 'biz_id<>' => '0'), 'id desc', 0, 0, 'id,uname as name'); + $qdjl_lists = []; + $res_u = $this->mdLichebUsers->select(array('group_id' => 4, 'status' => 1, 'biz_id<>' => '0'), 'id desc', 0, 0, 'id,uname as name,city_id'); + if ($res_u) { + $this->load->model("sys/sys_city_model", 'mdSysCity'); + foreach ($res_u as $value) { + $city_name = $name = $value['name']; + if ($value['city_id']) { + $re_c = $this->mdSysCity->get(['city_id' => $value['city_id']]); + $re_c && $city_name .= "({$re_c['name']})"; + } + $qdjl_lists[] = array('id' => $value['id'], 'name' => $name, 'city_name' => $city_name); + } + } + $this->data['qdjl_lists'] = $qdjl_lists; $this->data['params'] = $params; $this->data['brand_list'] = $data; $this->data['companyAry'] = $map_company; @@ -869,8 +882,8 @@ class Store extends HD_Controller } else { $whre['status > -1'] = null; } - if($_SESSION['admin_info']['biz_id']){ - $biz_ids = implode(',',$_SESSION['admin_info']['biz_id']); + if ($_SESSION['admin_info']['biz_id']) { + $biz_ids = implode(',', $_SESSION['admin_info']['biz_id']); $where["id in ($biz_ids)"] = null; } $province_id && $where['province_id'] = $province_id; diff --git a/admin/views/biz/store/lists.php b/admin/views/biz/store/lists.php index 7b15190e..c0d2e0b7 100755 --- a/admin/views/biz/store/lists.php +++ b/admin/views/biz/store/lists.php @@ -188,7 +188,7 @@