From ddf0bf68717aaa0bf403ce9f4029a40f247e0652 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 11 Jan 2024 18:18:27 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/common/Model/TaskStages.php b/application/common/Model/TaskStages.php index 9b1c3a4..073898a 100755 --- a/application/common/Model/TaskStages.php +++ b/application/common/Model/TaskStages.php @@ -80,7 +80,8 @@ class TaskStages extends CommonModel if($type=='admin'){ $taskModel = $taskModel->where('t.create_by',$member_code); }else{ - $taskModel = $taskModel->leftJoin('task_member tm', 't.code = tm.task_code')->where('tm.member_code', $member_code)->where('tm.is_executor', 1); + $taskModel = $taskModel->leftJoin('task_member tm', 't.code = tm.task_code')->where('tm.member_code', $member_code)->where('tm.is_executor', 1) + ->whereOr('t.create_by', $member_code); } } // if ($executor) {