package com.miaxis.score.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.miaxis.score.domain.ScoreInfo;

import java.util.List;

/**
 * 模拟考成绩Mapper接口
 *
 * @author miaxis
 * @date 2021-08-23
 */
public interface ScoreInfoMapper extends BaseMapper<ScoreInfo> {
    /**
     * 查询模拟考成绩列表
     *
     * @param scoreInfo 模拟考成绩
     * @return 模拟考成绩集合
     */
    public List<ScoreInfo> selectScoreInfoList(ScoreInfo scoreInfo);


    /**
     * 返回
     * @param scoreInfo
     * @return
     */
    public int getAvgScore(ScoreInfo scoreInfo);


    /**
     * 返回
     * @param scoreInfo
     * @return
     */
    public List<Integer> getLast10Score(ScoreInfo scoreInfo);

    /**
     * 返回最大成绩
     * @param scoreInfo
     * @return
     */
    public int getMaxScore(ScoreInfo scoreInfo);
}
