Ken 1 Minggu lalu
induk
melakukan
826416c49d
2 mengubah file dengan 7 tambahan dan 8 penghapusan
  1. 6 0
      app/Services/ActivityUserService.php
  2. 1 8
      app/Services/BaseService.php

+ 6 - 0
app/Services/ActivityUserService.php

@@ -36,6 +36,12 @@ class ActivityUserService extends BaseService
         return $where;
     }
 
+    public static function findOne(array $search)
+    {
+        return static::$MODEL::where(static::getWhere($search))->first();
+    }
+
+
     /**
      * Update or create
      * @param array $params

+ 1 - 8
app/Services/BaseService.php

@@ -20,14 +20,7 @@ abstract class BaseService
     public static string $MODEL = "";
 
 
-    /**
-     * @description: 查询单条数据
-     * @param array $search
-     */
-    public static function findOne(array $search)
-    {
-        return static::$MODEL::where(static::getWhere($search))->first();
-    }
+
 
     /**
      * @description: 模型