Merge pull request 'feat(admin): 仓库产品列表增加分类搜索功能' (#23) from dev into main
Reviewed-on: https://gitea.lihaink.cn/mkm/multi-store/pulls/23
This commit is contained in:
commit
6d67d00c63
@ -88,6 +88,16 @@ class WarehouseProductStoregeLists extends BaseAdminDataLists implements ListsSe
|
||||
return [];
|
||||
}
|
||||
}
|
||||
if($this->request->get('class_all')){
|
||||
$where[] = ['top_cate_id', 'in', $this->request->get('class_all')];
|
||||
}
|
||||
$ids = StoreProduct::where($where)->column('id');
|
||||
if ($ids) {
|
||||
$this->searchWhere[] = ['product_id', 'in', $ids];
|
||||
$this->ids = $ids;
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
return WarehouseProductStorege::where($this->searchWhere)
|
||||
->field(['id','is_verify','warehouse_id', 'product_id', 'nums', 'price', 'total_price', 'status'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
|
Loading…
x
Reference in New Issue
Block a user