admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/ConfigMapper.java
@@ -1,43 +1,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
    * @return
    */
   List<Config> listByKey(String key);
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);
}