package cn.lili.modules.system.mapper; import cn.lili.modules.system.entity.dos.AppVersion; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Select; /** * app版本控制数据处理层 * * @author Chopper * @since 2020/11/17 8:01 下午 */ public interface AppVersionMapper extends BaseMapper { /** * 获取最新版本号 * * @param appType APP类型(Android、IOS) * @return APP版本 */ @Select("SELECT * FROM li_app_version WHERE type=#{appType} ORDER BY version_update_date DESC LIMIT 1") AppVersion getLatestVersion(String appType); }