no message
This commit is contained in:
parent
1d91eb9976
commit
4f984ab2e7
|
|
@ -103,13 +103,15 @@ public class DeptGoodsCategoryServiceImpl implements DeptGoodsCategoryService {
|
||||||
customerSelection.setCustomerId(customerId);
|
customerSelection.setCustomerId(customerId);
|
||||||
List<CustomerSelection> customerSelections=customerSelectionService.selectCustomerSelectionList(customerSelection);
|
List<CustomerSelection> customerSelections=customerSelectionService.selectCustomerSelectionList(customerSelection);
|
||||||
List<DeptGoodsCategory> goodsCategoryList =new ArrayList<>();
|
List<DeptGoodsCategory> goodsCategoryList =new ArrayList<>();
|
||||||
|
log.info("用户id{}获取到的类目列表{}",customerId,customerSelections);
|
||||||
// 第一层
|
// 第一层
|
||||||
for (CustomerSelection customerSelection1 : customerSelections) {
|
for (CustomerSelection customerSelection1 : customerSelections) {
|
||||||
DeptGoodsCategory deptGoodsCategory1=deptGoodsCategoryMapper.selectOneByGoodsCategoryId(customerSelection1.getDeptCategoryId());
|
DeptGoodsCategory deptGoodsCategory1=deptGoodsCategoryMapper.selectOneByGoodsCategoryId(customerSelection1.getDeptCategoryId());
|
||||||
if (customerSelection1.getSelectionType()==1){
|
if (customerSelection1.getSelectionType()==1&& Objects.equals(deptGoodsCategory.getType(), deptGoodsCategory1.getType())){
|
||||||
goodsCategoryList.add(deptGoodsCategory1);
|
goodsCategoryList.add(deptGoodsCategory1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
log.info("筛选完的类目列表{}",goodsCategoryList);
|
||||||
// 第二层
|
// 第二层
|
||||||
this.fillChild(goodsCategoryList);
|
this.fillChild(goodsCategoryList);
|
||||||
// 第三层
|
// 第三层
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue