|
|
@@ -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) {
|