From 1d91eb9976d984050c611fbaef44837e07150778 Mon Sep 17 00:00:00 2001 From: cb <275647614@qq.com> Date: Mon, 26 May 2025 17:16:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=8F=AA=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=AD=A3=E9=80=89=E7=B1=BB=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../goods/service/impl/DeptGoodsCategoryServiceImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ghy-goods/src/main/java/com/ghy/goods/service/impl/DeptGoodsCategoryServiceImpl.java b/ghy-goods/src/main/java/com/ghy/goods/service/impl/DeptGoodsCategoryServiceImpl.java index e801a919..17a4bbd9 100644 --- a/ghy-goods/src/main/java/com/ghy/goods/service/impl/DeptGoodsCategoryServiceImpl.java +++ b/ghy-goods/src/main/java/com/ghy/goods/service/impl/DeptGoodsCategoryServiceImpl.java @@ -103,11 +103,13 @@ public class DeptGoodsCategoryServiceImpl implements DeptGoodsCategoryService { customerSelection.setCustomerId(customerId); List customerSelections=customerSelectionService.selectCustomerSelectionList(customerSelection); List goodsCategoryList =new ArrayList<>(); + // 第一层 for (CustomerSelection customerSelection1 : customerSelections) { DeptGoodsCategory deptGoodsCategory1=deptGoodsCategoryMapper.selectOneByGoodsCategoryId(customerSelection1.getDeptCategoryId()); - goodsCategoryList.add(deptGoodsCategory1); + if (customerSelection1.getSelectionType()==1){ + goodsCategoryList.add(deptGoodsCategory1); + } } - // 第一层 // 第二层 this.fillChild(goodsCategoryList); // 第三层