优化操作流程界面,修改任务列表搜索和排序等
This commit is contained in:
@@ -83,7 +83,7 @@ func TaskGetList(page, pageSize int, filters ...interface{}) ([]*Task, int64) {
|
||||
}
|
||||
}
|
||||
total, _ := query.Count()
|
||||
query.OrderBy("-id").Limit(pageSize, offset).All(&tasks)
|
||||
query.OrderBy("-status", "task_name", "-id").Limit(pageSize, offset).All(&tasks)
|
||||
|
||||
return tasks, total
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user