|
@@ -358,13 +358,13 @@ class JobfairController extends WebBaseController
|
|
echo json_encode($res);
|
|
echo json_encode($res);
|
|
}
|
|
}
|
|
|
|
|
|
- /**2021新春线上招聘会
|
|
|
|
|
|
+ /**新春线上招聘会
|
|
* @param Request $request
|
|
* @param Request $request
|
|
* @param int $id
|
|
* @param int $id
|
|
* @return \Illuminate\Contracts\View\Factory|\Illuminate\Http\JsonResponse|\Illuminate\View\View
|
|
* @return \Illuminate\Contracts\View\Factory|\Illuminate\Http\JsonResponse|\Illuminate\View\View
|
|
* @throws \Throwable
|
|
* @throws \Throwable
|
|
*/
|
|
*/
|
|
- public function online2021(Request $request)
|
|
|
|
|
|
+ public function spring(Request $request)
|
|
{
|
|
{
|
|
$offset = isset($request->page) ? $request->page : 0;
|
|
$offset = isset($request->page) ? $request->page : 0;
|
|
$limit = 18;
|
|
$limit = 18;
|
|
@@ -401,11 +401,8 @@ class JobfairController extends WebBaseController
|
|
$district_arr = ["%.{$select_id}%", "%{$select_id}.%"];
|
|
$district_arr = ["%.{$select_id}%", "%{$select_id}.%"];
|
|
}
|
|
}
|
|
|
|
|
|
- $companys = DB::table('jobs')->join('companys', 'jobs.company_id', '=', 'companys.id')->whereRaw("jobs.created_at > '2022-01-01 00:00:00' and jobs.deleted_at is null")->groupBy('jobs.company_id')->select('jobs.company_id')->pluck('company_id')->toArray();
|
|
|
|
-
|
|
|
|
-// echo '<pre>';
|
|
|
|
-//
|
|
|
|
-// var_dump($companys);die;
|
|
|
|
|
|
+ $whereRaw = "jobs.updated_at > '2022-01-01 00:00:00' and jobs.deleted_at is null and jobs.valid = 1 and jobs.audit = 1 and jobs.display = 1";
|
|
|
|
+ $companys = DB::table('jobs')->join('companys', 'jobs.company_id', '=', 'companys.id')->whereRaw($whereRaw)->groupBy('jobs.company_id')->select('jobs.company_id')->pluck('company_id')->toArray();
|
|
|
|
|
|
$where = [];
|
|
$where = [];
|
|
$where[] = ['user_status', '=', 1];
|
|
$where[] = ['user_status', '=', 1];
|
|
@@ -414,30 +411,13 @@ class JobfairController extends WebBaseController
|
|
if (!empty($trade)) {
|
|
if (!empty($trade)) {
|
|
$where[] = ['trade', '=', $trade];
|
|
$where[] = ['trade', '=', $trade];
|
|
}
|
|
}
|
|
- //$where[] = array('id','in',$companys);
|
|
|
|
- $order_by = ['id', 'desc'];
|
|
|
|
-
|
|
|
|
- //$list = $this->searchService->search('Company', $where, $order_by, '');
|
|
|
|
|
|
|
|
$list = DB::table('companys')->where($where)->whereRaw($district_str, $district_arr)->whereIn('id', $companys)->orderBy('sort_index', 'desc')->orderBy('id', 'desc')->offset($limit * $offset)->limit($limit)->get();
|
|
$list = DB::table('companys')->where($where)->whereRaw($district_str, $district_arr)->whereIn('id', $companys)->orderBy('sort_index', 'desc')->orderBy('id', 'desc')->offset($limit * $offset)->limit($limit)->get();
|
|
$total = DB::table('companys')->where($where)->whereRaw($district_str, $district_arr)->whereIn('id', $companys)->count();
|
|
$total = DB::table('companys')->where($where)->whereRaw($district_str, $district_arr)->whereIn('id', $companys)->count();
|
|
$total_person = DB::table('resumes')->whereRaw('created_at > "2019-12-01 00:00:00"')->groupBy('uid')->get();
|
|
$total_person = DB::table('resumes')->whereRaw('created_at > "2019-12-01 00:00:00"')->groupBy('uid')->get();
|
|
|
|
|
|
- //$list = DB::table('companys')->where($where)->whereIn('id',$companys)->orderBy('id','desc')->offset($limit*$offset)->limit($limit)->get();
|
|
|
|
-
|
|
|
|
-// echo '<pre>';
|
|
|
|
-//
|
|
|
|
-// var_dump($list);die;
|
|
|
|
-
|
|
|
|
$more = count($list) >= $limit ? true : false;
|
|
$more = count($list) >= $limit ? true : false;
|
|
|
|
|
|
-// if ($list->total() >0) {
|
|
|
|
-// //处理企业信息
|
|
|
|
-// $list_items = $this->companyService->dealCompanyFields($list->items());
|
|
|
|
-// } else {
|
|
|
|
-// $list_items = array();
|
|
|
|
-// }
|
|
|
|
-
|
|
|
|
$res = [];
|
|
$res = [];
|
|
$total_job = 0;
|
|
$total_job = 0;
|
|
$total_job_num = 0;
|
|
$total_job_num = 0;
|
|
@@ -458,7 +438,6 @@ class JobfairController extends WebBaseController
|
|
['deleted_at', '=', null],
|
|
['deleted_at', '=', null],
|
|
];
|
|
];
|
|
|
|
|
|
- //$jobs = $this->jobsService->getOtherJobs($jobs_where);
|
|
|
|
$jobs = DB::table('jobs')->where($jobs_where)->get();
|
|
$jobs = DB::table('jobs')->where($jobs_where)->get();
|
|
if ($jobs) {
|
|
if ($jobs) {
|
|
foreach ($jobs as $value) {
|
|
foreach ($jobs as $value) {
|
|
@@ -495,7 +474,7 @@ class JobfairController extends WebBaseController
|
|
|
|
|
|
if ($request->ajax()) {
|
|
if ($request->ajax()) {
|
|
if (count($res)) {
|
|
if (count($res)) {
|
|
- return response()->json(['status' => 1, 'data' => view('app.active.ajax.ajax_online2021_special_com', [
|
|
|
|
|
|
+ return response()->json(['status' => 1, 'data' => view('app.active.ajax.ajax_spring_special_com', [
|
|
'res' => $res,
|
|
'res' => $res,
|
|
'city' => $citys,
|
|
'city' => $citys,
|
|
'params' => $params,
|
|
'params' => $params,
|
|
@@ -507,7 +486,7 @@ class JobfairController extends WebBaseController
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- return view('app.active.online2021', [
|
|
|
|
|
|
+ return view('app.active.spring', [
|
|
'res' => $res,
|
|
'res' => $res,
|
|
'city' => $citys,
|
|
'city' => $citys,
|
|
'params' => $params,
|
|
'params' => $params,
|
|
@@ -516,8 +495,6 @@ class JobfairController extends WebBaseController
|
|
'total' => $total,
|
|
'total' => $total,
|
|
'total_person' => count($total_person),
|
|
'total_person' => count($total_person),
|
|
'total_job' => $total_job
|
|
'total_job' => $total_job
|
|
- //'list_items' => $list_items,
|
|
|
|
- //'list' => $list,
|
|
|
|
]);
|
|
]);
|
|
|
|
|
|
}
|
|
}
|
|
@@ -527,10 +504,9 @@ class JobfairController extends WebBaseController
|
|
*/
|
|
*/
|
|
public function ai_recruit(Request $request)
|
|
public function ai_recruit(Request $request)
|
|
{
|
|
{
|
|
- $limit = 40;
|
|
|
|
-
|
|
|
|
$citycategory = 'jjkfq';
|
|
$citycategory = 'jjkfq';
|
|
- $companys = DB::table('jobs')->join('companys', 'jobs.company_id', '=', 'companys.id')->whereRaw("jobs.updated_at > '2022-01-01 00:00:00' and jobs.deleted_at is null")->groupBy('jobs.company_id')->select('jobs.company_id')->pluck('company_id')->toArray();
|
|
|
|
|
|
+ $whereRaw = "jobs.updated_at > '2022-01-01 00:00:00' and jobs.deleted_at is null and jobs.valid = 1 and jobs.audit = 1 and jobs.display = 1";
|
|
|
|
+ $companys = DB::table('jobs')->join('companys', 'jobs.company_id', '=', 'companys.id')->whereRaw($whereRaw)->groupBy('jobs.company_id')->select('jobs.company_id')->pluck('company_id')->toArray();
|
|
|
|
|
|
$citys = $this->categoryService->getCitys($citycategory);
|
|
$citys = $this->categoryService->getCitys($citycategory);
|
|
$select_id = $citys['select']['id'];
|
|
$select_id = $citys['select']['id'];
|
|
@@ -619,9 +595,9 @@ class JobfairController extends WebBaseController
|
|
return $res;
|
|
return $res;
|
|
}
|
|
}
|
|
|
|
|
|
- /**2021新春线上招聘会经济开发区
|
|
|
|
|
|
+ /**新春线上招聘会经济开发区
|
|
*/
|
|
*/
|
|
- public function online2021_jkq(Request $request)
|
|
|
|
|
|
+ public function spring_jkq(Request $request)
|
|
{
|
|
{
|
|
if (!$request->ajax()) {
|
|
if (!$request->ajax()) {
|
|
//奖品列表
|
|
//奖品列表
|
|
@@ -632,7 +608,8 @@ class JobfairController extends WebBaseController
|
|
$limit = 18;
|
|
$limit = 18;
|
|
|
|
|
|
$citycategory = 'jjkfq';
|
|
$citycategory = 'jjkfq';
|
|
- $companys = DB::table('jobs')->join('companys', 'jobs.company_id', '=', 'companys.id')->whereRaw("jobs.updated_at > '2022-01-01 00:00:00' and jobs.deleted_at is null")->groupBy('jobs.company_id')->select('jobs.company_id')->pluck('company_id')->toArray();
|
|
|
|
|
|
+ $whereRaw = "jobs.updated_at > '2022-01-01 00:00:00' and jobs.deleted_at is null and jobs.valid = 1 and jobs.audit = 1 and jobs.display = 1";
|
|
|
|
+ $companys = DB::table('jobs')->join('companys', 'jobs.company_id', '=', 'companys.id')->whereRaw($whereRaw)->groupBy('jobs.company_id')->select('jobs.company_id')->pluck('company_id')->toArray();
|
|
|
|
|
|
$citys = $this->categoryService->getCitys($citycategory);
|
|
$citys = $this->categoryService->getCitys($citycategory);
|
|
$select_id = $citys['select']['id'];
|
|
$select_id = $citys['select']['id'];
|
|
@@ -694,7 +671,7 @@ class JobfairController extends WebBaseController
|
|
|
|
|
|
if ($request->ajax()) {
|
|
if ($request->ajax()) {
|
|
if (count($res)) {
|
|
if (count($res)) {
|
|
- return response()->json(['status' => 1, 'data' => view('app.active.ajax.ajax_online2021_special_com', [
|
|
|
|
|
|
+ return response()->json(['status' => 1, 'data' => view('app.active.ajax.ajax_spring_special_com', [
|
|
'res' => $res,
|
|
'res' => $res,
|
|
'city' => $citys,
|
|
'city' => $citys,
|
|
'more' => $more,
|
|
'more' => $more,
|
|
@@ -704,26 +681,26 @@ class JobfairController extends WebBaseController
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- return view('app.active.online2021_jkq', [
|
|
|
|
|
|
+ return view('app.active.spring_jkq', [
|
|
'params' => ['citycategory' => 'jjkfq'],
|
|
'params' => ['citycategory' => 'jjkfq'],
|
|
'prize' => $prize,
|
|
'prize' => $prize,
|
|
'res' => $res,
|
|
'res' => $res,
|
|
'more' => $more,
|
|
'more' => $more,
|
|
- 'live_list' => $this->homeService->getOnline2021Live(),
|
|
|
|
|
|
+ 'live_list' => $this->homeService->getSpringLive(),
|
|
]);
|
|
]);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- /**2021新春线上招聘会经济开发区
|
|
|
|
|
|
+ /**新春线上招聘会经济开发区
|
|
*/
|
|
*/
|
|
- public function online2021_main()
|
|
|
|
|
|
+ public function spring_main()
|
|
{
|
|
{
|
|
//奖品列表
|
|
//奖品列表
|
|
$prize = LotteryPrize::all();
|
|
$prize = LotteryPrize::all();
|
|
|
|
|
|
- return view('app.active.online2021_main', [
|
|
|
|
|
|
+ return view('app.active.spring_main', [
|
|
'prize' => $prize,
|
|
'prize' => $prize,
|
|
- 'live_list' => $this->homeService->getOnline2021Live(),
|
|
|
|
|
|
+ 'live_list' => $this->homeService->getSpringLive(),
|
|
]);
|
|
]);
|
|
|
|
|
|
}
|
|
}
|