MCPcopy
hub / github.com/lenve/VBlog / ArticleMapper

Interface ArticleMapper

blogserver/src/main/java/org/sang/mapper/ArticleMapper.java:12–40  ·  view source on GitHub ↗

Created by sang on 2017/12/20.

Source from the content-addressed store, hash-verified

10 * Created by sang on 2017/12/20.
11 */
12@Mapper
13public interface ArticleMapper {
14 int addNewArticle(Article article);
15
16 int updateArticle(Article article);
17
18 List<Article> getArticleByState(@Param("state") Integer state, @Param("start") Integer start, @Param("count") Integer count, @Param("uid") Long uid,@Param("keywords") String keywords);
19
20// List<Article> getArticleByStateByAdmin(@Param("start") int start, @Param("count") Integer count, @Param("keywords") String keywords);
21
22 int getArticleCountByState(@Param("state") Integer state, @Param("uid") Long uid, @Param("keywords") String keywords);
23
24 int updateArticleState(@Param("aids") Long aids[], @Param("state") Integer state);
25
26 int updateArticleStateById(@Param("articleId") Integer articleId, @Param("state") Integer state);
27
28 int deleteArticleById(@Param("aids") Long[] aids);
29
30 Article getArticleById(Long aid);
31
32 void pvIncrement(Long aid);
33
34 //INSERT INTO pv(countDate,pv,uid) SELECT NOW(),SUM(pageView),uid FROM article GROUP BY uid
35 void pvStatisticsPerDay();
36
37 List<String> getCategories(Long uid);
38
39 List<Integer> getDataStatistics(Long uid);
40}

Callers 27

addNewArticleMethod · 0.65
addNewArticleMethod · 0.65
addNewArticleMethod · 0.80
getArticleByStateMethod · 0.65
getArticleByStateMethod · 0.65
getArticleByStateMethod · 0.65
updateArticleStateMethod · 0.65
updateArticleStateMethod · 0.65
updateArticleStateMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected