From 6c4baf8e52524baaebd88215c127b6e2057e6cd9 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 8 Jan 2024 15:54:24 +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/Task.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/application/common/Model/Task.php b/application/common/Model/Task.php index d8f1b34..e73dd6e 100755 --- a/application/common/Model/Task.php +++ b/application/common/Model/Task.php @@ -46,6 +46,16 @@ class Task extends CommonModel foreach($copied_list as $k=>$v){ $task['copied_info'][]=Member::where(['code'=>$v])->field('name,code,avatar')->find(); } + if($task['department_liaison']){ + $task['liasion_info']=Member::where(['code'=>$task['department_liaison']])->field('name,code,avatar')->find(); + }else{ + $task['liasion_info']=[]; + } + if($task['department']){ + $task['department_info']=Department::where(['organization_code'=>$task['department']])->field('name')->find(); + }else{ + $task['department_info']=[]; + } if ($task['pcode']) { $task['parentTask'] = self::where(['code' => $task['pcode']])->field('id', true)->find(); $parents = [];