This commit is contained in:
mkm 2024-01-09 15:42:21 +08:00
parent 66f1bcd35c
commit 2aab1dfbed

View File

@ -41,10 +41,16 @@ class Task extends CommonModel
$task['exchange_info']=null;
$task['copied_info']=null;
foreach($exchange_list as $k=>$v){
$task['exchange_info'][]=Member::where(['code'=>$v])->field('name,code,avatar')->find();
$find=Member::where(['code'=>$v])->field('name,code,avatar')->find();
if($find){
$task['exchange_info'][]=$find;
}
}
foreach($copied_list as $k=>$v){
$task['copied_info'][]=Member::where(['code'=>$v])->field('name,code,avatar')->find();
$find=Member::where(['code'=>$v])->field('name,code,avatar')->find();
if($find){
$task['copied_info'][]=$find;
}
}
if($task['department_liaison']){
$task['liasion_info']=MemberAccount::where(['code'=>$task['department_liaison']])->field('name,member_code as code,avatar')->find();