Merge pull request '更新 app/api/controller/CompanyController.php' (#37) from preview into master
Reviewed-on: #37
This commit is contained in:
commit
c3cea3b8ec
@ -352,7 +352,7 @@ class CompanyController extends BaseApiController
|
|||||||
*/
|
*/
|
||||||
public function street_company(){
|
public function street_company(){
|
||||||
$street=$this->request->param('street_code');
|
$street=$this->request->param('street_code');
|
||||||
$company=Db::query("select * from la_company where company_type=:company_type and FIND_IN_SET(:street,responsible_area)", ['company_type' => 41,'street'=>$street], true);
|
$company=Db::query("select * from la_company where company_type=:company_type and FIND_IN_SET(:street,responsible_area)", ['company_type' => 16,'street'=>$street], true);
|
||||||
if($company){
|
if($company){
|
||||||
return $this->success('ok',['title'=>$company[0]['company_name'],'organization_code'=>$company[0]['organization_code']]);
|
return $this->success('ok',['title'=>$company[0]['company_name'],'organization_code'=>$company[0]['organization_code']]);
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user