From 5220f92b0ad38aa980482637ceff5729ecc7b1df Mon Sep 17 00:00:00 2001 From: cheney <1251790704@qq.com> Date: Thu, 29 Aug 2024 11:52:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/huoran/iasf/controller/SysColumnController.java | 2 +- .../java/com/huoran/iasf/controller/SysContentController.java | 2 ++ .../com/huoran/iasf/service/impl/SysColumnServiceImpl.java | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) 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