|
...
|
...
|
@@ -98,14 +98,17 @@ class Review extends DoubleBase |
|
|
|
return $this->selectpage();
|
|
|
|
}
|
|
|
|
list($where, $sort, $order, $offset, $limit) = $this->buildparams('review_name');
|
|
|
|
$map = [];
|
|
|
|
if($this->auth->rule_type == 1) {
|
|
|
|
$map['manystore_id'] = $this->auth->id;
|
|
|
|
$list = $this->model
|
|
|
|
->where($where)
|
|
|
|
->where($map)
|
|
|
|
}
|
|
|
|
$count = $this->model->where($where)->where($map)->count();
|
|
|
|
$list = $this->model->where($where)->where($map)
|
|
|
|
->order($sort, $order)
|
|
|
|
->paginate($limit);
|
|
|
|
|
|
|
|
$result = array("total" => $list->total(), "rows" => $list->items());
|
|
|
|
->limit($offset, $limit)
|
|
|
|
->fetchSql(true)
|
|
|
|
->select();
|
|
|
|
$result = array("total" => $count, "rows" => $list);
|
|
|
|
return json($result);
|
|
|
|
}
|
|
|
|
return $this->view->fetch();
|
...
|
...
|
|