Przeglądaj źródła

添加上级用户ID搜索

durong 5 lat temu
rodzic
commit
67b1d5a759

+ 2 - 1
app/Http/Controllers/Behavior/RegisteredRecordController.php

@@ -58,7 +58,8 @@ class RegisteredRecordController extends Controller
                 'created_at',
                 'absolute_progression',
                 'trigger_type',
-                'virus_behavior_id'
+                'virus_behavior_id',
+                'superior_uid'
             ],
             'columns' => [
                 'id',

+ 3 - 0
app/Repositories/Behavior/RegisteredRecordRepository.php

@@ -35,6 +35,9 @@ class RegisteredRecordRepository
         if(isset($request['virus_behavior_id'])){
             $where[] = ['virus_behavior_id', $request['virus_behavior_id']];
         }
+        if(isset($request['superior_uid'])){
+            $where[] = ['superior_uid', $request['superior_uid']];
+        }
 
         return $this->registeredRecord
             ->where($where)