yujian
2020-04-24 f276a5a1fc38e735499aa95089ff8105bd2ba196
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
package com.yeshi.fanli.service.inter.help;
 
 
import java.util.List;
 
import org.springframework.cache.annotation.Cacheable;
 
import com.yeshi.fanli.entity.bus.help.HelpCenter;
import com.yeshi.fanli.entity.bus.help.HelpInfo;
import com.yeshi.fanli.exception.config.HelpCenterException;
 
public interface HelpCenterService {
    
 
    /**
     * 更新当前对象所有数据
     * @param record
     * @return
     * @throws HelpCenterException
     */
    public int updateByPrimaryKey(HelpCenter record) ;
    
    /**
     * 选择性更新内容——不为空则更新该字段
     * @param record
     * @return
     * @throws HelpCenterException
     */
    public int updateByPrimaryKeySelective(HelpCenter record);
    
 
    
    /**
     * 根据id查找当前对象
     * @param id
     * @return
     * @throws HelpCenterException
     */
    public HelpCenter selectByPrimaryKey(Long id) ;
    
    @Cacheable(value = "helpCenterCache")
    public HelpCenter selectByPrimaryKeyCache(Long id);
    
    
    /**
     * 查询
     * @param pageIndex 页码
     * @param pageSize  页面条数
     * @param key        搜索条件
     * @param startTime 起始时间
     * @param endTime   结束时间
     * @return
     */
    public List<HelpCenter> query(int pageIndex, int pageSize, String key, Long cid, Integer orderMode,Integer state) ;
    
    public long countQuery(String key, Long cid,Integer state);
 
    
    /**
     * 保存信息
     * @param helpCenter
     * @param content
     * @param html
     * @return 
     * @throws Exception
     */
    public String save(HelpCenter helpCenter, String content, String html) throws HelpCenterException, Exception;
 
    
    /**
     * 批量删除
     * @param idList
     * @return
     * @throws HelpCenterException
     */
    public int deleteBatchById(List<String> idList);
 
    /**
     * 
     * @param id
     * @return
     * @throws HelpCenterException
     */
    public HelpInfo getHelpInfo(Long id);
 
    /**
     * 查询 只返回id、title
     * @param pageIndex
     * @param pageSize
     * @param key
     * @return
     * @throws HelpCenterException
     */
    public List<HelpCenter> listValid(long pageId, int pageSize, String key, Long cid);
 
    
    /**
     * 删除帮助详情信息
     * @param idList
     * @throws HelpCenterException
     */
    public void deleteInfoBatchById(List<String> idList);
    
    
    public HelpInfo getHelpInfoCache(Long id);
 
    /**
     * 版本设置
     * @param id
     * @param versions
     * @throws HelpCenterException
     */
    public void setVersions(Long id, List<Long> versions) throws HelpCenterException;
 
    
    /**
     * 状态切换
     * @param id
     * @throws HelpCenterException
     */
    public void switchState(Long id) throws HelpCenterException;
 
    
}