Created by sang on 2017/12/20.
| 10 | * Created by sang on 2017/12/20. |
| 11 | */ |
| 12 | @Mapper |
| 13 | public 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 | } |
no outgoing calls
no test coverage detected