From 66f1bcd35c7d2777053b69d0dfcfe594a67c7bc0 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 9 Jan 2024 15:38:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/Model/TaskStages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/common/Model/TaskStages.php b/application/common/Model/TaskStages.php index 3707de4..329c872 100755 --- a/application/common/Model/TaskStages.php +++ b/application/common/Model/TaskStages.php @@ -94,7 +94,7 @@ class TaskStages extends CommonModel !$joinTaskMember && $taskModel->leftJoin('task_member tm', 't.code = tm.task_code'); $taskModel = $taskModel->whereIn('tm.member_code', $joiner); } - $list = $taskModel->order('t.sort asc,t.id asc')->field('id', true)->select(); + $list = $taskModel->order('t.create_time desc')->field('id', true)->select(); if ($list) { $taskMemberList = []; foreach ($list as &$task) {