修改收银机分类逻辑相关
This commit is contained in:
parent
149d818157
commit
7981e126f3
@ -57,6 +57,11 @@ class StoreBranchProductLists extends BaseAdminDataLists implements ListsSearchI
|
||||
$where[]=['cate_id','in',array_merge($arr,$arr2)];
|
||||
}
|
||||
}
|
||||
if(empty($where) && $class_all){
|
||||
//2或者1
|
||||
$where[]=['cate_id','=',$class_all];
|
||||
}
|
||||
|
||||
return StoreBranchProduct::where($this->searchWhere)->where($where)
|
||||
->field(['id','store_id','product_id', 'image', 'store_name', 'cate_id', 'price', 'sales', 'stock', 'unit', 'cost','purchase', 'status'])
|
||||
->when(!empty($this->adminInfo['store_id']), function ($query) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user