|
@@ -1111,6 +1111,7 @@ class NewsService implements NewsServiceInterface
|
|
|
* */
|
|
* */
|
|
|
public function addJobRecruiting(array $data): array
|
|
public function addJobRecruiting(array $data): array
|
|
|
{
|
|
{
|
|
|
|
|
+
|
|
|
// return Result::success($data);
|
|
// return Result::success($data);
|
|
|
$user = User::where('user.id', $data['user_id'])
|
|
$user = User::where('user.id', $data['user_id'])
|
|
|
->where('user.status',1)
|
|
->where('user.status',1)
|
|
@@ -1175,6 +1176,7 @@ class NewsService implements NewsServiceInterface
|
|
|
$job['level'] = isset($data['level']) && $data['level'] !== '' ? $data['level'] : null;
|
|
$job['level'] = isset($data['level']) && $data['level'] !== '' ? $data['level'] : null;
|
|
|
$job['job_level'] = isset($data['job_level']) && $data['job_level'] !== '' ? $data['job_level'] : null;
|
|
$job['job_level'] = isset($data['job_level']) && $data['job_level'] !== '' ? $data['job_level'] : null;
|
|
|
$job['educational'] = isset($data['educational']) && $data['educational'] !== '' ? $data['educational'] : null;
|
|
$job['educational'] = isset($data['educational']) && $data['educational'] !== '' ? $data['educational'] : null;
|
|
|
|
|
+
|
|
|
// return Result::success($job);
|
|
// return Result::success($job);
|
|
|
$jobId = JobRecruiting::insertGetId($job);
|
|
$jobId = JobRecruiting::insertGetId($job);
|
|
|
if (empty($jobId)) {
|
|
if (empty($jobId)) {
|
|
@@ -1219,14 +1221,7 @@ class NewsService implements NewsServiceInterface
|
|
|
Db::rollBack();
|
|
Db::rollBack();
|
|
|
return Result::error($e->getMessage(), 0);
|
|
return Result::error($e->getMessage(), 0);
|
|
|
}
|
|
}
|
|
|
- // $result = [
|
|
|
|
|
- // 'job_id' => $jobId,
|
|
|
|
|
- // 'company_id' => $companyId,
|
|
|
|
|
- // ];
|
|
|
|
|
- // if (empty($result)) {
|
|
|
|
|
- // return Result::error("添加失败", 0);
|
|
|
|
|
- // }
|
|
|
|
|
- // return Result::success($result);
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
/*
|
|
/*
|
|
|
* 获取招聘信息详情
|
|
* 获取招聘信息详情
|
|
@@ -1280,6 +1275,7 @@ class NewsService implements NewsServiceInterface
|
|
|
* */
|
|
* */
|
|
|
public function upJobRecruiting(array $data): array
|
|
public function upJobRecruiting(array $data): array
|
|
|
{
|
|
{
|
|
|
|
|
+
|
|
|
$job = JobRecruiting::where('job_recruiting.id', $data['id'])->first();
|
|
$job = JobRecruiting::where('job_recruiting.id', $data['id'])->first();
|
|
|
// return Result::success($job);
|
|
// return Result::success($job);
|
|
|
if(empty($job)){
|
|
if(empty($job)){
|
|
@@ -1364,6 +1360,7 @@ class NewsService implements NewsServiceInterface
|
|
|
return Result::error($e->getMessage(), 0);
|
|
return Result::error($e->getMessage(), 0);
|
|
|
}
|
|
}
|
|
|
return Result::success($result);
|
|
return Result::success($result);
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
/*
|
|
/*
|
|
|
* 招聘信息删除
|
|
* 招聘信息删除
|