From f19be1888d056c6b6499c09d702309f49f9477f2 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Tue, 20 Feb 2024 18:05:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E9=A2=84=E5=94=AE=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/dao/store/order/StoreOrderDao.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/common/dao/store/order/StoreOrderDao.php b/app/common/dao/store/order/StoreOrderDao.php index 797dfda0..5674928b 100755 --- a/app/common/dao/store/order/StoreOrderDao.php +++ b/app/common/dao/store/order/StoreOrderDao.php @@ -81,7 +81,8 @@ class StoreOrderDao extends BaseDao unset($where['source']); } else { if(isset($where['product_type']) && $where['product_type'] !== ''){ - $query->where('activity_type', $where['product_type']); + $where['product_type'] = [$where['product_type'], 2]; + $query->whereIn('activity_type', $where['product_type']); } } $query->when(($sysDel !== null), function ($query) use ($sysDel) {