|
@@ -3265,7 +3265,7 @@ class NewsService implements NewsServiceInterface
|
|
|
->leftJoin('user', 'job_hunting.user_id', '=', 'user.id')
|
|
|
//职位----是申请职位
|
|
|
->leftJoin('job_position', 'job_hunting.job_name_get', '=', 'job_position.zwid')
|
|
|
- ->select('job_apply.*', 'job_position.zwname as job_name', 'job_hunting.salary as salary', 'district.name as cityname', 'job_enum.ename as salary_name', 'user.nickname as nickname', 'user.user_name as username')
|
|
|
+ ->select('job_apply.*', 'job_position.zwname as job_name', 'job_hunting.salary as salary', 'district.name as cityname', 'job_enum.ename as salary_name', 'user.nickname as nickname', 'user.user_name as username', 'job_hunting.updated_at as updated_at')
|
|
|
->orderBy("job_hunting.updated_at", "desc")
|
|
|
->limit($data['page_size'])
|
|
|
->offset(($data['page'] - 1) * $data['page_size'])
|
|
@@ -4577,7 +4577,7 @@ class NewsService implements NewsServiceInterface
|
|
|
if ($user['type_id'] == 1) {
|
|
|
$where['user_id'] = $user['id'];
|
|
|
}
|
|
|
- $recruitingId = JobResume::when($user['type_id'] == 1, function ($query) use ($user) {
|
|
|
+ $recruitingId = JobApply::when($user['type_id'] == 1, function ($query) use ($user) {
|
|
|
$query->where('recruit_id', $user['id']);
|
|
|
})
|
|
|
->pluck('recruit_id');
|