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
package com.yeshi.fanli.dao.mybatis;
 
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.bus.clazz.GoodsClass;
 
public interface GoodsClassMapper extends BaseMapper<GoodsClass>{
 
    /**
     * 查询搜索关键词
     * @param id
     * @return
     */
    String getKeysById(Long id);
    
    
    /**
     * 根据名称模糊搜索
     * @param id
     * @return
     */
    List<GoodsClass> listByName(@Param("start") long start, @Param("count") int count, @Param("name")String name);
    
    
    /**
     * 根据名称模糊搜索
     * @param id
     * @return
     */
    int countByName(@Param("name")String name, @Param("systemId")Long systemId);
    
    /**
     * 根据系统id查询分类
     * @param systemId
     * @return
     */
    List<GoodsClass> listGoodsClassBySystemId(@Param("systemId") Long systemId);
    
    /**
     * 根据排序查询
     * @param orderby
     * @return
     */
    GoodsClass getByAdjoinOrder(@Param("order") Integer order, @Param("type") Integer type);
    
    
    List<GoodsClass> getGoodsClassAll(@Param("sex")Integer sex);
    
    /**
     * 获取最大排序值
     * @return
     */
    int getMaxOrder();
    
    /**
     * 获取有效分类
     * @return
     */
    List<GoodsClass> getEffectiveClass();
    
}