where($condition)->order($order)->paginate(['list_rows'=>$pagesize,'query' => request()->param()],false); $this->page_info = $result; return $result->items(); } else { return Db::name('adminlog')->where($condition)->order($order)->select()->toArray(); } } /** * 删除日志记录 * @author o1h.cn * @param type $condition 删除条件 * @return type */ public function delAdminlog($condition) { return Db::name('adminlog')->where($condition)->delete(); } /** * 获取日志条数 * @author o1h.cn * @param type $condition 查询条件 * @return type */ public function getAdminlogCount($condition) { return Db::name('adminlog')->where($condition)->count(); } /** * 增加日子 * @author o1h.cn * @param type $data * @return type */ public function addAdminlog($data) { return Db::name('adminlog')->insertGetId($data); } }