This commit is contained in:
mkm 2024-01-11 18:18:27 +08:00
parent 068c05bd2f
commit ddf0bf6871

View File

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