yujian
2020-05-06 a338d86bcaf17f2ba9296a601cdbda4d3e9baae0
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
package com.yeshi.fanli.dao.mybatis.lable;
 
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.entity.bus.lable.LabelClass;
 
public interface LabelClassMapper {
 
    int deleteByPrimaryKey(Long id);
 
    int insert(LabelClass record);
 
    int insertSelective(LabelClass record);
 
    LabelClass selectByPrimaryKey(Long id);
 
    int updateByPrimaryKeySelective(LabelClass record);
 
    int updateByPrimaryKey(LabelClass record);
    
    /**
     *  根据分类id、标签id获取关系
     * @param record
     * @return
     */
    List<LabelClass> getByClassIdAndLabelId(@Param("classId") Long classId, @Param("labId") Long labId);
    
    
    /**
     * 查询一级类对应标签 -- 全部
     * @param record
     * @return
     */
    List<LabelClass> getByClassId(@Param("classId") Long record);
    
    /**
     * 查询一级类对应标签 -- 分页
     * @param record
     * @return
     */
    List<LabelClass> queryByClassId(@Param("start") int start, @Param("count") int count, @Param("classId") Long record);
    
    int getCountQueryByClassId(@Param("classId") Long record);
    
    
    /**
     * 查询子类对应标签 -- 全部
     * @param record
     * @return
     */
    List<LabelClass> getBySubClassId(@Param("subClassId") Long record);
    
    /**
     * 查询子类对应标签 -- 分页
     * @param record
     * @return
     */
    List<LabelClass> queryBySubClassId(@Param("start") int start, @Param("count") int count, @Param("subClassId") Long record);
    
    int getCountQueryBySubClassId(@Param("subClassId") Long record);
    
    /**
     * 根据一级类别ID删除
     * @param record
     * @return
     */
    int deleteByClassId(Long classId);
    
    /**
     * 根据子类别ID删除
     * @param record
     * @return
     */
    int deleteBySubClassId(Long subClassId);
    
    /**
     * 根据标签ID删除
     * @param record
     * @return
     */
    int deleteByLabId(Long labID);
    
    
}