|
@@ -67,7 +67,7 @@ class FudaController extends MobileBaseController
|
|
|
$job_hotwords = array_slice($hotWords->toArray(), 0, 10);
|
|
|
$company_hotwords = $this->hotWordService->getHotWords(['type' => 2], 'list_order desc,w_hot desc', '10');
|
|
|
|
|
|
- $param_array = ['citycategory', 'wage', 'jobtag', 'trade', 'scale', 'nature', 'education', 'experience', 'settr', 'jobcategory', 'key', 'sort', 'search_cont', 'license', 'deliver', 'search_type', 'lng', 'lat', 'range', 'wa', 'range-lng', 'range-lat'];
|
|
|
+ $param_array = ['citycategory', 'wage', 'jobtag', 'trade', 'scale', 'nature', 'education', 'experience', 'settr', 'jobcategory', 'key', 'sort', 'search_cont', 'license', 'deliver', 'search_type', 'lng', 'lat', 'range', 'wa', 'range-lng', 'range-lat', 'key_name', 'keyword'];
|
|
|
$params = [];
|
|
|
if ($request->all()) {
|
|
|
foreach ($request->all() as $k => $v) {
|
|
@@ -111,11 +111,11 @@ class FudaController extends MobileBaseController
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $citys = $this->categoryService->getCitys($citycategory); //获取地标地段
|
|
|
+ $citys = $this->categoryService->getCitys($citycategory); //获取地标地段
|
|
|
$district_info = $this->categoryService->getDefaultDistrictInfo(); //获取默认地区信息
|
|
|
- $where = $this->setWhere($params, $citys, $job_category); //组合where条件
|
|
|
- $size = 20;
|
|
|
- $list = $this->searchService->search('Job', $where, $order_by, $search_key, $size);
|
|
|
+ $where = $this->setWhere($params, $citys, $job_category); //组合where条件
|
|
|
+ $size = 20;
|
|
|
+ $list = $this->searchService->search('Job', $where, $order_by, $search_key, $size);
|
|
|
|
|
|
if ($list->total() > 0) {
|
|
|
$list_items = $this->jobsService->dealjobFilelds($list->items(), $map_data);
|
|
@@ -232,6 +232,10 @@ class FudaController extends MobileBaseController
|
|
|
$where[] = [$k, '=', $v];
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if (!empty($params['keyword'])) {
|
|
|
+ $where[] = ['jobs_name', 'like', "%{$params['keyword']}%"];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
return $where;
|