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
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.common.Config;
 
public interface ConfigMapper extends BaseMapper<Config> {
 
    /**
     * 获取所有配置
     * 
     * @return
     */
    List<Config> listAll();
 
    /**
     * 通过名字搜索
     * 
     * @param key
     * @return
     */
    List<Config> listSearchByName(@Param("key") String key, @Param("start") int start, @Param("count") int count);
 
    /**
     * 获取通过名字搜索得到的数量
     * 
     * @param key
     * @return
     */
    long countSearchByName(@Param("key") String key);
 
    /**
     * 根据关键词提取
     * 
     * @param key
     * @param minAndroidVersion
     * @param maxAndroidVersion
     * @return
     */
    List<Config> listByKey(@Param("key") String key, @Param("minAndroidVersion") Integer minAndroidVersion,
            @Param("minIosVersion") Integer minIosVersion);
 
}