yujian
2019-02-14 0f65eb854add4672cd6df87fb60423b57a471537
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
package com.yeshi.fanli.service.inter.help;
 
import java.io.IOException;
import java.util.List;
 
import org.springframework.web.multipart.MultipartFile;
 
import com.yeshi.fanli.entity.bus.help.HelpClass;
import com.yeshi.fanli.exception.HelpCenterException;
import com.yeshi.fanli.exception.HelpClassException;
 
public interface HelpClassService {
    
    /**
     * 批量删除
     * @param idList
     * @return
     * @throws HelpCenterException
     */
    public int deleteByPrimaryKeyBatch(List<Long> idList);
    
    
    /**
     * 批量删除
     * @param idList
     * @return
     * @throws HelpCenterException
     */
    public void save(HelpClass helpClass) throws HelpClassException;
    
    /**
     * 查询
     * @param pageIndex 页码
     * @param pageSize  页面条数
     * @param key        搜索条件
     * @param startTime 起始时间
     * @param endTime   结束时间
     * @return
     */
    public List<HelpClass> query(int start, int count, String key, Integer state) throws HelpClassException;
    
    public long countQuery(String key, Integer state);
 
 
    /**
     * 根据id查询
     * @param id
     * @return
     */
    public HelpClass selectByPrimaryKey(Long id);
 
    /**
     * 更新装态
     * @param id
     * @return
     * @throws HelpClassException
     */
    public int updateShowState(Long id) throws HelpClassException;
 
 
    /**
     * 移动位置
     * @param moveType
     * @param id
     * @throws HelpClassException
     */
    public void updateSort(Integer moveType, Long id) throws HelpClassException;
 
    /**
     * 上传图片
     * @param file
     * @param id
     * @throws HelpClassException
     */
    public void uploadPic(MultipartFile file, Long id) throws HelpClassException, IOException;
 
    /**
     * 根据状态查询
     * @param state
     * @return
     * @throws HelpClassException
     */
    public List<HelpClass> getClassByState(Integer state) throws HelpClassException;
 
    /**
     * 查询所有选项提供选择
     * @return
     * @throws HelpClassException
     */
    public List<HelpClass> getProvidedClass() throws HelpClassException;
 
    
}