package com.xhkjedu.sstudy.mapper.paper;

import com.xhkjedu.base.TkMapper;
import com.xhkjedu.sstudy.model.paper.TPaperScantron;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @ClassName PaperScantronMapper
 * Description 作业答题卡表
 * Author WN
 * Date 2020/6/8 16:16
 **/
@Repository
public interface PaperScantronMapper extends TkMapper<TPaperScantron> {


    /**
     *功能描述  获取题型分析
     * @author WN
     * @date 2020/6/10
     * @param  * @param paperid
     * @return java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     */
    List<Map<String,Object>> listQtypeAnalyze(@Param("paperid") Integer paperid);

    /**
     * 获取答题卡详情
     * @Param [pscaid]
     * @Author ywx
     * @Date 2020/9/3 15:39
     * @return com.xhkjedu.model.paper.TPaperScantron
     **/
    TPaperScantron findById(@Param("pscaid") Integer pscaid);

    /**
     *功能描述  获取试卷中主观题数量
     * @author WN
     * @date 2020/9/5
     * @param  * @param paperid
     * @return java.lang.Integer
     */
    Integer getQuestionCountCtype(@Param("paperid") Integer paperid);

    //作业中所有试题
    List<TPaperScantron> listPaperScansByPaperid(@Param("paperid") Integer paperid);
}
