LiuJ 1 개월 전
부모
커밋
65dfedf778
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 7 2
      app/JsonRpc/NewsService.php

+ 7 - 2
app/JsonRpc/NewsService.php

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