This commit is contained in:
mkm 2023-08-08 17:09:45 +08:00
parent b6014d80f2
commit ef381a53c8
2 changed files with 13 additions and 0 deletions

View File

@ -46,6 +46,10 @@ class CompanyController extends BaseAdminController
return $this->dataLists(new CompanyLists());
}
public function list_two(){
return $this->success('ok', (new CompanyLists())->list_two());
}
/**
* @notes 添加

View File

@ -81,7 +81,16 @@ class CompanyLists extends BaseAdminDataLists implements ListsSearchInterface
->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 获取数量
* @return int