updated
This commit is contained in:
parent
d2ed16edfc
commit
33dd02966a
@ -69,13 +69,7 @@ class CostProjectLists extends BaseAdminDataLists implements ListsSearchInterfac
|
|||||||
->order(['id' => 'desc'])
|
->order(['id' => 'desc'])
|
||||||
->select()
|
->select()
|
||||||
->each(function($item){
|
->each(function($item){
|
||||||
$uid=(new CostProjectPerson)->where('cost_project_id',$item['id'])->column('uid');
|
$item['person_text'] = $item->person_text;
|
||||||
if($uid){
|
|
||||||
$admin=Admin::whereIn('id',$uid)->column('name');
|
|
||||||
if($admin){
|
|
||||||
$res['person']=implode(',',$admin);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
->toArray();
|
->toArray();
|
||||||
}
|
}
|
||||||
@ -85,13 +79,7 @@ class CostProjectLists extends BaseAdminDataLists implements ListsSearchInterfac
|
|||||||
->order(['id' => 'desc'])
|
->order(['id' => 'desc'])
|
||||||
->select()
|
->select()
|
||||||
->each(function($item){
|
->each(function($item){
|
||||||
$uid=(new CostProjectPerson)->where('cost_project_id',$item['id'])->column('uid');
|
$item['person_text'] = $item->person_text;
|
||||||
if($uid){
|
|
||||||
$admin=Admin::whereIn('id',$uid)->column('name');
|
|
||||||
if($admin){
|
|
||||||
$res['person']=implode(',',$admin);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
->toArray();
|
->toArray();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user