...
|
...
|
@@ -828,7 +828,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService{ |
|
|
grassArticleTopic.setCreateTime(time);
|
|
|
grassArticleTopicDao.insertArticleTopic(grassArticleTopic);
|
|
|
if(type == 2){ //2 编辑后直接发布
|
|
|
//后期增加(清除缓存)
|
|
|
//后期增加(清理话题缓存)
|
|
|
GrassCacheReq cacheReq = new GrassCacheReq();
|
|
|
cacheReq.setClearCode(1005);
|
|
|
cacheReq.setTopicId(topicId);
|
...
|
...
|
@@ -856,9 +856,10 @@ public class GrassArticleServiceImpl implements IGrassArticleService{ |
|
|
grassArticleDeleteLogDao.insertByGrassArticleDeleteLog(grassArticleDeleteLog);
|
|
|
//删除文章关联数据
|
|
|
grassArticleBlockDao.deleteRealByArticleId(articleId);
|
|
|
grassArticleCommentDao.deleteByDestIdAndColumnType(articleId,GrassArticleComment.ColumnType.ARTICLE.getValue());
|
|
|
grassArticlePraiseDao.deleteByArticleId(articleId);
|
|
|
userFavoriteArticleDao.deleteByArticleId(articleId);
|
|
|
//前台展示消息盒子的时候存在问题,所以不执行以下操作
|
|
|
// grassArticleCommentDao.deleteByDestIdAndColumnType(articleId,GrassArticleComment.ColumnType.ARTICLE.getValue());
|
|
|
// grassArticlePraiseDao.deleteByArticleId(articleId);
|
|
|
// userFavoriteArticleDao.deleteByArticleId(articleId);
|
|
|
grassArticleLabelDao.deleteByArticleId(articleId);
|
|
|
grassArticleProductDao.deleteRealByArticleId(articleId);
|
|
|
|
...
|
...
|
|