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
package com.yeshi.fanli.dao.mybatis.jd;
 
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.jd.JDGoodsClass;
 
public interface JDGoodsClassMapper extends BaseMapper<JDGoodsClass> {
    
    
    /**
     * 删除小于当前时间分类
     * @param level
     * @param date
     */
    void deleteByDate(@Param("level")Integer level, @Param("date")String date);
    
    
    /**
     * 查询各级分类
     * @param pid
     * @return
     */
    List<JDGoodsClass> getByLevel(@Param("level")Integer level);
    
    
    /**
     * 查询下级分类
     * @param pid
     * @return
     */
    List<JDGoodsClass> getByPid(@Param("pid")Integer pid);
    
    
    /**
     * 查询最新分类
     * @param level
     * @param cid
     * @return
     */
    JDGoodsClass getByCid(@Param("level")Integer level, @Param("cid")Integer cid);
 
}