From ce49e1c2a4865938db5513e6e28134119f45942f Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Tue, 13 Jun 2023 10:53:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BA=97=E9=93=BA=E4=BA=91?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/dao/store/product/SpuDao.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/common/dao/store/product/SpuDao.php b/app/common/dao/store/product/SpuDao.php index b85b3e6d..db26c55a 100644 --- a/app/common/dao/store/product/SpuDao.php +++ b/app/common/dao/store/product/SpuDao.php @@ -144,6 +144,15 @@ class SpuDao extends BaseDao ->when(isset($where['mer_status']) && $where['mer_status'] !== '',function($query)use($where){ $query->where('mer_status',$where['mer_status']); }) + ->when(isset($where['is_used']) && $where['is_used'] !== '',function($query)use($where){ + $query->where('is_used',$where['is_used']); + }) + ->when(isset($where['status']) && $where['status'] !== '',function($query)use($where){ + $query->where('P.status',$where['status']); + }) + ->when(isset($where['is_show']) && $where['is_show'] !== '',function($query)use($where){ + $query->where('is_show',$where['is_show']); + }) ->when(isset($where['spu_status']) && $where['spu_status'] !== '',function($query)use($where){ $query->where('S.status',$where['spu_status']); })