diff --git a/app/api/controller/CompanyController.php b/app/api/controller/CompanyController.php index 566d3317f..1e4167ac2 100644 --- a/app/api/controller/CompanyController.php +++ b/app/api/controller/CompanyController.php @@ -366,7 +366,7 @@ class CompanyController extends BaseApiController } } if(!empty($area)) { - $company=Db::query("select * from la_company where company_type=:company_type and FIND_IN_SET(:street,responsible_area)", ['company_type' => 15,'area'=>$area], true); + $company=Db::query("select * from la_company where company_type=:company_type and FIND_IN_SET(:area,responsible_area)", ['company_type' => 15,'area'=>$area], true); if($company){ return $this->success('ok',['title'=>$company[0]['company_name'],'organization_code'=>$company[0]['organization_code']]); }else{