diff --git a/app/admin/controller/Queue.php b/app/admin/controller/Queue.php index 51e0b6574..51fedef4d 100644 --- a/app/admin/controller/Queue.php +++ b/app/admin/controller/Queue.php @@ -66,7 +66,7 @@ class Queue extends Controller $this->iswin = ProcessService::instance()->iswin(); // 任务列表查询分页处理 $query = $this->_query($this->table)->dateBetween('create_at')->timeBetween('enter_time,exec_time'); - $query->like('code,title,command')->equal('status')->order('id desc')->page(); + $query->like('code,title,command')->equal('status')->order('loops_time desc,id desc')->page(); } /**