| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.AppVersionInfo; |
| | | |
| | | public interface AppVersionInfoMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(AppVersionInfo record); |
| | | |
| | | int insertSelective(AppVersionInfo record); |
| | | |
| | | AppVersionInfo selectByPrimaryKey(Long id); |
| | | |
| | | /** |
| | | * 根据平台获取版本信息 |
| | | * |
| | | * @param platform |
| | | * @return |
| | | */ |
| | | List<AppVersionInfo> selectByPlatform(String platform); |
| | | |
| | | /** |
| | | * 根据平台和版本号获取版本信息 |
| | | * |
| | | * @param platform |
| | | * @param versionCode |
| | | * @return |
| | | */ |
| | | AppVersionInfo selectByPlatformAndVersionCode(@Param("platform") String platform, |
| | | @Param("versionCode") int versionCode); |
| | | |
| | | int updateByPrimaryKeySelective(AppVersionInfo record); |
| | | |
| | | int updateByPrimaryKey(AppVersionInfo record); |
| | | |
| | | /** |
| | | * 根据平台和最小版本获取版本列表 |
| | | * |
| | | * @param platform |
| | | * @param minVersionCode |
| | | * @return |
| | | */ |
| | | List<AppVersionInfo> listByPlatformAndMinVersionCode(@Param("platform") String platform, |
| | | @Param("minVersionCode") int minVersionCode); |
| | | |
| | | /** |
| | | * 根据平台和最大版本号获取版本列表 |
| | | * |
| | | * @param platform |
| | | * @param minVersionCode |
| | | * @return |
| | | */ |
| | | List<AppVersionInfo> listByPlatformAndMaxVersionCode(@Param("platform") String platform, |
| | | @Param("maxVersionCode") int maxVersionCode); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.AppVersionInfo;
|
| | |
|
| | | public interface AppVersionInfoMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(AppVersionInfo record);
|
| | |
|
| | | int insertSelective(AppVersionInfo record);
|
| | |
|
| | | AppVersionInfo selectByPrimaryKey(Long id);
|
| | |
|
| | | /**
|
| | | * 根据平台获取版本信息
|
| | | * |
| | | * @param platform
|
| | | * @return
|
| | | */
|
| | | List<AppVersionInfo> selectByPlatform(String platform);
|
| | |
|
| | | /**
|
| | | * 根据平台和版本获取版本信息
|
| | | * |
| | | * @param platform
|
| | | * @param versionCode
|
| | | * @return
|
| | | */
|
| | | AppVersionInfo selectByPlatformAndVersion(@Param("platform") String platform, @Param("version") String version);
|
| | |
|
| | | /**
|
| | | * 根据平台和版本号获取版本信息
|
| | | * |
| | | * @param platform
|
| | | * @param versionCode
|
| | | * @return
|
| | | */
|
| | | AppVersionInfo selectByPlatformAndVersionCode(@Param("platform") String platform,
|
| | | @Param("versionCode") int versionCode);
|
| | |
|
| | | int updateByPrimaryKeySelective(AppVersionInfo record);
|
| | |
|
| | | int updateByPrimaryKey(AppVersionInfo record);
|
| | |
|
| | | /**
|
| | | * 根据平台和最小版本获取版本列表
|
| | | * |
| | | * @param platform
|
| | | * @param minVersionCode
|
| | | * @return
|
| | | */
|
| | | List<AppVersionInfo> listByPlatformAndMinVersionCode(@Param("platform") String platform,
|
| | | @Param("minVersionCode") int minVersionCode);
|
| | |
|
| | | /**
|
| | | * 根据平台和最大版本号获取版本列表
|
| | | * |
| | | * @param platform
|
| | | * @param minVersionCode
|
| | | * @return
|
| | | */
|
| | | List<AppVersionInfo> listByPlatformAndMaxVersionCode(@Param("platform") String platform,
|
| | | @Param("maxVersionCode") int maxVersionCode);
|
| | |
|
| | | /**
|
| | | * 根据版本检索
|
| | | * |
| | | * @param version
|
| | | * @return
|
| | | */
|
| | | List<AppVersionInfo> listByVersion(@Param("version") String version);
|
| | | } |