|
@@ -33,12 +33,14 @@ class IndexController extends MobileBaseController
|
|
|
//招聘列表
|
|
|
$size = 10;
|
|
|
$list = Jobs::whereIn('id', function ($query) {
|
|
|
- $query->select('id')->where([
|
|
|
- ['is_ic', '=', 1],
|
|
|
- ['valid', '=', 1],
|
|
|
- ['audit', '=', 1],
|
|
|
- ['display', '=', 1],
|
|
|
- ])->orderBy('updated_at', 'desc');
|
|
|
+ $query->select('id')
|
|
|
+ ->from('jobs')
|
|
|
+ ->where([
|
|
|
+ ['is_ic', '=', 1],
|
|
|
+ ['valid', '=', 1],
|
|
|
+ ['audit', '=', 1],
|
|
|
+ ['display', '=', 1],
|
|
|
+ ])->orderBy('updated_at', 'desc');
|
|
|
})->groupBy('company_id')->limit(5)->get();
|
|
|
if ($list->isEmpty()) {
|
|
|
$recruit_list = [];
|