Răsfoiți Sursa

Merge branch 'master' of http://git.bjzxtw.org.cn:3000/zxt/news_producer

LiuJ 1 săptămână în urmă
părinte
comite
7f520d5f2e
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      app/JsonRpc/NewsService.php

+ 2 - 1
app/JsonRpc/NewsService.php

@@ -4770,7 +4770,8 @@ class NewsService implements NewsServiceInterface
         if ($count == 0) {
             return Result::error("暂无沟通记录", 0);
         }
-        $jobs = $job->offset(($data['page'] - 1) * $data['pageSize'])
+        $jobs = $job->orderBy('job_hunting.updated_at', 'desc')
+            ->offset(($data['page'] - 1) * $data['pageSize'])
             ->limit($data['pageSize'])
             ->get();
         if (empty($jobs)) {