浏览代码

增加筛选字段

durong 5 年之前
父节点
当前提交
ce1be64837

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

@@ -52,7 +52,8 @@ class CommentRecordController extends Controller
                 'id',
                 'uid',
                 'created_at',
-                'trigger_type'
+                'trigger_type',
+                'virus_behavior_id'
             ],
             'columns' => [
                 'id',

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

@@ -55,7 +55,8 @@ class GeneralRecordController extends Controller
                 'id',
                 'uid',
                 'created_at',
-                'trigger_type'
+                'trigger_type',
+                'virus_behavior_id'
             ],
             'columns' => [
                 'id',

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

@@ -55,7 +55,8 @@ class RegisteredRecordController extends Controller
                 'uid',
                 'created_at',
                 'absolute_progression',
-                'trigger_type'
+                'trigger_type',
+                'virus_behavior_id'
             ],
             'columns' => [
                 'id',
@@ -86,10 +87,4 @@ class RegisteredRecordController extends Controller
         ];
         return $data;
     }
-
-    //行为数据列表
-    public function behavior_data(Request $request)
-    {
-
-    }
 }

+ 0 - 4
app/Http/Controllers/Behavior/ReleaseRecordController.php

@@ -59,15 +59,11 @@ class ReleaseRecordController extends Controller
                 'created_at',
                 'virus_behavior_id',
                 'uid',
-                'upper_trigger_time',
                 'related_content_id',
-                'content_author_id',
-                'superior_commentator_id',
                 'physical_exertion',
                 'trigger_type',
                 'generation_type',
                 'absolute_progression',
-                'superior_uid',
                 'release_status',
                 'generation_quantity',
                 'quantity_issued',

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

@@ -29,6 +29,9 @@ class CommentRecordRepository
         if(isset($request['trigger_type'])){
             $where[] = ['trigger_type', $request['trigger_type']];
         }
+        if(isset($request['virus_behavior_id'])){
+            $where[] = ['virus_behavior_id', $request['virus_behavior_id']];
+        }
 
         return $this->commentRecord
             ->where($where)

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

@@ -29,6 +29,9 @@ class GenaralRecordRepository
         if(isset($request['trigger_type'])){
             $where[] = ['trigger_type', $request['trigger_type']];
         }
+        if(isset($request['virus_behavior_id'])){
+            $where[] = ['virus_behavior_id', $request['virus_behavior_id']];
+        }
 
         return $this->generalRecord
             ->where($where)

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

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

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

@@ -29,6 +29,9 @@ class ReleaseRecordRepository
         if(isset($request['trigger_type'])){
             $where[] = ['trigger_type', $request['trigger_type']];
         }
+        if(isset($request['virus_behavior_id'])){
+            $where[] = ['virus_behavior_id', $request['virus_behavior_id']];
+        }
 
         return $this->releaseRecord
             ->where($where)