@@ -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
@@ -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: 模型