소스 검색

b端获取我的沟通列表-简历的更新时间排序

15313670163 1 주 전
부모
커밋
cb5689f29b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/JsonRpc/NewsService.php

+ 2 - 1
app/JsonRpc/NewsService.php

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