update
This commit is contained in:
parent
4cdeab385d
commit
cab785f42b
@ -68,11 +68,12 @@ class CustomContactsLists extends BaseAdminDataLists implements ListsSearchInter
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()->each(function($item){
|
||||
$custom = Custom::field('org_id,dept_id')->where('id',$item['custom_id'])->findOrEmpty();
|
||||
$custom = Custom::field('org_id,dept_id,name')->where('id',$item['custom_id'])->findOrEmpty();
|
||||
$org = Orgs::field('name')->where('id',$custom['org_id'])->findOrEmpty();
|
||||
$dept = Dept::field('name')->where('id',$custom['dept_id'])->findOrEmpty();
|
||||
$item['org_name'] = $org['name'];
|
||||
$item['dept_name'] = $dept['name'];
|
||||
$item['custom_name'] = $custom['name'];
|
||||
unset($item['custom_id']);
|
||||
return $item;
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user