Commit ee9c9972 ee9c9972ffb38d975500c53ae627ae6372f169ea by lemon

增加排序

1 parent 105eb1ca
...@@ -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 }
......