Commit 0498e10c authored by shiyu's avatar shiyu

删除子类目

parent cc364a33
...@@ -157,6 +157,11 @@ public class CategoryController { ...@@ -157,6 +157,11 @@ public class CategoryController {
} }
categoryManager.deleteById(id); categoryManager.deleteById(id);
Category pCat = new Category();
pCat.setId(category.getPid());
pCat.setIsLeaf(true);
categoryManager.updateById(pCat);
logger.info("【请求结束】商场管理->类目管理->删除:响应结果:{}", "成功!"); logger.info("【请求结束】商场管理->类目管理->删除:响应结果:{}", "成功!");
return ResponseUtil.ok(); return ResponseUtil.ok();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment