This commit is contained in:
mkm 2024-01-08 15:54:24 +08:00
parent a062b2ed2c
commit 6c4baf8e52

View File

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