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 = [];