更新
This commit is contained in:
parent
b6014d80f2
commit
ef381a53c8
@ -46,6 +46,10 @@ class CompanyController extends BaseAdminController
|
|||||||
return $this->dataLists(new CompanyLists());
|
return $this->dataLists(new CompanyLists());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function list_two(){
|
||||||
|
return $this->success('ok', (new CompanyLists())->list_two());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @notes 添加
|
* @notes 添加
|
||||||
|
@ -81,7 +81,16 @@ class CompanyLists extends BaseAdminDataLists implements ListsSearchInterface
|
|||||||
->toArray();
|
->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function list_two(): array
|
||||||
|
{
|
||||||
|
|
||||||
|
return Company::where('company_type',30)
|
||||||
|
->field(['is_authentication','id', 'level_two', 'level_one', 'company_name', 'organization_code', 'city', 'area', 'street', 'company_type', 'master_name', 'master_position', 'master_phone', 'master_email', 'other_contacts', 'area_manager', 'is_contract', 'deposit', 'deposit_time', 'qualification', 'status'])
|
||||||
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
|
->order(['id' => 'desc'])
|
||||||
|
->select()
|
||||||
|
->toArray();
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* @notes 获取数量
|
* @notes 获取数量
|
||||||
* @return int
|
* @return int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user