From 32dfa15790d558d5a4a70fd3fb5fbae6a37ad15c Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 13 Apr 2018 13:29:30 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E4=BF=A1=E6=81=AF=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/goods/service/ProductService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/goods/service/ProductService.php b/application/goods/service/ProductService.php index f9b1928f7..2eec57c0a 100644 --- a/application/goods/service/ProductService.php +++ b/application/goods/service/ProductService.php @@ -44,7 +44,7 @@ class ProductService return ['list' => $goodsList, 'cate' => $cateList, 'brand' => $brandList]; } // 读取产品详情列表 - $specWhere = ['status' => '1', 'is_deleted' => '0', ['goods_id', 'in', array_column($goodsList, 'id')]]; + $specWhere = [['status', 'eq', '1'], ['is_deleted', 'eq', '0'], ['goods_id', 'in', array_column($goodsList, 'id')]]; $specField = 'id,goods_id,goods_spec,goods_number,market_price,selling_price,goods_stock,goods_sale'; $specList = Db::name('GoodsList')->where($specWhere)->column($specField); foreach ($specList as $key => $spec) {