|
|
|
@ -190,6 +190,7 @@ class UserController extends BaseController
|
|
|
|
* @OA\Parameter(name="is_company_market", in="query", @OA\Schema(type="string"), required=false, description="是否上市公司0否1是"),
|
|
|
|
* @OA\Parameter(name="is_company_market", in="query", @OA\Schema(type="string"), required=false, description="是否上市公司0否1是"),
|
|
|
|
* @OA\Parameter(name="company_tag", in="query", @OA\Schema(type="string"), required=false, description="企业标签"),
|
|
|
|
* @OA\Parameter(name="company_tag", in="query", @OA\Schema(type="string"), required=false, description="企业标签"),
|
|
|
|
* @OA\Parameter(name="talent_tags", in="query", @OA\Schema(type="string"), required=false, description="人才标签,多个英文逗号分隔"),
|
|
|
|
* @OA\Parameter(name="talent_tags", in="query", @OA\Schema(type="string"), required=false, description="人才标签,多个英文逗号分隔"),
|
|
|
|
|
|
|
|
* @OA\Parameter(name="address", in="query", @OA\Schema(type="string"), required=false, description="公司地址,模糊匹配关联 company 的 company_address 或 company_city"),
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
|
|
|
|
* @OA\Response(
|
|
|
|
* @OA\Response(
|
|
|
|
* response="200",
|
|
|
|
* response="200",
|
|
|
|
@ -369,6 +370,13 @@ class UserController extends BaseController
|
|
|
|
$company_area = explode(',', $all['company_area']);
|
|
|
|
$company_area = explode(',', $all['company_area']);
|
|
|
|
$query->whereIn('company_area', $company_area);
|
|
|
|
$query->whereIn('company_area', $company_area);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 公司地址:模糊匹配关联 company 的 company_address 或 company_city
|
|
|
|
|
|
|
|
if (isset($all['address']) && $all['address'] !== '') {
|
|
|
|
|
|
|
|
$query->whereHas('company', function ($c) use ($all) {
|
|
|
|
|
|
|
|
$c->where('company_address', 'like', '%' . $all['address'] . '%')
|
|
|
|
|
|
|
|
->orWhere('company_city', 'like', '%' . $all['address'] . '%');
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
if (isset($all['company_industry'])) {
|
|
|
|
if (isset($all['company_industry'])) {
|
|
|
|
$company_industry = explode(',', $all['company_industry']);
|
|
|
|
$company_industry = explode(',', $all['company_industry']);
|
|
|
|
$query->where(function ($q) use ($company_industry) {
|
|
|
|
$query->where(function ($q) use ($company_industry) {
|
|
|
|
|