package com.qmth.themis.business.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qmth.themis.business.entity.TBAppVersion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @Description: 移动端版本 Mapper 接口
 * @Param:
 * @return:
 * @Author: wangliang
 * @Date: 2020/11/20
 */
@Mapper
public interface TBAppVersionMapper extends BaseMapper<TBAppVersion> {

    /**
     * 移动端版本查询
     *
     * @param iPage
     * @return
     */
    IPage<TBAppVersion> appVersionQuery(IPage<Map> iPage);

    /**
     * 获取移动端最大版本号记录
     *
     * @param type
     * @return
     */
    TBAppVersion getMaxAppVersion(@Param("type") String type);
}
