소스 검색

课程表排序

lizhen_gitee 6 달 전
부모
커밋
b8f87c0916
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/admin/controller/Lessonslot.php

+ 1 - 1
application/admin/controller/Lessonslot.php

@@ -58,7 +58,7 @@ class Lessonslot extends Backend
                     ->with(['coach','lesson','danceroom'])
                     ->where($where)
 //                    ->order($sort, $order)
-                    ->order('lessonslot.starttime asc,lessonslot.id asc')
+                    ->order('lessonslot.starttime desc,lessonslot.id desc')
                     ->paginate($limit);
 
             foreach ($list as $row) {