From 4d9b91501e2e95461ac3785962eb79862b2e5d13 Mon Sep 17 00:00:00 2001 From: liyj <1617420630@qq.com> Date: Tue, 14 Oct 2025 17:06:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=95=86=E5=93=81=E5=88=86?= =?UTF-8?q?=E7=B1=BBdiy=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/ShopBaseProductCategoryServiceImpl.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mall-shop/src/main/java/com/suisung/mall/shop/base/service/impl/ShopBaseProductCategoryServiceImpl.java b/mall-shop/src/main/java/com/suisung/mall/shop/base/service/impl/ShopBaseProductCategoryServiceImpl.java index fefd23e3..8342d4b6 100644 --- a/mall-shop/src/main/java/com/suisung/mall/shop/base/service/impl/ShopBaseProductCategoryServiceImpl.java +++ b/mall-shop/src/main/java/com/suisung/mall/shop/base/service/impl/ShopBaseProductCategoryServiceImpl.java @@ -485,13 +485,21 @@ public class ShopBaseProductCategoryServiceImpl extends BaseServiceImpl voucher_item_ids = productSearchDTO.getVoucher_item_id(); if (CollUtil.isNotEmpty(voucher_item_ids)) { List itemList = shopProductItemService.find(new QueryWrapper().in("item_id", voucher_item_ids)); - if (CollUtil.isNotEmpty(itemList)) { product_id_row = CommonUtil.column(itemList, ShopProductItem::getProduct_id); productSearchDTO.setProduct_ids(product_id_row); } } // end + //根据itemid查询 + List itemIdList = productSearchDTO.getItem_ids(); + if (CollUtil.isNotEmpty(itemIdList)) { + List itemList = shopProductItemService.find(new QueryWrapper().in("item_id", itemIdList)); + if (CollUtil.isNotEmpty(itemList)) { + product_id_row = CommonUtil.column(itemList, ShopProductItem::getProduct_id); + productSearchDTO.setProduct_ids(product_id_row); + } + } String show_type = accountBaseConfigService.getProductShowType(); productSearchDTO.setShow_type(show_type);