This commit is contained in:
parent
95d2e6747e
commit
b4f9074338
@ -184,4 +184,10 @@ public interface ArticleMapper extends Mapper<Article> {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
int updatePerfect(@Param("idArticle") Integer idArticle, @Param("articlePerfect") String articlePerfect);
|
int updatePerfect(@Param("idArticle") Integer idArticle, @Param("articlePerfect") String articlePerfect);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除文章关联文章内容表信息
|
||||||
|
* @param idArticle
|
||||||
|
*/
|
||||||
|
void deleteArticleContent(@Param("idArticle") Integer idArticle);
|
||||||
}
|
}
|
||||||
|
@ -268,6 +268,8 @@ public class ArticleServiceImpl extends AbstractService<Article> implements Arti
|
|||||||
articleMapper.deleteLinkedPortfolioData(id);
|
articleMapper.deleteLinkedPortfolioData(id);
|
||||||
// 删除引用标签记录
|
// 删除引用标签记录
|
||||||
articleMapper.deleteTagArticle(id);
|
articleMapper.deleteTagArticle(id);
|
||||||
|
// 删除文章内容表
|
||||||
|
articleMapper.deleteArticleContent(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -97,6 +97,9 @@
|
|||||||
<delete id="deleteLinkedPortfolioData">
|
<delete id="deleteLinkedPortfolioData">
|
||||||
delete from forest_portfolio_article where id_article = #{id}
|
delete from forest_portfolio_article where id_article = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
<delete id="deleteArticleContent">
|
||||||
|
delete from forest_article_content where id_article = #{idArticle}
|
||||||
|
</delete>
|
||||||
<select id="selectArticles" resultMap="DTOResultMap">
|
<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
|
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
|
where article_status = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user