Ver código fonte

课程表排序

lizhen_gitee 6 meses atrás
pai
commit
b8f87c0916
1 arquivos alterados com 1 adições e 1 exclusões
  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) {