移除文章类型删除
This commit is contained in:
@@ -95,12 +95,4 @@ public interface ArticleService extends IService<Article> {
|
||||
*/
|
||||
@CacheEvict(key = "#article.type")
|
||||
Article updateArticleType(Article article);
|
||||
|
||||
/**
|
||||
* 删除文章--类型
|
||||
* @param type
|
||||
* @param id
|
||||
*/
|
||||
@CacheEvict(key = "#type")
|
||||
void delAllByType(String type, String id);
|
||||
}
|
||||
@@ -99,9 +99,4 @@ public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> impl
|
||||
this.updateById(oldArticle);
|
||||
return oldArticle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delAllByType(String type,String id) {
|
||||
this.removeById(id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user