$table
$table : string
getOne( $where, array<mixed,string> $columns = array('*')) : \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Query\Builder|object|null
todo:根据条件查询数据
$where | ||
array<mixed,string> | $columns |
getLists(array $where = array(), array<mixed,string> $order = array('order' => 'id', 'direction' => 'desc'), array<mixed,string> $columns = array('*')) : \Illuminate\Support\Collection
todo:获取列表记录
array | $where | |
array<mixed,string> | $order | |
array<mixed,string> | $columns |
getResult( $table, $where, array<mixed,string> $columns = array('*')) : \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Query\Builder|object|null
todo:获取一条记录
$table | ||
$where | ||
array<mixed,string> | $columns |