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
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
package com.yeshi.fanli.service.inter.clazz;
 
import java.util.List;
 
import com.yeshi.fanli.entity.bus.clazz.GoodsSubClassLabel;
import com.yeshi.fanli.entity.bus.clazz.GoodsSubClassLabelMap;
import com.yeshi.fanli.exception.goods.GoodsClassException;
import com.yeshi.fanli.vo.goods.GoodsSubClassLabelVO;
 
/**
 * 二级分类的标签服务
 * 
 * @author Administrator
 *
 */
public interface GoodsSubClassLabelService {
 
    /**
     * 添加二级分类标签
     * 
     * @param label
     * @throws GoodsClassException
     */
    public void addSubClassLabel(GoodsSubClassLabel label) throws GoodsClassException;
 
    /**
     * 更新
     * 
     * @param label
     */
    public void updateSubClassLabel(GoodsSubClassLabel label);
 
    /**
     * 添加二级分类标签映射
     * 
     * @param map
     * @throws GoodsClassException
     */
    public void addSubClassLabelMap(GoodsSubClassLabelMap map) throws GoodsClassException;
 
    /**
     * 
     * 根据主分类ID获取标签
     * 
     * @param classId-主分类ID
     * @return
     */
    public List<GoodsSubClassLabel> listLabelByClassId(Long classId);
 
    /**
     * 根据分类标签ID获取映射关系列表
     * 
     * @param labelId
     * @return
     */
    public List<GoodsSubClassLabelMap> listMapByLabelId(Long labelId);
 
    /**
     * 删除标签
     * 
     * @param labelId
     */
    public void deleteLabel(Long labelId);
 
    /**
     * 查询映射(通过子分类ID查询)
     * 
     * @param subClassId
     * @return
     */
    public GoodsSubClassLabelMap selectBySubClassId(Long subClassId);
 
    /**
     * 查询二级分类、标签
     * @param classId
     * @return
     */
    public List<GoodsSubClassLabelVO> listSubMapCache(Long classId);
 
}