同步订单

master
wyq 6 months ago
parent 33db78e8f7
commit 7de9136ca0
  1. 11
      crmeb-service/src/main/java/com/zbkj/service/service/impl/CategoryServiceImpl.java

@ -107,7 +107,16 @@ public class CategoryServiceImpl extends ServiceImpl<CategoryDao, Category> impl
public List<Category> getByPIds(List<Integer> idList) {
LambdaQueryWrapper<Category> lambdaQueryWrapper = new LambdaQueryWrapper<>();
lambdaQueryWrapper.in(Category::getPid, idList);
return dao.selectList(lambdaQueryWrapper);
List<Category> two = dao.selectList(lambdaQueryWrapper);
if (CollUtil.isEmpty(two)){
return two;
}
List<Integer> twoIds=two.stream().map(Category::getId).collect(Collectors.toList());
LambdaQueryWrapper<Category> lambdaQueryWrapper2 = new LambdaQueryWrapper<>();
lambdaQueryWrapper2.in(Category::getPid, twoIds);
List<Category> three = dao.selectList(lambdaQueryWrapper2);
two.addAll(three);
return two;
}
/**

Loading…
Cancel
Save