package com.qmth.themis.business.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qmth.themis.business.dao.TBAppVersionMapper;
import com.qmth.themis.business.entity.TBAppVersion;
import com.qmth.themis.business.service.TBAppVersionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @Description: 移动端版本 服务实现类
 * @Param:
 * @return:
 * @Author: wangliang
 * @Date: 2020/11/20
 */
@Service
public class TBAppVersionServiceImpl extends ServiceImpl<TBAppVersionMapper, TBAppVersion> implements TBAppVersionService {

    @Resource
    TBAppVersionMapper tbAppVersionMapper;

    /**
     * 移动端版本查询
     *
     * @param iPage
     * @return
     */
    @Override
    public IPage<TBAppVersion> appVersionQuery(IPage<Map> iPage) {
        return tbAppVersionMapper.appVersionQuery(iPage);
    }

    /**
     * 获取移动端最大版本号记录
     *
     * @param type
     * @return
     */
    @Override
    public TBAppVersion getMaxAppVersion(String type) {
        return tbAppVersionMapper.getMaxAppVersion(type);
    }
}
