仓库商品读取错误修复

feat/task1-c-wallet
gongfuxiang 2022-04-22 11:31:12 +08:00
parent 7cd4a9ec15
commit 76c70285eb
2 changed files with 3 additions and 3 deletions

View File

@ -80,8 +80,8 @@ class WarehouseGoods extends Common
$data_params = [
'field' => 'id,name',
'where' => [
'is_enable' => 1,
'is_delete_time' => 0,
['is_enable', '=', 1],
['is_delete_time', '=', 0],
],
];
$warehouse = WarehouseService::WarehouseList($data_params);

View File

@ -68,7 +68,7 @@ class WarehouseGoodsService
{
$goods_params = [
'where' => [
['id', '=', array_unique(array_column($data, 'goods_id'))],
['id', 'in', array_unique(array_column($data, 'goods_id'))],
['is_delete_time', '=', 0],
],
'field' => 'id,title,images,price,min_price',