|
@@ -3490,13 +3490,16 @@ class NewsService implements NewsServiceInterface
|
|
}
|
|
}
|
|
public function getJobHuntingApply(array $data): array
|
|
public function getJobHuntingApply(array $data): array
|
|
{
|
|
{
|
|
|
|
+ var_dump($data, '-----------------test--------1-');
|
|
$where = [];
|
|
$where = [];
|
|
if (isset($data['username']) && !empty($data['username'])) {
|
|
if (isset($data['username']) && !empty($data['username'])) {
|
|
$where[] = ['user.user_name', 'like', '%' . $data['username'] . '%'];
|
|
$where[] = ['user.user_name', 'like', '%' . $data['username'] . '%'];
|
|
}
|
|
}
|
|
if (isset($data['salary']) && !empty($data['salary'])) {
|
|
if (isset($data['salary']) && !empty($data['salary'])) {
|
|
- $where = [
|
|
|
|
- 'job_hunting.salary' => $data['salary'],
|
|
|
|
|
|
+ $where[] = [
|
|
|
|
+ 'job_hunting.salary',
|
|
|
|
+ '=',
|
|
|
|
+ $data['salary'],
|
|
];
|
|
];
|
|
}
|
|
}
|
|
$type_id = isset($data['type_id']) ? $data['type_id'] : '';
|
|
$type_id = isset($data['type_id']) ? $data['type_id'] : '';
|
|
@@ -3505,6 +3508,8 @@ class NewsService implements NewsServiceInterface
|
|
if ($type_id != '10000') {
|
|
if ($type_id != '10000') {
|
|
$where[] = ['job_apply.user_id', '=', $user_id];
|
|
$where[] = ['job_apply.user_id', '=', $user_id];
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ var_dump($where, '-----------------test---------');
|
|
$result = jobApply::where($where)
|
|
$result = jobApply::where($where)
|
|
// ->when(!empty($data['status1']), function ($query) use ($data) {
|
|
// ->when(!empty($data['status1']), function ($query) use ($data) {
|
|
// return $query->whereIn('job_hunting.status', [1, 3]); //1待审核2已审核3已拒绝
|
|
// return $query->whereIn('job_hunting.status', [1, 3]); //1待审核2已审核3已拒绝
|