Compare commits

..

No commits in common. 'master' and '粒子研究院V1.0.1' have entirely different histories.

  1. 2
      src/main/java/com/huoran/iasf/controller/SysColumnController.java
  2. 2
      src/main/java/com/huoran/iasf/controller/SysContentController.java
  3. 4
      src/main/java/com/huoran/iasf/service/impl/SysColumnServiceImpl.java

@ -254,7 +254,7 @@ public class SysColumnController {
} }
// @Cacheable(value = "articles", key = "#id") @Cacheable(value = "articles", key = "#id")
public String getIds(Integer id) { public String getIds(Integer id) {
//1 创建list集合,用于封装所有删除菜单id值 //1 创建list集合,用于封装所有删除菜单id值
List<Integer> idList = new ArrayList<>(); List<Integer> idList = new ArrayList<>();

@ -304,8 +304,6 @@ public class SysContentController {
//是否置顶(默认为0 不置顶 1为置顶) //是否置顶(默认为0 不置顶 1为置顶)
UpdateWrapper<SysContent> updateWrap = new UpdateWrapper<>(); UpdateWrapper<SysContent> updateWrap = new UpdateWrapper<>();
// columnService.removeArticles(columnId);
if (articleTopOperation.getIsTop() == 1) { if (articleTopOperation.getIsTop() == 1) {
//置顶时间(置顶一次更新一次) //置顶时间(置顶一次更新一次)
updateWrap.set("top_time", new Date()); updateWrap.set("top_time", new Date());

@ -157,7 +157,7 @@ public class SysColumnServiceImpl extends ServiceImpl<SysColumnMapper, SysColumn
} }
@Override @Override
// @CacheEvict(value = "articles", key = "#id") @CacheEvict(value = "articles", key = "#id")
public void removeArticles(Integer id) { public void removeArticles(Integer id) {
} }
@ -190,7 +190,7 @@ public class SysColumnServiceImpl extends ServiceImpl<SysColumnMapper, SysColumn
} }
@Override @Override
// @Cacheable(value = "articles", key = "#id") @Cacheable(value = "articles", key = "#id")
public R queryArticlesByColumnType(String ids, Integer id) { public R queryArticlesByColumnType(String ids, Integer id) {
Integer count = 0; Integer count = 0;

Loading…
Cancel
Save