diff --git a/src/main/java/com/huoran/iasf/controller/SysColumnController.java b/src/main/java/com/huoran/iasf/controller/SysColumnController.java index 723aa2d..a8310d2 100644 --- a/src/main/java/com/huoran/iasf/controller/SysColumnController.java +++ b/src/main/java/com/huoran/iasf/controller/SysColumnController.java @@ -254,7 +254,7 @@ public class SysColumnController { } - @Cacheable(value = "articles", key = "#id") +// @Cacheable(value = "articles", key = "#id") public String getIds(Integer id) { //1 创建list集合,用于封装所有删除菜单id值 List idList = new ArrayList<>(); diff --git a/src/main/java/com/huoran/iasf/controller/SysContentController.java b/src/main/java/com/huoran/iasf/controller/SysContentController.java index 21b85d0..ded0615 100644 --- a/src/main/java/com/huoran/iasf/controller/SysContentController.java +++ b/src/main/java/com/huoran/iasf/controller/SysContentController.java @@ -304,6 +304,8 @@ public class SysContentController { //是否置顶(默认为0 不置顶 1为置顶) UpdateWrapper updateWrap = new UpdateWrapper<>(); +// columnService.removeArticles(columnId); + if (articleTopOperation.getIsTop() == 1) { //置顶时间(置顶一次更新一次) updateWrap.set("top_time", new Date()); diff --git a/src/main/java/com/huoran/iasf/service/impl/SysColumnServiceImpl.java b/src/main/java/com/huoran/iasf/service/impl/SysColumnServiceImpl.java index 3de29da..5d855f1 100644 --- a/src/main/java/com/huoran/iasf/service/impl/SysColumnServiceImpl.java +++ b/src/main/java/com/huoran/iasf/service/impl/SysColumnServiceImpl.java @@ -157,7 +157,7 @@ public class SysColumnServiceImpl extends ServiceImpl