32 lines
732 B
PHP
Executable File
32 lines
732 B
PHP
Executable File
<?php
|
|
|
|
namespace app\admin\model;
|
|
|
|
use think\Model;
|
|
use think\Request;
|
|
use think\Config;
|
|
|
|
class ActionLog extends Model {
|
|
|
|
use \app\common\traits\AdminModel;
|
|
|
|
public function getPageLists($where = null, $order = null, $field = null, $limit = null, $level = 0) {
|
|
$this->alias('al')->join('user u', 'al.user_id=u.id', 'LEFT');
|
|
if ($where) {
|
|
$this->where($where);
|
|
}
|
|
if ($order) {
|
|
$this->order($order);
|
|
}
|
|
if ($field) {
|
|
$this->field($field);
|
|
}
|
|
if (empty($limit)) {
|
|
$limit = Config::get('list_rows');
|
|
}
|
|
$object = $this->paginate($limit);
|
|
return $object;
|
|
}
|
|
|
|
}
|