This commit is contained in:
ronger 2021-02-02 09:45:46 +08:00
parent 95d2e6747e
commit b4f9074338
3 changed files with 11 additions and 0 deletions

View File

@ -184,4 +184,10 @@ public interface ArticleMapper extends Mapper<Article> {
* @return
*/
int updatePerfect(@Param("idArticle") Integer idArticle, @Param("articlePerfect") String articlePerfect);
/**
* 删除文章关联文章内容表信息
* @param idArticle
*/
void deleteArticleContent(@Param("idArticle") Integer idArticle);
}

View File

@ -268,6 +268,8 @@ public class ArticleServiceImpl extends AbstractService<Article> implements Arti
articleMapper.deleteLinkedPortfolioData(id);
// 删除引用标签记录
articleMapper.deleteTagArticle(id);
// 删除文章内容表
articleMapper.deleteArticleContent(id);
}
@Override

View File

@ -97,6 +97,9 @@
<delete id="deleteLinkedPortfolioData">
delete from forest_portfolio_article where id_article = #{id}
</delete>
<delete id="deleteArticleContent">
delete from forest_article_content where id_article = #{idArticle}
</delete>
<select id="selectArticles" resultMap="DTOResultMap">
select art.*,su.nickname,su.avatar_url from forest_article art join forest_user su on art.article_author_id = su.id
where article_status = 0