|
@@ -1683,5 +1683,25 @@ class NewsService implements NewsServiceInterface
|
|
|
];
|
|
|
return Result::success($result);
|
|
|
}
|
|
|
+ /*
|
|
|
+ * 获取企业会员-招聘信息列表
|
|
|
+ * */
|
|
|
+ public function getRecruitingInfo(array $data): array
|
|
|
+ {
|
|
|
+ $user = User::where('id', $data['user_id'])->first();
|
|
|
+ if(empty($user) || ($user['type_id']!= 10000 && $user['type_id']!= 1)){
|
|
|
+ return Result::error("用户不存在", 0);
|
|
|
+ }
|
|
|
+ $recruiting = JobRecruiting::where('job_recruiting.id', $data['id'])
|
|
|
+ ->leftJoin('job_company', 'job_recruiting.id', '=', 'job_company.job_id')
|
|
|
+ ->select('job_recruiting.*', 'job_company.business_name','job_company.company_hy_id',
|
|
|
+ 'job_company.company_size','job_company.company_nature','job_company.introduction','job_company.real_name',
|
|
|
+ 'job_company.mobile','job_company.company_url','job_company.address_arr_id','job_company.address','job_company.email')
|
|
|
+ ->get();
|
|
|
+ if (empty($recruiting)) {
|
|
|
+ return Result::error("暂无招聘信息", 0);
|
|
|
+ }
|
|
|
+ return Result::success($recruiting);
|
|
|
+ }
|
|
|
// 20250306 招聘
|
|
|
}
|