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); // 第三层