作者 刘朕
1 个管道 的构建 通过 耗费 1 秒

合并分支 'Branch_liuzhen' 到 'master'

Branch liuzhen



查看合并请求 !231
... ... @@ -42,7 +42,7 @@ class StoreInform extends Backend
/**
* 查看
*/
public function index()
public function index($ids = null)
{
//当前是否为关联查询
$this->relationSearch = true;
... ... @@ -55,15 +55,20 @@ class StoreInform extends Backend
{
return $this->selectpage();
}
$where_s = [
'store_id' => $ids
];
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
$total = $this->model
->with(['store'])
->where($where_s)
->where($where)
->order($sort, $order)
->count();
$list = $this->model
->with(['store'])
->where($where_s)
->where($where)
->order($sort, $order)
->limit($offset, $limit)
... ...