修改字段查询
This commit is contained in:
parent
76c1a2fdff
commit
51330f86fd
@ -46,7 +46,7 @@ class StoreProductLists extends BaseAdminDataLists implements ListsSearchInterfa
|
||||
{
|
||||
return StoreBranchProduct::where($this->searchWhere)
|
||||
->where('store_id', $this->adminInfo['store_id'])
|
||||
->field(['id', 'image', 'store_name', 'cate_id', 'price', 'sales', 'stock', 'is_show', 'unit', 'cost','rose','purchase'])
|
||||
->field(['id', 'image', 'store_name', 'cate_id', 'price', 'sales', 'stock', 'is_show', 'unit', 'cost','rose','purchase', 'vip_price'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()->each(function ($item) {
|
||||
|
@ -43,8 +43,7 @@ class StoreProductAttrValueLists extends BaseAdminDataLists implements ListsSear
|
||||
public function lists(): array
|
||||
{
|
||||
return StoreBranchProductAttrValue::with('attr')->where($this->searchWhere)
|
||||
->field(['id', 'product_id', 'stock', 'unique', 'sales', 'bar_code',
|
||||
'price', 'vip_price', 'cost', 'purchase',
|
||||
->field(['id', 'product_id', 'stock', 'unique', 'sales', 'bar_code'
|
||||
])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user