查区县公司
This commit is contained in:
parent
756fd5264d
commit
d632a0e023
@ -366,9 +366,9 @@ class CompanyController extends BaseApiController
|
||||
}
|
||||
}
|
||||
if(!empty($area)) {
|
||||
$company=Db::query("select * from la_company where company_type=:company_type and area=:area)", ['company_type' => 15,'area'=>$area], true);
|
||||
$company= Company::where(['company_type'=>15, 'area'=>$area])->find()->toArray();
|
||||
if($company){
|
||||
return $this->success('ok',['title'=>$company[0]['company_name'],'organization_code'=>$company[0]['organization_code']]);
|
||||
return $this->success('ok',['title'=>$company['company_name'],'organization_code'=>$company['organization_code']]);
|
||||
}else{
|
||||
return $this->fail('当前区域无供投公司');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user