查区县公司

This commit is contained in:
chenbo 2024-02-23 18:07:12 +08:00
parent 364c45099a
commit 8eed8ad43e

View File

@ -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{