package com.yonge.cooleshow.biz.dal.dao;

import com.yonge.cooleshow.biz.dal.entity.AppVersionInfo;
import com.yonge.toolset.mybatis.dal.BaseDAO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppVersionInfoDao extends BaseDAO<Long, AppVersionInfo> {

	List<AppVersionInfo> queryNewestByPlatform(String platform);
	/**
	 * 修改所有的为历史
	 * @param platform
	 */
	void batchUpdateStatus(String platform);


	/**
	 * 获取当前app版本是否为审核状态
	 *
	 * @param platform 平台
	 * @param version 版本
	 * @return
	 */
	AppVersionInfo selectAppVersionInfo(@Param("platform") String platform, @Param("version") String version);

}