Browse Source

202508122 考试历史记录排序,降序

贾小兵 2 weeks ago
parent
commit
be8454de02
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/admin/controller/teacher/Exams.php

+ 1 - 1
application/admin/controller/teacher/Exams.php

@@ -356,7 +356,7 @@ class Exams extends Backend
         if(!$row){
             $this->error(__('No Results were found'));
         }
-        $list = $this->model->where(['seat_id'=>$row->seat_id,'exam_collection_id'=>$row->exam_collection_id])->order('starttime asc')->select();
+        $list = $this->model->where(['seat_id'=>$row->seat_id,'exam_collection_id'=>$row->exam_collection_id])->order('starttime desc')->select();
         $this->view->assign('list', $list);
         return $this->view->fetch();
     }