yujian
2020-05-06 eb1adc13eda955e8ef0fc9fe41fb246fa89b722d
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
package com.yeshi.fanli.dao.mybatis;
 
import java.util.List;
 
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.bus.clazz.TaoBaoClassRelation;
 
public interface TaoBaoClassRelationMapper extends BaseMapper<TaoBaoClassRelation> {
 
    List<TaoBaoClassRelation> listByTaoBaoCid(Long taobaoCid);
 
    /**
     * 根据淘宝分类id查询系统分类
     * @param taobaoCid
     * @return
     */
    Long getClassIdByTaoBaoCid(Long taobaoCid);
    
    /**
     * 根据分类id查询
     * 
     * @param taobaoCid
     * @return
     */
    TaoBaoClassRelation getByLocalCid(Long localCid);
 
    /**
     * 
     * @param localCid
     * @param classId
     */
    void deleteRelationByLocalCid(Long localCid);
 
    /**
     * 根据分类ID删除
     * 
     * @param cid
     * @return
     */
    int deleteByCid(Long cid);
 
    /**
     * 根据子分类ID做删除
     * 
     * @param subId
     * @return
     */
    int deleteBySubId(Long subId);
}