admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
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
package com.yeshi.fanli.service.inter.homemodule;
 
import java.util.List;
 
import com.yeshi.fanli.entity.bus.homemodule.SpecialLabel;
import com.yeshi.fanli.exception.homemodule.SpecialLabelException;
 
public interface SpecialLabelService {
 
    public void save(SpecialLabel record) throws SpecialLabelException;
 
    /**
     * 批量删除
     * @param list 主键id
     * @return
     */
    public int deleteByPrimaryKeyBatch(List<Long> list);
 
    /**
     * 查询列表- 后台
     * @param start
     * @param count
     * @param key
     * @param state
     * @return
     */
    public List<SpecialLabel> listQuery(long start, int count, String key, Integer state);
 
    public long countQuery(String key, Integer state);
 
    
    /**
     * 查询专题相应有效的标签
     * @param specialId
     * @return
     */
    public List<SpecialLabel> getLabelsBySpecialId(Long specialId);
 
    /**
     * 专题贴上标签
     * @param idList
     * @param labIdList
     */
    public void stickLabelOnSpecial(List<Long> idList, List<Long> labIdList);
 
    
    /**
     * 状态切换
     * @param id
     * @throws SpecialLabelException
     */
    public void switchState(Long id) throws SpecialLabelException;
 
 
}