This commit is contained in:
mkm 2024-01-17 16:39:41 +08:00
parent cdf1c8de1f
commit 96e8b32063

View File

@ -89,12 +89,12 @@ class TaskStages extends CommonModel
} else { } else {
if ($find && $find['is_liaison_man'] == 0) { if ($find && $find['is_liaison_man'] == 0) {
$joinTaskMember = true; $joinTaskMember = true;
$type = ProjectAuth::where('id', $find['authorize'])->value('type'); // $type = ProjectAuth::where('id', $find['authorize'])->value('type');
if ($type == 'admin') { // if ($type == 'admin') {
$taskModel = $taskModel->where('t.create_by', $member_code); // $taskModel = $taskModel->where('t.create_by', $member_code);
} else { // } 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);
} // }
} }
} }