From ad353e17a94dc9dfa54b416016ede5b70dfc4722 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 13 Jan 2024 10:11:13 +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 | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/application/common/Model/TaskStages.php b/application/common/Model/TaskStages.php index bb63d0c..fbb5eae 100755 --- a/application/common/Model/TaskStages.php +++ b/application/common/Model/TaskStages.php @@ -74,19 +74,20 @@ class TaskStages extends CommonModel $member=new MemberAccount(); $member_code=getCurrentMember()['code']; $find=$member->where('member_code',$member_code)->find(); - if($find &&$find['is_liaison_man']==0){ - $joinTaskMember = true; - $type=ProjectAuth::where('id',$find['authorize'])->value('type'); - if($type=='admin'){ - $taskModel = $taskModel->where('t.create_by',$member_code); - }else{ - if(isset($data['type']) &&$data['type']=='copied_list'){ - $taskModel = $taskModel->whereRaw('find_in_set(t.copied_list ,:id) ', ['id' => $member_code]); + if(isset($data['type']) &&$data['type']=='copied_list'){ + $taskModel = $taskModel->whereRaw('find_in_set(t.copied_list ,:id) ', ['id' => $member_code]); + }else{ + if($find &&$find['is_liaison_man']==0){ + $joinTaskMember = true; + $type=ProjectAuth::where('id',$find['authorize'])->value('type'); + 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); } } } + // if ($executor) { // }