...
|
...
|
@@ -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)
|
...
|
...
|
|