public int addCombinationSku(CombinationSku combinationSku) { logger.debug("addCombinationSku and combinationSku :{}", combinationSku); List<String> list = combinationSkuMapper.querySkuIdWithAdd(combinationSku); if (!CollectionUtils.isEmpty(list)) { if (list.stream().filter(id -> id.equals(combinationSku.getSkuId())).count() != 0) { return 0; } } return combinationSkuMapper.addCombinationSku(combinationSku); }
麻烦解读下这方法,lambda表达式好难,看不懂
onemoo
相关分类