From 9077f216369efc62233dc109ddcdbb5d3d534009 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Thu, 24 Oct 2024 11:36:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E8=A1=97=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=95=86=E5=93=81=E7=8A=B6=E6=80=81=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/model/LocalStore.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/common/model/LocalStore.php b/app/common/model/LocalStore.php index 970acfc5..31c3d93f 100755 --- a/app/common/model/LocalStore.php +++ b/app/common/model/LocalStore.php @@ -20,6 +20,7 @@ class LocalStore extends Model { return $this->hasMany(LocalStoreGoods::class, 'lstore_id', 'lstore_id') ->alias('lsg') + ->where(['lsg.state' => 1, 'lsg.audit_status' => 1, 'lsg.delete_time' => 0]) ->join('local_store_goods_pic p', 'lsg.id = p.lsg_id') ->field('lsg.id, lsg.lstore_id, lsg.title, lsg.price, p.url') ->order('lsg.id desc');