|
@@ -30,7 +30,7 @@ class JobController extends ApiBaseController
|
|
|
$where[] = ['updated_at', '>', $update_at];
|
|
|
}
|
|
|
|
|
|
- $list = Jobs::select('id', 'jobs_name', 'company_name', 'nature', 'sex', 'age', 'amount', 'topclass', 'category', 'subclass', 'trade', 'scale', 'tag', 'education', 'experience', 'wage', 'wage_max', 'negotiable', 'wage_min', 'wage_str', 'jobs_content', 'department', 'created_at', 'updated_at')
|
|
|
+ $list = Jobs::select('id', 'company_id', 'jobs_name', 'company_name', 'nature', 'sex', 'age', 'amount', 'topclass', 'category', 'subclass', 'trade', 'scale', 'tag', 'education', 'experience', 'wage', 'wage_max', 'negotiable', 'wage_min', 'wage_str', 'jobs_content', 'department', 'created_at', 'updated_at')
|
|
|
->where($where)
|
|
|
->offset(($page - 1) * $limit)
|
|
|
->limit($limit)
|
|
@@ -79,8 +79,8 @@ class JobController extends ApiBaseController
|
|
|
$list[$k]['company_address'] = $company_list[$v['company_id']]['address'];
|
|
|
$list[$k]['company_map_x'] = $company_list[$v['company_id']]['map_x'];
|
|
|
$list[$k]['company_map_y'] = $company_list[$v['company_id']]['map_y'];
|
|
|
-
|
|
|
- $tags = [];
|
|
|
+
|
|
|
+ $tags = [];
|
|
|
foreach ($v['tag'] as $tag) {
|
|
|
if (!empty($category_list[$tag])) {
|
|
|
$tags[] = $category_list[$tag];
|