Explorar el Código

Merge branch '20250306_jobrecuiting_fr'

15313670163 hace 1 semana
padre
commit
00a6dfd37b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/JsonRpc/NewsService.php

+ 2 - 1
app/JsonRpc/NewsService.php

@@ -4766,7 +4766,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)) {