演示站点,支持商品分类添加

This commit is contained in:
lifenlong 2021-06-15 09:59:32 +08:00
parent 2472cfd93b
commit 44d6edd53b

View File

@ -168,6 +168,7 @@ public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> i
Category parentCategory = this.getById(category.getParentId()); Category parentCategory = this.getById(category.getParentId());
category.setDeleteFlag(parentCategory.getDeleteFlag()); category.setDeleteFlag(parentCategory.getDeleteFlag());
} }
this.save(category);
removeCache(); removeCache();
return true; return true;
} }