增加排序
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -90,7 +90,7 @@ class PropertyTrackService extends Service | ... | @@ -90,7 +90,7 @@ class PropertyTrackService extends Service |
90 | public function file() | 90 | public function file() |
91 | { | 91 | { |
92 | $trackFiles = PropertyTrackFile::query()->with('ptfTypes.type:id,type_name,remark')->where(['pt_id'=>$this->request->input('track_id')]) | 92 | $trackFiles = PropertyTrackFile::query()->with('ptfTypes.type:id,type_name,remark')->where(['pt_id'=>$this->request->input('track_id')]) |
93 | ->paginate($this->pageSize); | 93 | ->orderByDesc('id')->paginate($this->pageSize); |
94 | 94 | ||
95 | return Response::success($trackFiles); | 95 | return Response::success($trackFiles); |
96 | } | 96 | } | ... | ... |
-
Please register or sign in to post a comment