Browse Source

添加职位分类相关接口:获取职位分类列表;

FengR 1 month ago
parent
commit
c7fc6f5957
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/JsonRpc/NewsService.php

+ 4 - 1
app/JsonRpc/NewsService.php

@@ -2058,10 +2058,13 @@ class NewsService implements NewsServiceInterface
         $zwids = $zwids ?? null;
         $count =  JobPosition::when(!empty($zwids), function ($query) use ($zwids) {
             $query->whereIn('zwid', $zwids);
-        })->count();
+        })
+        ->where('zwpid', 0)
+        ->count();
         $position =  JobPosition::when(!empty($zwids), function ($query) use ($zwids) {
             $query->whereIn('zwid', $zwids);
         })
+        ->where('zwpid', 0)
         ->offset(($page - 1) * $page_size)
         ->limit($page_size)->get()
         ->map(function ($item) use ($data) {