From 76c70285eb2ccd8702f591d4da35b1a40885c3d1 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Fri, 22 Apr 2022 11:31:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=BA=93=E5=95=86=E5=93=81=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=E9=94=99=E8=AF=AF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/Warehousegoods.php | 4 ++-- app/service/WarehouseGoodsService.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/admin/controller/Warehousegoods.php b/app/admin/controller/Warehousegoods.php index f62cd23a7..d8a922231 100644 --- a/app/admin/controller/Warehousegoods.php +++ b/app/admin/controller/Warehousegoods.php @@ -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); diff --git a/app/service/WarehouseGoodsService.php b/app/service/WarehouseGoodsService.php index bb4f0390c..6360c84d1 100644 --- a/app/service/WarehouseGoodsService.php +++ b/app/service/WarehouseGoodsService.php @@ -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',