This commit is contained in:
mkm 2024-01-09 15:38:54 +08:00
parent bd79f78318
commit 66f1bcd35c

View File

@ -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) {