|
@@ -18,7 +18,7 @@ public interface ArticleMapper {
|
|
|
|
|
|
List<Article> relatedList(@Param("strings")List<String> strings,@Param("articleId")Integer articleId);
|
|
List<Article> relatedList(@Param("strings")List<String> strings,@Param("articleId")Integer articleId);
|
|
|
|
|
|
- @Select("select id,title,content,category_ids,create_time,product_id,profile from article where id = #{id}")
|
|
|
|
|
|
+ @Select("select id,title,content,category_ids,create_time,product_id,profile,viewCount from article where id = #{id}")
|
|
Article getArticleById(Integer id);
|
|
Article getArticleById(Integer id);
|
|
|
|
|
|
@Update(" update article set view_count = view_count + 1 where id= #{id}")
|
|
@Update(" update article set view_count = view_count + 1 where id= #{id}")
|