|
@@ -31,15 +31,15 @@ class RecruitController extends MobileBaseController
|
|
public function list(Request $request)
|
|
public function list(Request $request)
|
|
{
|
|
{
|
|
//获取分类
|
|
//获取分类
|
|
- $filter_where = [
|
|
|
|
|
|
+ $filter_where = [
|
|
'AIX_education' => 100,
|
|
'AIX_education' => 100,
|
|
'AIX_experience' => 100,
|
|
'AIX_experience' => 100,
|
|
'AIX_wage' => 100,
|
|
'AIX_wage' => 100,
|
|
];
|
|
];
|
|
- $categories = $this->categoryService->getCategories($filter_where); //过滤条件信息
|
|
|
|
|
|
+ $categories = $this->categoryService->getCategories($filter_where); //过滤条件信息
|
|
|
|
|
|
//默认参数
|
|
//默认参数
|
|
- $param_array = ['keyword', 'wage', 'experience','education'];
|
|
|
|
|
|
+ $param_array = ['keyword', 'wage', 'experience', 'education'];
|
|
$params = [];
|
|
$params = [];
|
|
if ($request->all()) {
|
|
if ($request->all()) {
|
|
foreach ($request->all() as $k => $v) {
|
|
foreach ($request->all() as $k => $v) {
|
|
@@ -50,9 +50,12 @@ class RecruitController extends MobileBaseController
|
|
}
|
|
}
|
|
|
|
|
|
//查询条件
|
|
//查询条件
|
|
- $size = 10;
|
|
|
|
- $where = [
|
|
|
|
|
|
+ $size = 10;
|
|
|
|
+ $where = [
|
|
['is_ic', '=', 1],
|
|
['is_ic', '=', 1],
|
|
|
|
+ ['valid', '=', 1],
|
|
|
|
+ ['audit', '=', 1],
|
|
|
|
+ ['display', '=', 1],
|
|
];
|
|
];
|
|
if (!empty($params['keyword'])) {
|
|
if (!empty($params['keyword'])) {
|
|
$where[] = ['jobs_name', 'like', '%' . $params['keyword'] . '%'];
|
|
$where[] = ['jobs_name', 'like', '%' . $params['keyword'] . '%'];
|
|
@@ -109,19 +112,19 @@ class RecruitController extends MobileBaseController
|
|
|
|
|
|
public function show(Request $request)
|
|
public function show(Request $request)
|
|
{
|
|
{
|
|
- $job_id = $request->input('id');
|
|
|
|
- $job_rst = $this->jobsService->getJobInfo(array('id'=>$job_id)); //获取job信息
|
|
|
|
|
|
+ $job_id = $request->input('id');
|
|
|
|
+ $job_rst = $this->jobsService->getJobInfo(['id' => $job_id]); //获取job信息
|
|
if ($job_rst['status'] == 0) {
|
|
if ($job_rst['status'] == 0) {
|
|
$back_url = \Illuminate\Support\Facades\URL::previous();
|
|
$back_url = \Illuminate\Support\Facades\URL::previous();
|
|
return $this->showMessage($job_rst['error'], $back_url, true, '上一页', '3');
|
|
return $this->showMessage($job_rst['error'], $back_url, true, '上一页', '3');
|
|
}
|
|
}
|
|
$job_info = $job_rst['job'];
|
|
$job_info = $job_rst['job'];
|
|
|
|
|
|
- $return_data = array(
|
|
|
|
- 'info' => $job_info,
|
|
|
|
- );
|
|
|
|
|
|
+ $return_data = [
|
|
|
|
+ 'info' => $job_info,
|
|
|
|
+ ];
|
|
|
|
|
|
- return view('mobile.app.ic.recruit.show',$return_data);
|
|
|
|
|
|
+ return view('mobile.app.ic.recruit.show', $return_data);
|
|
}
|
|
}
|
|
|
|
|
|
public function apply()
|
|
public function apply()
|