增加排序
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -231,7 +231,7 @@ class PropertyTrackService extends Service | ... | @@ -231,7 +231,7 @@ class PropertyTrackService extends Service |
231 | public function shareFile() | 231 | public function shareFile() |
232 | { | 232 | { |
233 | $trackFiles = PropertyTrackFile::query()->with('ptfTypes.type:id,type_name,remark')->where(['pt_id'=>$this->request->get('track_id')]) | 233 | $trackFiles = PropertyTrackFile::query()->with('ptfTypes.type:id,type_name,remark')->where(['pt_id'=>$this->request->get('track_id')]) |
234 | ->paginate($this->pageSize); | 234 | ->orderByDesc('id')->paginate($this->pageSize); |
235 | 235 | ||
236 | return Response::success($trackFiles); | 236 | return Response::success($trackFiles); |
237 | } | 237 | } | ... | ... |
-
Please register or sign in to post a comment