Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
saysky committed Oct 16, 2019
1 parent b201509 commit e1fccbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public List<Category> cateIdsToCateList(List<Long> cateIds, Long userId) {
List<Long> allCateIds = categoryList.stream().map(Category::getId).collect(Collectors.toList());
List<Category> result = new ArrayList<>();
for(Long id : cateIds) {
if(!allCateIds.contains(id)) {
if(allCateIds.contains(id)) {
Category category = new Category();
category.setId(id);
result.add(category);
Expand Down

0 comments on commit e1fccbc

Please sign in to comment.