检测是否可以接诊

This commit is contained in:
2023-02-27 18:02:41 +08:00
parent 9b137d16f5
commit 5825138b7f
12 changed files with 357 additions and 48 deletions
+10
View File
@@ -277,4 +277,14 @@ class UserDoctor extends Model
return $data;
}
/**
* 获取是否存在
* @param array $params
* @return bool
*/
public static function getExists(array $params): bool
{
return self::where($params)->exists();
}
}