linwu 3 月之前
父節點
當前提交
8e4471aabc
共有 1 個文件被更改,包括 8 次插入6 次删除
  1. 8 6
      app/Http/Controllers/Mobile/Ic/IndexController.php

+ 8 - 6
app/Http/Controllers/Mobile/Ic/IndexController.php

@@ -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 = [];