修改查询测试
This commit is contained in:
parent
adbfdbd618
commit
19d4d0478b
@ -107,10 +107,12 @@ class ProductLists extends BaseAdminDataLists implements ListsSearchInterface, L
|
||||
$this->searchWhere[] = ['stock', '>', 0];
|
||||
return StoreBranchProduct::where($this->searchWhere)
|
||||
->field(['id', 'product_id', 'cate_id', 'store_name', 'cost', 'store_id','vip_price','purchase', 'price', 'bar_code', 'image', 'sales', 'store_info', 'delete_time', 'unit', 'batch'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->with(['className', 'unitName'])
|
||||
->order($this->sortOrder)
|
||||
->select()?->toArray();
|
||||
// ->limit($this->limitOffset, $this->limitLength)
|
||||
->page($this->limitOffset +1,$this->limitLength)
|
||||
->select()->toArray();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user