linwu 3 tháng trước cách đây
mục cha
commit
8e4471aabc
1 tập tin đã thay đổi với 8 bổ sung6 xóa
  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 = [];