fix(warehouse): 修正库存数量判断逻辑
- 将判断库存数量小于等于 0 的条件修改为小于 0 - 确保只有库存数量为负数的产品被查询出来
This commit is contained in:
parent
b28e68966f
commit
d590c2947e
@ -70,7 +70,7 @@ class WarehouseProductStoregeTwoLists extends BaseAdminDataLists implements List
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->searchWhere[] = ['nums', '<=', 0];
|
$this->searchWhere[] = ['nums', '<', 0];
|
||||||
return WarehouseProductStorege::where($this->searchWhere)
|
return WarehouseProductStorege::where($this->searchWhere)
|
||||||
->field(['id', 'warehouse_id', 'product_id', 'nums', 'price', 'total_price', 'status'])
|
->field(['id', 'warehouse_id', 'product_id', 'nums', 'price', 'total_price', 'status'])
|
||||||
->limit($this->limitOffset, $this->limitLength)
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user