where($where); $deviceFind->asArray(); if ($offset) { $deviceFind->offset($offset); } if ($limit) { $deviceFind->limit($limit); } $all = $deviceFind->all(); return $all; } /** * @param $where * @return int|string */ static function getListCount($where) { $deviceFind = DeviceModel::find(); $deviceFind->where($where); $all = $deviceFind->count(); return $all; } /** * @param $id * @return null|static */ static function selectOne($id) { return DeviceModel::findOne($id); } }