From bde21f33c70db375155821a31274ffeaf6b98f86 Mon Sep 17 00:00:00 2001 From: liyj <1617420630@qq.com> Date: Sat, 27 Sep 2025 19:18:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E6=8C=89=E5=AD=90=E7=B1=BB?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../store/service/impl/ShopStoreBaseServiceImpl.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mall-shop/src/main/java/com/suisung/mall/shop/store/service/impl/ShopStoreBaseServiceImpl.java b/mall-shop/src/main/java/com/suisung/mall/shop/store/service/impl/ShopStoreBaseServiceImpl.java index 6250405a..53d8eb7a 100644 --- a/mall-shop/src/main/java/com/suisung/mall/shop/store/service/impl/ShopStoreBaseServiceImpl.java +++ b/mall-shop/src/main/java/com/suisung/mall/shop/store/service/impl/ShopStoreBaseServiceImpl.java @@ -790,9 +790,15 @@ public class ShopStoreBaseServiceImpl extends BaseServiceImpl 1) { - queryWrapper.in("store_category_id", store_category_ids); + queryWrapper.and(q->{ + q.in("store_category_id",store_category_ids); + q.or().in("store_2nd_category_id",store_category_ids); + }); } else { - queryWrapper.eq("store_category_id", store_category_id); + queryWrapper.or(q->{ + q.eq("store_category_id",store_category_ids); + q.or().eq("store_2nd_category_id",store_category_ids); + }); } params.put("store_category_id", store_category_id); }