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);
|
|
}
|