移除渠道管理
This commit is contained in:
@@ -238,6 +238,7 @@ class Backend extends Api
|
||||
$limit = is_numeric($limit) ? intval($limit) : 10;
|
||||
$search = $this->request->get('search', []);
|
||||
$search = is_array($search) ? $search : [];
|
||||
$search = $this->filterSearchArray($search);
|
||||
$initKey = $this->request->get('initKey', $pk);
|
||||
$initValue = $this->request->get('initValue', '');
|
||||
$initOperator = $this->request->get('initOperator', 'in');
|
||||
@@ -352,6 +353,14 @@ class Backend extends Api
|
||||
return [$where, $alias, $limit, $this->queryOrderBuilder()];
|
||||
}
|
||||
|
||||
/**
|
||||
* 组合搜索条件过滤(子类可覆盖,例如去掉已删除的数据库字段)
|
||||
*/
|
||||
protected function filterSearchArray(array $search): array
|
||||
{
|
||||
return $search;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询的排序参数构建器
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user