地质所 沉降监测网建设项目
chenhuan
2024-05-16 0fdd42e318f51f9e3c6581473416af1cca69877f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
package com.javaweb.cms.mapper;
 
import com.javaweb.cms.domain.Article;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * 文章管理Mapper接口
 * 
 * @author wujiyue
 * @date 2019-10-28
 */
public interface ArticleMapper 
{
    /**
     * 查询文章
     * 
     * @param id 文章ID
     * @return 文章
     */
    public Article selectArticleById(String id);
 
    /**
     * 查询文章内容
     * @param article_id
     * @return
     */
    public Map<String,Object> getArticleContent(String article_id);
    /**
     * 查询文章列表
     * 
     * @param article 文章
     * @return 文章集合
     */
    public List<Article> selectArticleList(Article article);
 
    /**
     * 查询文章专区不为空的文章列表,这类文章才可以在博客首页展示
     *
     * @param article 文章
     * @return 文章集合
     */
    public List<Article> selectArticlesRegionNotNull(Article article);
 
    /**
     * 查询文章专区为空的文章,这类文章可用于猜你喜欢来推荐
     * 注意这类文章和上面的区别是:
     * 上面方法的文章是网站管理员精心编辑策划的、来画好专区的,是由很大几率展示的
     * 而下面的文章属于坐冷板凳的
     *
     * @param article 文章
     * @return 文章集合
     */
    public List<Article> selectArticlesRegionIsNull(Article article);
 
    /**
     * 新增文章管理
     *
     * @param article 文章
     * @return 结果
     */
    public int insertArticle(Article article);
 
    /**
     * 插入文章内容
     * @param article
     */
    public int insertArticleContent(Article article);
    /**
     * 修改文章
     * 
     * @param article 文章
     * @return 结果
     */
    public int updateArticle(Article article);
 
    /**
     *  更新文章内容
     * @param article
     * @return
     */
    public int updateArticleContent(Article article);
    /**
     * 删除文章
     * 
     * @param id 文章ID
     * @return 结果
     */
    public int deleteArticleById(String id);
    /**
     * 删除文章内容
     * @param id 文章ID
     * @return 结果
     */
    public int deleteArticleContentById(String id);
    /**
     * 批量删除文章
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteArticleByIds(String[] ids);
 
    /**
     * 批量删除文章内容
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteArticleContentByIds(String[] ids);
 
 
    public int checkExistsByTitleAndLink(@Param("title") String title, @Param("link") String link);
 
    /**
     * 文章点赞+1
     * @param id
     * @return
     */
    public int upVote(String id);
    /**
     * 文章点击数+1
     * @param id
     * @return
     */
    public int articleLook(String id);
    /**
     * 多条件查询文章列表
     * 
     * @param article 文章
     * @return 文章集合
     */
    public List<Article> selecArticleListByAll(Article article);
 
    public List<Article> selectArticleCount();
}