Merge pull request '更新区域字段' (#13) from mkm into master
Reviewed-on: http://git.excellentkk.cn/mkm/TaskSystem/pulls/13
This commit is contained in:
commit
9250aa2e1c
@ -42,7 +42,7 @@ class CompanyController extends BaseApiController
|
|||||||
$myCompany = Company::findOrEmpty($this->userInfo['company_id'])->toArray();
|
$myCompany = Company::findOrEmpty($this->userInfo['company_id'])->toArray();
|
||||||
$query = Company::where(['street' => $myCompany['street'], 'company_type' => [17, 18],'is_contract'=>0]);
|
$query = Company::where(['street' => $myCompany['street'], 'company_type' => [17, 18],'is_contract'=>0]);
|
||||||
$count = $query->count();
|
$count = $query->count();
|
||||||
$companies = $query->select()->toArray();
|
$companies = $query->field('*,street street_name,area area_name,city city_name,province province_name')->select()->toArray();
|
||||||
return $this->success('', ['count' => $count, 'data' => $companies]);
|
return $this->success('', ['count' => $count, 'data' => $companies]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user